diff options
author | Ivan, Wong Yat Cheung <email@ivanwong.info> | 2005-04-21 10:39:39 +0000 |
---|---|---|
committer | Tor Lillqvist <tml@src.gnome.org> | 2005-04-21 10:39:39 +0000 |
commit | e41ade967e06b92b039fef05904e6919dce212db (patch) | |
tree | e4f967fd8e6f451ce468820db1df2468fc70240d /gdk/win32 | |
parent | 5bbafe80f153e9f7cffb6ade18b4cb888760f4c0 (diff) | |
download | gdk-pixbuf-e41ade967e06b92b039fef05904e6919dce212db.tar.gz |
Match character height instead of cell height. Fix #301228.
2005-04-19 Ivan, Wong Yat Cheung <email@ivanwong.info>
* gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Match
character height instead of cell height. Fix #301228.
Diffstat (limited to 'gdk/win32')
-rw-r--r-- | gdk/win32/gdkfont-win32.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdk/win32/gdkfont-win32.c b/gdk/win32/gdkfont-win32.c index 2086fe7c8..62c4d1021 100644 --- a/gdk/win32/gdkfont-win32.c +++ b/gdk/win32/gdkfont-win32.c @@ -1018,9 +1018,9 @@ gdk_font_load_internal (const gchar *font_name) if (strcmp (point_size, "*") == 0) logfont.lfHeight = 0; else - logfont.lfHeight = (int) (((double) atoi (point_size))/720.*logpixelsy); + logfont.lfHeight = -(int) (((double) atoi (point_size))/720.*logpixelsy); else - logfont.lfHeight = atoi (pixel_size); + logfont.lfHeight = -atoi (pixel_size); logfont.lfWidth = 0; logfont.lfEscapement = 0; |