Re: loading an external font using pango



Hi again.
On Aug 1, 2010, at 6:04 PM, shiplu wrote:

> Hello Jesper,
> 
> Are you talking about these 3 classes?
> 
> PangoFcFontMap — Base fontmap class for Fontconfig-based backends
> PangoFcFont — Base font class for Fontconfig-based backends
> PangoFcDecoder — Custom font encoding handling
> 

Basically Pango is compiled against Fontconfig, yes, the above function calls has something to do with which fonts are available, but that doesn not change the fact the you can not give Pango a filename to use for font rendering, you will need to provide Pango with a name like "Arial" or "Font2000" etc. Not a filename. Read more about configuring Fontconfig here: http://fontconfig.org/fontconfig-user.html 

Try to run fc-match (with verbeose output) to see which filename is chosen for your fontpattern.

--
Jesper L Nielsen
jln locatel dk






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]