Fix some fixed-width CJK
http://code.google.com/p/skia/issues/detail?id=222 git-svn-id: http://skia.googlecode.com/svn/trunk@1261 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
9ac5e228c6
commit
96a9f791f2
@ -663,6 +663,11 @@ SkScalerContext_FreeType::SkScalerContext_FreeType(const SkDescriptor* desc)
|
||||
if ((fRec.fFlags & SkScalerContext::kEmbeddedBitmapText_Flag) == 0)
|
||||
loadFlags |= FT_LOAD_NO_BITMAP;
|
||||
|
||||
// Always using FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH to get correct
|
||||
// advances, as fontconfig and cairo do.
|
||||
// See http://code.google.com/p/skia/issues/detail?id=222.
|
||||
loadFlags |= FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH;
|
||||
|
||||
fLoadGlyphFlags = loadFlags;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user