diff options
Diffstat (limited to 'Linux_C_12')
-rw-r--r-- | Linux_C_12/cpicture_121.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Linux_C_12/cpicture_121.c b/Linux_C_12/cpicture_121.c index bc95fbf..54c130d 100644 --- a/Linux_C_12/cpicture_121.c +++ b/Linux_C_12/cpicture_121.c @@ -1215,9 +1215,11 @@ void WinDisposeBitmap (GdkPixbuf *pixbuf) void WinSetFont (CLEAN_STRING fontName, gint style, gint size,
GdkDrawable *inDraw, OS ios, GdkDrawable **outDraw, OS *oos)
{
- printf("WinSetFont\n");
+ printf("WinSetFont: %s\n", cstring(fontName));
if (theFont) gdk_font_unref(theFont);
+ if (theFontDesc) pango_font_description_free(theFontDesc);
+ theFontDesc = pango_font_description_new();
pango_font_description_set_family(theFontDesc,cstring(fontName));
pango_font_description_set_weight(theFontDesc,(style & iBold) ? PANGO_WEIGHT_BOLD : PANGO_WEIGHT_NORMAL);
pango_font_description_set_style(theFontDesc,(style & iItalic) ? PANGO_STYLE_ITALIC : PANGO_STYLE_NORMAL);
|