aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar agl@chromium.org <agl@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2009-08-07 19:19:23 +0000
committerGravatar agl@chromium.org <agl@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2009-08-07 19:19:23 +0000
commite0d089900e898cdb834d48e3062622008d9da687 (patch)
treebb8b546bdbc69e12e69f9f8eb52e8712b8aab4ac /src
parent152f748386143475daf9da31aceb424dc7c8a7e6 (diff)
FreeType: don't use bitmap strikes when antialiasing
If the user requested anti-aliasing then we don't use bitmap strikes in the font. The consensus among our Japanese users is that this results in the best quality. http://code.google.com/p/chromium/issues/detail?id=18333 http://codereview.appspot.com/105050 git-svn-id: http://skia.googlecode.com/svn/trunk@310 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src')
-rw-r--r--src/ports/SkFontHost_FreeType.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ports/SkFontHost_FreeType.cpp b/src/ports/SkFontHost_FreeType.cpp
index 77f4b23275..e09e542819 100644
--- a/src/ports/SkFontHost_FreeType.cpp
+++ b/src/ports/SkFontHost_FreeType.cpp
@@ -376,6 +376,13 @@ SkScalerContext_FreeType::SkScalerContext_FreeType(const SkDescriptor* desc)
break;
}
+ if (fRec.fMaskFormat != SkMask::kBW_Format) {
+ // If the user requested anti-aliasing then we don't use bitmap
+ // strikes in the font. The consensus among our Japanese users is
+ // that this results in the best quality.
+ loadFlags |= FT_LOAD_NO_BITMAP;
+ }
+
fLoadGlyphFlags = loadFlags;
}