Index: src/ports/SkFontHost_win.cpp |
diff --git a/src/ports/SkFontHost_win.cpp b/src/ports/SkFontHost_win.cpp |
index 9ded4f5f5393bfc4828524f02bfd7a35c321e154..c9781ba23af4e3f0ee18603029c63b5dac3cf9f6 100644 |
--- a/src/ports/SkFontHost_win.cpp |
+++ b/src/ports/SkFontHost_win.cpp |
@@ -2501,12 +2501,7 @@ protected: |
return this->createFromStream(SkStream::NewFromFile(path)); |
} |
-#ifdef SK_VERY_LEGACY_CREATE_TYPEFACE |
- SkTypeface* onLegacyCreateTypeface(const char familyName[], unsigned styleBits) const override { |
- SkFontStyle style = SkFontStyle::FromOldStyle(styleBits); |
-#else |
SkTypeface* onLegacyCreateTypeface(const char familyName[], SkFontStyle style) const override { |
-#endif |
LOGFONT lf; |
if (nullptr == familyName) { |
lf = get_default_font(); |