ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/Deliantra-Client/pango-font.c
(Generate patch)

Comparing deliantra/Deliantra-Client/pango-font.c (file contents):
Revision 1.1 by root, Tue Jul 4 23:23:31 2006 UTC vs.
Revision 1.4 by root, Sun Apr 26 20:59:41 2009 UTC

70 NULL); 70 NULL);
71 71
72 if (FcPatternGetDouble (pattern, FC_PIXEL_SIZE, 0, &d) == FcResultMatch) 72 if (FcPatternGetDouble (pattern, FC_PIXEL_SIZE, 0, &d) == FcResultMatch)
73 font->size = d * PANGO_SCALE; 73 font->size = d * PANGO_SCALE;
74 74
75#if PANGO_VERSION_CHECK (1, 16, 0)
76 /* pango 1.24 is ABI-incompatible with 1.22, but distros */
77 /* usually package it under the same name, so a runtime check */
78 /* is required */
79 /* unfortunately, pango fdoesn't sipport runtime checks in < 1.16 */
80 /* so there is no real way to ensure binary compatibility portably */
81 /* greta move, pango */
82 if (pango_version () > PANGO_VERSION_ENCODE (1, 23, 0))
83 PANGO_FC_FONT (font)->fontmap = fontmap;
84#endif
85
75 return font; 86 return font;
76} 87}
77 88
78static void 89static void
79load_fallback_face (PangoOpenGLFont *font, const char *original_file) 90load_fallback_face (PangoOpenGLFont *font, const char *original_file)
100 if (FcPatternGetInteger (matched, FC_INDEX, 0, &id) != FcResultMatch) 111 if (FcPatternGetInteger (matched, FC_INDEX, 0, &id) != FcResultMatch)
101 goto bail1; 112 goto bail1;
102 113
103 error = FT_New_Face (_pango_opengl_font_map_get_library (fcfont->fontmap), 114 error = FT_New_Face (_pango_opengl_font_map_get_library (fcfont->fontmap),
104 (char *) filename2, id, &font->face); 115 (char *) filename2, id, &font->face);
105
106 116
107 if (error) 117 if (error)
108 { 118 {
109 bail1: 119 bail1:
110 name = pango_font_description_to_string (fcfont->description); 120 name = pango_font_description_to_string (fcfont->description);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines