Changeset 1540
- Timestamp:
- Apr 18, 2016, 11:40:05 PM (9 years ago)
- Location:
- fontconfig/trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified fontconfig/trunk/src/fcdir.c ¶
r1217 r1540 272 272 char *key = buf; 273 273 char font [CCHMAXPATH]; 274 int len; 274 275 275 276 while (*key) 276 277 { 277 if ( PrfQueryProfileString (HINI_USERPROFILE, "PM_Fonts", key, NULL, font, CCHMAXPATH) > 0)278 if ((len = PrfQueryProfileString (HINI_USERPROFILE, "PM_Fonts", key, NULL, font, CCHMAXPATH)) > 0) 278 279 { 279 280 FcBool ok = FcFalse; 280 FcChar8 *f = FcStrCanonFilename ((FcChar8 *)font); 281 FcChar8 *f; 282 283 /* PM_Fonts stores .OFM files for Type1 fonts while Freetype needs .PFB */ 284 if (len >= 5 && stricmp (&font [len - 5], ".OFM") == 0) 285 strcpy (&font [len - 5], ".PFB"); 286 287 f = FcStrCanonFilename ((FcChar8 *)font); 281 288 if (f) 282 289 { -
TabularUnified fontconfig/trunk/src/fcstat.c ¶
r1217 r1540 350 350 if ((len = PrfQueryProfileString (HINI_USERPROFILE, "PM_Fonts", key, NULL, font, CCHMAXPATH)) > 0) 351 351 { 352 /* PM_Fonts stores .OFM files for Type1 fonts while Freetype needs .PFB */ 353 if (len >= 5 && stricmp (&font [len - 5], ".OFM") == 0) 354 strcpy (&font [len - 5], ".PFB"); 355 352 356 Adler32Update (&ctx, font, len); 353 357
Note:
See TracChangeset
for help on using the changeset viewer.