How to add new font information (Amelia.pfr) to fontconfig database
- From: PRADEEP BOTU <pradeep botu samsung com>
- To: Tor Lillqvist <tml iki fi>
- Cc: "gtk-i18n-list gnome org" <gtk-i18n-list gnome org>
- Subject: How to add new font information (Amelia.pfr) to fontconfig database
- Date: Fri, 29 May 2009 11:36:22 +0000 (GMT)
I am trying to add Amelia.pfr font file information.
Able to load font files which are in C:\WINDOWS\Fonts folder.
I have kept Amelia.pfr font file in bin directory. and fonts.conf and libfontconfig-1.dll are kept in proper position.
i am 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. But its loading another font.
How to do this.
thanks,
Pradeep.
[
Date Prev][Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]