Details
[Home]
Issue of the Implementation # S0605
Brief
The FcFileScan function doesn't add fonts from some font files
Detailed Description
The description of the function FcFileScan states: "Scans a single file and adds all fonts found to set". But it doesn't add a font from the given font file.
Problem location(s) in the standard
Fontconfig Developers Reference, Version 2.4.2
Example
#define FILE_PATH "UTBI__10-ISO8859-10.pcf.gz" //the font file name FcConfig *fc; FcFontSet *set; FcStrSet *dirs; FcBlanks *blanks; FcInit (); if (!(fc = FcConfigGetCurrent ())) { printf ("Could not get current config "); } if (!(set = FcFontSetCreate ())) { printf ("Could not create font sets "); } if (!(dirs = FcStrSetCreate ())) { printf ("Could not create str set "); } if (!(blanks = FcConfigGetBlanks (fc))) { printf ("Could not create blanks "); } FcFileScan (set, dirs, 0, blanks, (FcChar8 *)FILE_PATH, FcTrue); /* * Scans a single file and adds all fonts found to set * * set->nfont should not be 0 but it is. */
Component
fontconfig 2.2.3 or later
Accepted
freedesktop.org Bugzilla 12949
[Home]
»