forked from AuroraMiddleware/gtk
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:
parent
5bbafe80f1
commit
e41ade967e
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user