| Index: src/ports/SkFontHost_mac.cpp
|
| diff --git a/src/ports/SkFontHost_mac.cpp b/src/ports/SkFontHost_mac.cpp
|
| index 8d4a3f8cfcc0a1a39d3edd24bdcf34a1fd94fedf..4ae53f1bd266ee8e72510f548fa2c6a921a8d7d5 100644
|
| --- a/src/ports/SkFontHost_mac.cpp
|
| +++ b/src/ports/SkFontHost_mac.cpp
|
| @@ -2572,10 +2572,12 @@ protected:
|
| return create_from_dataProvider(pr);
|
| }
|
|
|
| - virtual SkTypeface* onLegacyCreateTypeface(const char familyName[],
|
| - unsigned styleBits) const override {
|
| -
|
| - SkFontStyle style = SkFontStyle((SkTypeface::Style)styleBits);
|
| +#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
|
| if (familyName) {
|
| familyName = map_css_names(familyName);
|
| }
|
|
|