Re: Using Pango and TrueType Fonts

Michael Gerbracht <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
In article <[email protected]>, Behdad Esfahbod <[email protected]>
wrote:
> Ok so you are saying that some symbol fonts, like Wingdings, don't work.
> That's rather expected.  Pango uses Unicode encoding only, so you would
> need to encode symbol characters using their Unicode numbers instead of,
> eg, "Some text".

Thanks for your answer, but I think that's not the point. "Times New Roman"
does not work either because it is a TrueType font and OpenType symbolic
fonts do work with pango. It might be true that I need to use unicode to
access all available characters in a font but I am not able to display any
character of a TrueType fonts.
Do you know whether TrueType fonts are supposed to work with pango?

> On 15-02-26 10:42 AM, Michael Gerbracht wrote:
> > In article <[email protected]>, Behdad Esfahbod
> > <[email protected]> wrote:
> >>> I would like to use Pango with Cairo to display data in graphs.[...] I
> >>> am using a pangocairo library for lua running on windows to generate
> >>> the graphics [...] First I noiced that I can display OpenType fonts but
> >>> TrueType fonts are not displayed (just a crossed out rectangle is shown
> >>> instead). I am using the pango_font_description_from_string method to
> >>> set the font. Do I have to convert TrueType fonts first?

-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.