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
This commit is contained in:
agl@chromium.org 2009-08-07 19:19:23 +00:00
Родитель 152f748386
Коммит e0d089900e
1 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -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;
}