| Index: src/ports/SkFontHost_mac.cpp
|
| diff --git a/src/ports/SkFontHost_mac.cpp b/src/ports/SkFontHost_mac.cpp
|
| index 3c73493b41479745c2bb4ede10b8bb9e39be9300..5386ac3f3e1dfcb3f17171b624f86915c42a3ea8 100755
|
| --- a/src/ports/SkFontHost_mac.cpp
|
| +++ b/src/ports/SkFontHost_mac.cpp
|
| @@ -452,6 +452,7 @@ protected:
|
|
|
| virtual int onGetUPEM() const SK_OVERRIDE;
|
| virtual SkStream* onOpenStream(int* ttcIndex) const SK_OVERRIDE;
|
| + virtual void onGetFamilyName(SkString* familyName) const SK_OVERRIDE;
|
| virtual SkTypeface::LocalizedStrings* onCreateFamilyNameIterator() const SK_OVERRIDE;
|
| virtual int onGetTableTags(SkFontTableTag tags[]) const SK_OVERRIDE;
|
| virtual size_t onGetTableData(SkFontTableTag, size_t offset,
|
| @@ -1900,6 +1901,10 @@ static const char* get_str(CFStringRef ref, SkString* str) {
|
| return str->c_str();
|
| }
|
|
|
| +void SkTypeface_Mac::onGetFamilyName(SkString* familyName) const {
|
| + get_str(CTFontCopyFamilyName(fFontRef), familyName);
|
| +}
|
| +
|
| void SkTypeface_Mac::onGetFontDescriptor(SkFontDescriptor* desc,
|
| bool* isLocalStream) const {
|
| SkString tmpStr;
|
|
|