]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Just noticed that selecting "client:Bitstream Vera Sans Mono 10" in
authorSimon Tatham <anakin@pobox.com>
Sun, 13 Apr 2008 07:48:10 +0000 (07:48 +0000)
committerSimon Tatham <anakin@pobox.com>
Sun, 13 Apr 2008 07:48:10 +0000 (07:48 +0000)
the font config box and then invoking the unifontsel causes the box
to come up empty rather than populated with that font. Turns out
that I completely forgot to have pangofont_canonify_fontname()
return the flags word, ahem.

[originally from svn r7988]

unix/gtkfont.c

index a909364c85a15724f43bd1e0307a7ba231790811..d73e920ae104734ca85e5ed476df2580c24c08b6 100644 (file)
@@ -1131,6 +1131,7 @@ static char *pangofont_canonify_fontname(GtkWidget *widget, const char *name,
     }
 
     *size = PANGO_PIXELS(pango_font_description_get_size(desc));
+    *flags = FONTFLAG_CLIENTSIDE;
     pango_font_description_set_size(desc, PANGO_DUMMY_SIZE * PANGO_SCALE);
     newname = pango_font_description_to_string(desc);
     retname = dupstr(newname);