aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-09-08 19:36:58 +0000
committerGravatar bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-09-08 19:36:58 +0000
commit53cbb0baac09e60e7633c15301a29a83afb1a8de (patch)
tree95f453c703be8120410d17d50a142ae1c55b8508
parent14bb80841b4bf12f59f391eabc424fea2ca9ad30 (diff)
Return canonical logfont size to 64.
This is to fix crbug/277301. With skia:r9057 the canonical logfont size was set to 2048 in an attempt to get better font metrics. The font size is now being handled in a cleaner way, so this motivation no longer exists. However, when the logfont size is large GDI will substitute a vector font for a bitmap font. This results in incorrect results for bitmap fonts as they are no longer properly detected by the typeface. git-svn-id: http://skia.googlecode.com/svn/trunk@11145 2bbb7eff-a529-9590-31e7-b0007b416f81
-rwxr-xr-xsrc/ports/SkFontHost_win.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ports/SkFontHost_win.cpp b/src/ports/SkFontHost_win.cpp
index 4bce8b04c3..d7b38959a7 100755
--- a/src/ports/SkFontHost_win.cpp
+++ b/src/ports/SkFontHost_win.cpp
@@ -118,7 +118,7 @@ static void dcfontname_to_skstring(HDC deviceContext, const LOGFONT& lf, SkStrin
}
static void make_canonical(LOGFONT* lf) {
- lf->lfHeight = -2048;
+ lf->lfHeight = -64;
lf->lfQuality = CLEARTYPE_QUALITY;//PROOF_QUALITY;
lf->lfCharSet = DEFAULT_CHARSET;
// lf->lfClipPrecision = 64;