Ticket #1640: fcreq.diff
| File fcreq.diff, 1.0 KB (added by , 16 years ago) |
|---|
-
libass/ass_fontconfig.c
284 284 * \param ftlibrary freetype library object 285 285 * \param idx index of the processed font in library->fontdata 286 286 * With FontConfig >= 2.4.2, builds a font pattern in memory via FT_New_Memory_Face/FcFreeTypeQueryFace. 287 * With older FontConfig versions , save the font to ~/.mplayer/fonts.287 * With older FontConfig versions just fail with an error. 288 288 */ 289 289 static void process_fontdata(FCInstance *priv, ASS_Library *library, 290 290 FT_Library ftlibrary, int idx) 291 291 { 292 #if FC_VERSION < 20402 293 ass_msg(library, MSGL_WARN, 294 "Cannot load font %s, fontconfig version is too old.\n", 295 library->fontdata[idx].name); 296 #else 292 297 int rc; 293 298 const char *name = library->fontdata[idx].name; 294 299 const char *data = library->fontdata[idx].data; … … 335 340 336 341 FT_Done_Face(face); 337 342 } 343 #endif 338 344 } 339 345 340 346 /**
