summaryrefslogtreecommitdiff
path: root/pango/pangowin32-fontcache.c
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2002-05-26 00:19:10 +0000
committerTor Lillqvist <tml@src.gnome.org>2002-05-26 00:19:10 +0000
commit25878a0341a8076296ab4ae88ee972641e6f963c (patch)
tree6b65ac21b13ca2948c94a2504efc88e9160e5c12 /pango/pangowin32-fontcache.c
parent2ae219a829b3b2c77f27b93cc4b03a2ddde23fd5 (diff)
downloadpango-25878a0341a8076296ab4ae88ee972641e6f963c.tar.gz
Use complete PANGO_VERSION in zip file names.
2002-05-26 Tor Lillqvist <tml@iki.fi> * pango-zip.sh.in: Use complete PANGO_VERSION in zip file names. * pango/Makefile.am: (Win32) Compile resource files and link with them. * pango/pango.rc.in * pango/pangoft2.rc.in * pango/pangowin32.rc.in: Include also the micro version number. * pango/pangowin32-fontcache.c (logfont_hash): Use absolute value of lfHeight. * pango/pangowin32-fontmap.c (pango_win32_font_map_for_display): Instead of HORZSIZE which is Windows idea of physical monitor width (but which can be *very* wrong), use LOGPIXELSY (the "logical" dpi). This can be set by the user by choosing "small fonts", "large fonts", or a custom dpi in the Display Settings. Thanks to Joaquin Cuenca Abela. (pango_win32_make_matching_logfont): Set lfHeight to the negative of the requested size. Positive lfHeight indicates "cell height", negative "character height" (?), which is closer to what we want, says Joaquin Cuenca Abela.
Diffstat (limited to 'pango/pangowin32-fontcache.c')
-rw-r--r--pango/pangowin32-fontcache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/pangowin32-fontcache.c b/pango/pangowin32-fontcache.c
index 6dd87c5b..9d8db725 100644
--- a/pango/pangowin32-fontcache.c
+++ b/pango/pangowin32-fontcache.c
@@ -91,7 +91,7 @@ logfont_hash (gconstpointer v)
lfp->lfItalic +
lfp->lfWeight/10 +
lfp->lfOrientation +
- lfp->lfHeight * 10;
+ abs (lfp->lfHeight) * 10;
}
static gint