2012-08-16 Chong Yidong <cyd@gnu.org>
+ * gtkutil.c (xg_get_font): Demand an Xft font (Bug#3228).
+
* xfont.c (xfont_open):
* xftfont.c (xftfont_open): Set the font's max_width field.
#if USE_NEW_GTK_FONT_CHOOSER
-extern Lisp_Object Qnormal;
+extern Lisp_Object Qxft, Qnormal;
extern Lisp_Object Qextra_light, Qlight, Qsemi_light, Qsemi_bold;
extern Lisp_Object Qbold, Qextra_bold, Qultra_bold;
extern Lisp_Object Qoblique, Qitalic;
if (desc)
{
- Lisp_Object args[8];
+ Lisp_Object args[10];
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);
args[6] = QCslant;
args[7] = XG_STYLE_TO_SYMBOL (style);
+ args[8] = QCtype;
+ args[9] = Qxft;
+
font = Ffont_spec (8, args);
pango_font_description_free (desc);
/* Xft font driver. */
-static Lisp_Object Qxft;
+Lisp_Object Qxft;
static Lisp_Object QChinting, QCautohint, QChintstyle, QCrgba, QCembolden,
QClcdfilter;