diff options
author | Tor Lillqvist <tml@novell.com> | 2005-09-22 15:00:39 +0000 |
---|---|---|
committer | Tor Lillqvist <tml@src.gnome.org> | 2005-09-22 15:00:39 +0000 |
commit | 9b9374594df6c1e58eea8be0c3b96f680316430e (patch) | |
tree | a987766a04bdd0268f7c21865d71bc90cbd8d14a /pango/pangocairo-win32fontmap.c | |
parent | 070475029649c86d378cb12eb6def74c01b8acf4 (diff) | |
download | pango-9b9374594df6c1e58eea8be0c3b96f680316430e.tar.gz |
Move the calculation of dpi and size earlier. Use the size variable instad
2005-09-22 Tor Lillqvist <tml@novell.com>
* pango/pangocairo-win32font.c (_pango_cairo_win32_font_new): Move
the calculation of dpi and size earlier. Use the size variable
instad of isize when looking for a matching cached font. Isize was
supposed to be the same as size anyway. (Actually it was the same
only when LOGPIXELSY equalled 96 (which often is the default
value), see below.)
* pango/pangocairo-win32fontmap.c (pango_cairo_win32_font_map_init):
Set dpi to the LOGPIXELSY value instead of hardcoding 96.
* pango/Makefile.am (libpangocairo_1_0_la_LIBADD): Need WIN32_LIBS
now.
Diffstat (limited to 'pango/pangocairo-win32fontmap.c')
-rw-r--r-- | pango/pangocairo-win32fontmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/pangocairo-win32fontmap.c b/pango/pangocairo-win32fontmap.c index 51393efa..9449fda7 100644 --- a/pango/pangocairo-win32fontmap.c +++ b/pango/pangocairo-win32fontmap.c @@ -104,5 +104,5 @@ pango_cairo_win32_font_map_class_init (PangoCairoWin32FontMapClass *class) static void pango_cairo_win32_font_map_init (PangoCairoWin32FontMap *cwfontmap) { - cwfontmap->dpi = 96.0; + cwfontmap->dpi = GetDeviceCaps (pango_win32_get_dc (), LOGPIXELSY); } |