… | |
… | |
168 | static void |
168 | static void |
169 | pango_opengl_font_map_default_substitute (PangoFcFontMap *fcfontmap, |
169 | pango_opengl_font_map_default_substitute (PangoFcFontMap *fcfontmap, |
170 | FcPattern *pattern) |
170 | FcPattern *pattern) |
171 | { |
171 | { |
172 | PangoOpenGLFontMap *fontmap = PANGO_OPENGL_FONT_MAP (fcfontmap); |
172 | PangoOpenGLFontMap *fontmap = PANGO_OPENGL_FONT_MAP (fcfontmap); |
173 | FcValue v; |
|
|
174 | |
173 | |
175 | FcConfigSubstitute (NULL, pattern, FcMatchPattern); |
174 | FcConfigSubstitute (NULL, pattern, FcMatchPattern); |
176 | |
175 | |
177 | if (fontmap->substitute_func) |
176 | if (fontmap->substitute_func) |
178 | fontmap->substitute_func (pattern, fontmap->substitute_data); |
177 | fontmap->substitute_func (pattern, fontmap->substitute_data); |
179 | |
178 | |
180 | #if 0 |
179 | #if 0 |
|
|
180 | FcValue v; |
181 | if (FcPatternGet (pattern, FC_DPI, 0, &v) == FcResultNoMatch) |
181 | if (FcPatternGet (pattern, FC_DPI, 0, &v) == FcResultNoMatch) |
182 | FcPatternAddDouble (pattern, FC_DPI, fontmap->dpi_y); |
182 | FcPatternAddDouble (pattern, FC_DPI, fontmap->dpi_y); |
183 | #endif |
183 | #endif |
184 | FcDefaultSubstitute (pattern); |
184 | FcDefaultSubstitute (pattern); |
185 | } |
185 | } |