Commit e41ade96 authored by Ivan, Wong Yat Cheung's avatar Ivan, Wong Yat Cheung Committed by Tor Lillqvist

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.
parent 5bbafe80
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> 2005-04-18 Federico Mena Quintero <federico@ximian.com>
Merged from gtk-2-6: Merged from gtk-2-6:
......
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> 2005-04-18 Federico Mena Quintero <federico@ximian.com>
Merged from gtk-2-6: Merged from gtk-2-6:
......
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> 2005-04-18 Federico Mena Quintero <federico@ximian.com>
Merged from gtk-2-6: Merged from gtk-2-6:
......
...@@ -1018,9 +1018,9 @@ gdk_font_load_internal (const gchar *font_name) ...@@ -1018,9 +1018,9 @@ gdk_font_load_internal (const gchar *font_name)
if (strcmp (point_size, "*") == 0) if (strcmp (point_size, "*") == 0)
logfont.lfHeight = 0; logfont.lfHeight = 0;
else else
logfont.lfHeight = (int) (((double) atoi (point_size))/720.*logpixelsy); logfont.lfHeight = -(int) (((double) atoi (point_size))/720.*logpixelsy);
else else
logfont.lfHeight = atoi (pixel_size); logfont.lfHeight = -atoi (pixel_size);
logfont.lfWidth = 0; logfont.lfWidth = 0;
logfont.lfEscapement = 0; logfont.lfEscapement = 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment