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.
This commit is contained in:
Ivan, Wong Yat Cheung 2005-04-21 10:39:39 +00:00 committed by Tor Lillqvist
parent 5bbafe80f1
commit e41ade967e
4 changed files with 17 additions and 2 deletions

View File

@ -1,3 +1,8 @@
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.
2005-04-18 Federico Mena Quintero <federico@ximian.com>
Merged from gtk-2-6:

View File

@ -1,3 +1,8 @@
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.
2005-04-18 Federico Mena Quintero <federico@ximian.com>
Merged from gtk-2-6:

View File

@ -1,3 +1,8 @@
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.
2005-04-18 Federico Mena Quintero <federico@ximian.com>
Merged from gtk-2-6:

View File

@ -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;