summaryrefslogtreecommitdiff
path: root/pango/pangowin32-fontcache.c
diff options
context:
space:
mode:
authorHans Breuer <hans@breuer.org>2001-11-23 13:12:51 +0000
committerHans Breuer <hans@src.gnome.org>2001-11-23 13:12:51 +0000
commitb4b11e4ba669ddfdb54e7da737f9b9b0f22b9e9f (patch)
tree1b57c4eee70532bfa12651d12a131e7488c68026 /pango/pangowin32-fontcache.c
parenta2c1ae618174619a2b99a7f8e765713be249c5e2 (diff)
downloadpango-b4b11e4ba669ddfdb54e7da737f9b9b0f22b9e9f.tar.gz
removed the arbitrary limit to 10 fonts. Instead make the command line
2001-11-23 Hans Breuer <hans@breuer.org> * testfonts.c : removed the arbitrary limit to 10 fonts. Instead make the command line params useful again and reduce the default result bitmap size by decreasing the default font size. * pango/pangowin32-fontcache.c (pango_win32_font_cache_load): Don't always turn on anti-aliasing. Respect the users settings from 'Properties of Display/Effects'. * pango/makefile.msc : updated, version 0.22 * pango/pango.def : updated externals * pango/font.c pango/pango-coverage.c pango-utils.c pango/pangowin32.c pango/shape.c : coding style and static correctness
Diffstat (limited to 'pango/pangowin32-fontcache.c')
-rw-r--r--pango/pangowin32-fontcache.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/pango/pangowin32-fontcache.c b/pango/pangowin32-fontcache.c
index e09dd79d..613c3806 100644
--- a/pango/pangowin32-fontcache.c
+++ b/pango/pangowin32-fontcache.c
@@ -184,9 +184,10 @@ pango_win32_font_cache_load (PangoWin32FontCache *cache,
}
else
{
+ BOOL aa = TRUE; /* turn on anti-aliasing */
lf = *lfp;
- /* Always turn on anti-aliasing */
- lf.lfQuality = ANTIALIASED_QUALITY;
+ SystemParametersInfo (SPI_GETFONTSMOOTHING, 0, &aa, 0);
+ lf.lfQuality = (aa ? ANTIALIASED_QUALITY : DEFAULT_QUALITY);
for (tries = 0; ; tries++)
{
#if 0