How to add new font file information to fontconfig (pfr files)



   I am trying to add pfr font files information to my fontconfig and want to use it with pango .

  Able to load font files which are in C:\WINDOWS\Fonts folder.

  I have kept Amelia.pfr font file in etc/Fonts folder of fontconfig. But i am unable to load it.

 
i am also trying in the following way

char *fontFile = "Amelia.pfr";
FcConfig *config = FcInitLoadConfigAndFonts();
FcBool ret = FcConfigAppFontAddFile(config, reinterpret_cast<const FcChar8*>(fontFile));
ret = FcConfigSetCurrent(config);

But when i am trying to load it through pango it is unable to load this file. it is loading verdana.ttf 
Any thing wrong in this approach?

thanks,
Pradeep.


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