* gtkutil.c (xg_get_font): Use pango_units_to_double.
+2012-08-15 Dmitry Antipov <dmantipov@yandex.ru>
+
+ * gtkutil.c (xg_get_font): Use pango_units_to_double.
+
2012-08-15 Chong Yidong <cyd@gnu.org>
* gtkutil.c (xg_get_font): Rename from xg_get_font_name. When
{
Lisp_Object args[8];
const char *name = pango_font_description_get_family (desc);
+ gint size = pango_font_description_get_size (desc);
PangoWeight weight = pango_font_description_get_weight (desc);
- PangoStyle style = pango_font_description_get_style (desc);
+ PangoStyle style = pango_font_description_get_style (desc);
args[0] = QCname;
args[1] = build_string (name);
args[2] = QCsize;
- args[3] = make_float (((double) pango_font_description_get_size (desc))
- / PANGO_SCALE);
+ args[3] = make_float (pango_units_to_double (size));
args[4] = QCweight;
args[5] = XG_WEIGHT_TO_SYMBOL (weight);