mirror of
https://github.com/brl/mutter.git
synced 2025-06-14 01:09:30 +00:00
2007-08-02 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/eglnative/clutter-backend-egl.c: * clutter/eglx/clutter-backend-egl.c: * clutter/sdl/clutter-backend-sdl.c: Set the default resolution as 96.0 dpi for every backend (we already were under this assumption anyway, and this makes it easier to change this setting per-backend). * clutter/pango/pangoclutter-fontmap.c: * clutter/pango/pangoclutter.h: Allow setting the resolution for the PangoClutterFontMap object and provide the implementation for the PangoFcFontMap::get_resolution() virtual function. This allows to set the resolution of the PangoContext when retrieving it. * clutter/clutter-label.c (clutter_label_init): Set the resolution of the font map with the one the backend gives us. * clutter/clutter-entry.c (clutter_entry_init): Ditto.
This commit is contained in:
@ -727,8 +727,7 @@ clutter_entry_init (ClutterEntry *self)
|
||||
if (G_UNLIKELY (_context == NULL))
|
||||
{
|
||||
_font_map = PANGO_CLUTTER_FONT_MAP (pango_clutter_font_map_new ());
|
||||
|
||||
/* pango_clutter_font_map_set_resolution (font_map, 96.0, 96.0); */
|
||||
pango_clutter_font_map_set_resolution (_font_map, resolution);
|
||||
_context = pango_clutter_font_map_create_context (_font_map);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user