| Index: src/core/SkFontHost.cpp
|
| diff --git a/src/core/SkFontHost.cpp b/src/core/SkFontHost.cpp
|
| index 77b80e88219e8a26efff200a03101ed18dc126ce..14cca5a6a58f37132a84a70c0303180c6ddff979 100644
|
| --- a/src/core/SkFontHost.cpp
|
| +++ b/src/core/SkFontHost.cpp
|
| @@ -119,10 +119,18 @@ protected:
|
| const SkFontStyle&) const SK_OVERRIDE {
|
| return NULL;
|
| }
|
| +#ifdef SK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER
|
| virtual SkTypeface* onMatchFamilyStyleCharacter(const char familyName[],
|
| const SkFontStyle& style,
|
| - const char bpc47[],
|
| - uint32_t character) const SK_OVERRIDE {
|
| + const char* bcp47[],
|
| + int bcp47Count,
|
| + SkUnichar character) const SK_OVERRIDE {
|
| +#else
|
| + virtual SkTypeface* onMatchFamilyStyleCharacter(const char familyName[],
|
| + const SkFontStyle& style,
|
| + const char bcp47[],
|
| + SkUnichar character) const SK_OVERRIDE {
|
| +#endif
|
| return NULL;
|
| }
|
| virtual SkTypeface* onMatchFaceStyle(const SkTypeface*,
|
| @@ -171,10 +179,18 @@ SkTypeface* SkFontMgr::matchFamilyStyle(const char familyName[],
|
| return this->onMatchFamilyStyle(familyName, fs);
|
| }
|
|
|
| +#ifdef SK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER
|
| +SkTypeface* SkFontMgr::matchFamilyStyleCharacter(const char familyName[], const SkFontStyle& style,
|
| + const char* bcp47[], int bcp47Count,
|
| + SkUnichar character) const {
|
| + return this->onMatchFamilyStyleCharacter(familyName, style, bcp47, bcp47Count, character);
|
| +}
|
| +#else
|
| SkTypeface* SkFontMgr::matchFamilyStyleCharacter(const char familyName[], const SkFontStyle& style,
|
| - const char bpc47[], uint32_t character) const {
|
| - return this->onMatchFamilyStyleCharacter(familyName, style, bpc47, character);
|
| + const char bcp47[], SkUnichar character) const {
|
| + return this->onMatchFamilyStyleCharacter(familyName, style, bcp47, character);
|
| }
|
| +#endif
|
|
|
| SkTypeface* SkFontMgr::matchFaceStyle(const SkTypeface* face,
|
| const SkFontStyle& fs) const {
|
|
|