… | |
… | |
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) |
75 | /* pango 1.24 is ABI-incompatible with 1.22, but distros */ |
76 | /* pango 1.24 is ABI-incompatible with 1.22, but distros */ |
76 | /* usually package it under the same name, so a runtime check */ |
77 | /* usually package it under the same name, so a runtime check */ |
77 | /* is required */ |
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 */ |
78 | if (pango_version () > PANGO_VERSION_ENCODE (1, 23, 0)) |
82 | if (pango_version () > PANGO_VERSION_ENCODE (1, 23, 0)) |
79 | PANGO_FC_FONT (font)->fontmap = fontmap; |
83 | PANGO_FC_FONT (font)->fontmap = fontmap; |
|
|
84 | #endif |
80 | |
85 | |
81 | return font; |
86 | return font; |
82 | } |
87 | } |
83 | |
88 | |
84 | static void |
89 | static void |