diff options
author | 2009-07-23 21:10:32 +0000 | |
---|---|---|
committer | 2009-07-23 21:10:32 +0000 | |
commit | e61238b4f6943097f60a1ad1bf678f6a98613564 (patch) | |
tree | 08751fce78eb282303c46703c288dc182ab260fb /src | |
parent | bfbd4fff66da7fa4409a4d4bf838b85ef69a7200 (diff) |
Build fix: add FilterRec for Windows.
Since we don't control the settings on Windows, I believe we may just
as well filter everything.
TBR=reed
http://codereview.appspot.com/97070
git-svn-id: http://skia.googlecode.com/svn/trunk@288 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src')
-rw-r--r-- | src/ports/SkFontHost_win.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ports/SkFontHost_win.cpp b/src/ports/SkFontHost_win.cpp index a081c63ee1..76cb7a5a08 100644 --- a/src/ports/SkFontHost_win.cpp +++ b/src/ports/SkFontHost_win.cpp @@ -634,4 +634,12 @@ SkTypeface* SkFontHost::CreateTypefaceFromFile(const char path[]) { return NULL;
}
+void SkFontHost::FilterRec(SkScalerContext::Rec* rec) {
+ // We don't control the hinting nor ClearType settings here
+ rec->setHinting(SkPaint::kNormal_Hinting);
+ if (SkMask::FormatIsLCD((SkMask::Format)rec->fMaskFormat)) {
+ rec->fMaskFormat = SkMask::kA8_Format;
+ }
+}
+
#endif // WIN32
|