Use FontMap resolution in pango_ft2_font_get_face()?
Submitted by ton..@..un.com
Description
A PangoFT2FontMap allows specification of horizontal and vertical resolution.
pango_ft2_font_get_face() contains:
if (ft2font->size != GPOINTER_TO_UINT (face->generic.data)) { face->generic.data = GUINT_TO_POINTER (ft2font->size);
error = FT_Set_Char_Size (face,
PANGO_PIXELS_26_6 (ft2font->size),
PANGO_PIXELS_26_6 (ft2font->size),
0, 0);
if (error)
g_warning ("Error in FT_Set_Char_Size: %d", error);
}
where 0 in the third and fourth arguments to FT_Set_Char_Size() select a default horizontal and vertical resolution of 72 dpi.
Shouldn't FT_Set_Char_Size() use the horizontal and vertical resolution from the PangoFT2FontMap?
Version: 1.1.x