/external/skia/tools/fonts/ |
H A D | SkTestFontMgr.cpp | 24 const char* familyName = kFamilyNames[familyIndex]; local 26 fTypefaces[0] = create_portable_typeface(familyName, SkFontStyle::Normal()); 27 fTypefaces[1] = create_portable_typeface(familyName, SkFontStyle::Bold()); 28 fTypefaces[2] = create_portable_typeface(familyName, SkFontStyle::Italic()); 29 fTypefaces[3] = create_portable_typeface(familyName, SkFontStyle::BoldItalic()); 76 void onGetFamilyName(int index, SkString* familyName) const override { 77 *familyName = kFamilyNames[index]; 84 SkFontStyleSet* onMatchFamily(const char familyName[]) const override { 85 if (familyName) { 86 if (strstr(familyName, "an 112 SkString familyName; variable [all...] |
/external/skqp/dm/ |
H A D | DMFontMgr.cpp | 24 const char* familyName = kFamilyNames[familyIndex]; local 26 fTypefaces[0] = create_portable_typeface(familyName, SkFontStyle::Normal()); 27 fTypefaces[1] = create_portable_typeface(familyName, SkFontStyle::Bold()); 28 fTypefaces[2] = create_portable_typeface(familyName, SkFontStyle::Italic()); 29 fTypefaces[3] = create_portable_typeface(familyName, SkFontStyle::BoldItalic()); 76 void onGetFamilyName(int index, SkString* familyName) const override { 77 *familyName = kFamilyNames[index]; 84 SkFontStyleSet* onMatchFamily(const char familyName[]) const override { 85 if (familyName) { 86 if (strstr(familyName, "an 112 SkString familyName; variable [all...] |
/external/skia/src/ports/ |
H A D | SkFontConfigTypeface.h | 25 SkString familyName, 28 return new SkTypeface_FCI(std::move(fci), fi, std::move(familyName), style); 32 SkString familyName, SkFontStyle style, bool isFixedPitch) 34 return new SkTypeface_FCI(std::move(data), std::move(familyName), style, isFixedPitch); 44 SkString familyName, 49 , fFamilyName(std::move(familyName)) 53 SkString familyName, SkFontStyle style, bool isFixedPitch) 55 , fFamilyName(std::move(familyName)) 62 void onGetFamilyName(SkString* familyName) const override { *familyName 23 Create(sk_sp<SkFontConfigInterface> fci, const SkFontConfigInterface::FontIdentity& fi, SkString familyName, const SkFontStyle& style) argument 31 Create(std::unique_ptr<SkFontData> data, SkString familyName, SkFontStyle style, bool isFixedPitch) argument 42 SkTypeface_FCI(sk_sp<SkFontConfigInterface> fci, const SkFontConfigInterface::FontIdentity& fi, SkString familyName, const SkFontStyle& style) argument 52 SkTypeface_FCI(std::unique_ptr<SkFontData> data, SkString familyName, SkFontStyle style, bool isFixedPitch) argument [all...] |
H A D | SkFontMgr_custom.h | 28 bool sysFont, const SkString familyName, int index); 32 void onGetFamilyName(SkString* familyName) const override; 63 const SkString familyName); 79 const SkString familyName, const char path[], int index); 99 explicit SkFontStyleSet_Custom(const SkString familyName); 135 void onGetFamilyName(int index, SkString* familyName) const override; 137 SkFontStyleSet_Custom* onMatchFamily(const char familyName[]) const override; 138 SkTypeface* onMatchFamilyStyle(const char familyName[], 140 SkTypeface* onMatchFamilyStyleCharacter(const char familyName[], const SkFontStyle&, 150 sk_sp<SkTypeface> onLegacyMakeTypeface(const char familyName[], SkFontStyl [all...] |
H A D | SkFontMgr_custom.cpp | 29 bool sysFont, const SkString familyName, int index) 31 , fIsSysFont(sysFont), fFamilyName(familyName), fIndex(index) 36 void SkTypeface_Custom::onGetFamilyName(SkString* familyName) const { 37 *familyName = fFamilyName; 56 const SkString familyName) 57 : INHERITED(style, isFixedPitch, sysFont, familyName, fontData->getIndex()) 72 const SkString familyName, const char path[], int index) 73 : INHERITED(style, isFixedPitch, sysFont, familyName, index) 84 SkFontStyleSet_Custom::SkFontStyleSet_Custom(const SkString familyName) : fFamilyName(familyName) {} argument 28 SkTypeface_Custom(const SkFontStyle& style, bool isFixedPitch, bool sysFont, const SkString familyName, int index) argument 54 SkTypeface_Stream(std::unique_ptr<SkFontData> fontData, const SkFontStyle& style, bool isFixedPitch, bool sysFont, const SkString familyName) argument 71 SkTypeface_File(const SkFontStyle& style, bool isFixedPitch, bool sysFont, const SkString familyName, const char path[], int index) argument [all...] |
H A D | SkFontMgr_android.cpp | 39 const SkString& familyName) 41 , fFamilyName(familyName) 45 void onGetFamilyName(SkString* familyName) const override { 46 *familyName = fFamilyName; 63 const SkString& familyName, 66 : INHERITED(style, isFixedPitch, familyName) 117 const SkString& familyName) 118 : INHERITED(style, isFixedPitch, familyName) 169 SkString familyName; local 174 &familyName, 37 SkTypeface_Android(const SkFontStyle& style, bool isFixedPitch, const SkString& familyName) argument 57 SkTypeface_AndroidSystem(const SkString& pathName, const bool cacheFontFiles, int index, const SkFixed* axes, int axesCount, const SkFontStyle& style, bool isFixedPitch, const SkString& familyName, const SkTArray<SkLanguage, true>& lang, FontVariant variantStyle) argument 114 SkTypeface_AndroidStream(std::unique_ptr<SkFontData> data, const SkFontStyle& style, bool isFixedPitch, const SkString& familyName) argument [all...] |
H A D | SkFontConfigInterface_direct.h | 21 bool matchFamilyName(const char familyName[],
|
/external/skqp/src/ports/ |
H A D | SkFontConfigTypeface.h | 25 SkString familyName, 28 return new SkTypeface_FCI(std::move(fci), fi, std::move(familyName), style); 32 SkString familyName, SkFontStyle style, bool isFixedPitch) 34 return new SkTypeface_FCI(std::move(data), std::move(familyName), style, isFixedPitch); 44 SkString familyName, 49 , fFamilyName(std::move(familyName)) 53 SkString familyName, SkFontStyle style, bool isFixedPitch) 55 , fFamilyName(std::move(familyName)) 62 void onGetFamilyName(SkString* familyName) const override { *familyName 23 Create(sk_sp<SkFontConfigInterface> fci, const SkFontConfigInterface::FontIdentity& fi, SkString familyName, const SkFontStyle& style) argument 31 Create(std::unique_ptr<SkFontData> data, SkString familyName, SkFontStyle style, bool isFixedPitch) argument 42 SkTypeface_FCI(sk_sp<SkFontConfigInterface> fci, const SkFontConfigInterface::FontIdentity& fi, SkString familyName, const SkFontStyle& style) argument 52 SkTypeface_FCI(std::unique_ptr<SkFontData> data, SkString familyName, SkFontStyle style, bool isFixedPitch) argument [all...] |
H A D | SkFontMgr_custom.h | 28 bool sysFont, const SkString familyName, int index); 32 void onGetFamilyName(SkString* familyName) const override; 63 const SkString familyName); 79 const SkString familyName, const char path[], int index); 99 explicit SkFontStyleSet_Custom(const SkString familyName); 135 void onGetFamilyName(int index, SkString* familyName) const override; 137 SkFontStyleSet_Custom* onMatchFamily(const char familyName[]) const override; 138 SkTypeface* onMatchFamilyStyle(const char familyName[], 140 SkTypeface* onMatchFamilyStyleCharacter(const char familyName[], const SkFontStyle&, 150 sk_sp<SkTypeface> onLegacyMakeTypeface(const char familyName[], SkFontStyl [all...] |
H A D | SkFontMgr_custom.cpp | 29 bool sysFont, const SkString familyName, int index) 31 , fIsSysFont(sysFont), fFamilyName(familyName), fIndex(index) 36 void SkTypeface_Custom::onGetFamilyName(SkString* familyName) const { 37 *familyName = fFamilyName; 56 const SkString familyName) 57 : INHERITED(style, isFixedPitch, sysFont, familyName, fontData->getIndex()) 72 const SkString familyName, const char path[], int index) 73 : INHERITED(style, isFixedPitch, sysFont, familyName, index) 84 SkFontStyleSet_Custom::SkFontStyleSet_Custom(const SkString familyName) : fFamilyName(familyName) {} argument 28 SkTypeface_Custom(const SkFontStyle& style, bool isFixedPitch, bool sysFont, const SkString familyName, int index) argument 54 SkTypeface_Stream(std::unique_ptr<SkFontData> fontData, const SkFontStyle& style, bool isFixedPitch, bool sysFont, const SkString familyName) argument 71 SkTypeface_File(const SkFontStyle& style, bool isFixedPitch, bool sysFont, const SkString familyName, const char path[], int index) argument [all...] |
H A D | SkFontMgr_android.cpp | 39 const SkString& familyName) 41 , fFamilyName(familyName) 45 void onGetFamilyName(SkString* familyName) const override { 46 *familyName = fFamilyName; 63 const SkString& familyName, 66 : INHERITED(style, isFixedPitch, familyName) 117 const SkString& familyName) 118 : INHERITED(style, isFixedPitch, familyName) 169 SkString familyName; local 174 &familyName, 37 SkTypeface_Android(const SkFontStyle& style, bool isFixedPitch, const SkString& familyName) argument 57 SkTypeface_AndroidSystem(const SkString& pathName, const bool cacheFontFiles, int index, const SkFixed* axes, int axesCount, const SkFontStyle& style, bool isFixedPitch, const SkString& familyName, const SkTArray<SkLanguage, true>& lang, FontVariant variantStyle) argument 114 SkTypeface_AndroidStream(std::unique_ptr<SkFontData> data, const SkFontStyle& style, bool isFixedPitch, const SkString& familyName) argument [all...] |
H A D | SkFontConfigInterface_direct.h | 21 bool matchFamilyName(const char familyName[],
|
/external/skia/include/ports/ |
H A D | SkFontMgr.h | 41 void getFamilyName(int index, SkString* familyName) const; 55 SkFontStyleSet* matchFamily(const char familyName[]) const; 58 * Find the closest matching typeface to the specified familyName and style 63 * Passing |nullptr| as the parameter for |familyName| will return the 70 SkTypeface* matchFamilyStyle(const char familyName[], const SkFontStyle&) const; 80 * Passing |nullptr| as the parameter for |familyName| will return the 87 SkTypeface* matchFamilyStyleCharacter(const char familyName[], const SkFontStyle&, 125 sk_sp<SkTypeface> legacyMakeTypeface(const char familyName[], SkFontStyle style) const; 132 virtual void onGetFamilyName(int index, SkString* familyName) const = 0; 136 virtual SkFontStyleSet* onMatchFamily(const char familyName[]) cons [all...] |
H A D | SkFontMgr_indirect.h | 36 void onGetFamilyName(int index, SkString* familyName) const override; 39 SkFontStyleSet* onMatchFamily(const char familyName[]) const override; 41 SkTypeface* onMatchFamilyStyle(const char familyName[], 44 SkTypeface* onMatchFamilyStyleCharacter(const char familyName[], 56 sk_sp<SkTypeface> onLegacyMakeTypeface(const char familyName[], SkFontStyle) const override;
|
H A D | SkRemotableFontMgr.h | 91 virtual SkRemotableFontIdentitySet* matchName(const char familyName[]) const = 0; 110 virtual SkFontIdentity matchNameStyle(const char familyName[], const SkFontStyle&) const = 0; 122 virtual SkFontIdentity matchNameStyleCharacter(const char familyName[], const SkFontStyle&,
|
/external/skqp/include/ports/ |
H A D | SkFontMgr.h | 41 void getFamilyName(int index, SkString* familyName) const; 55 SkFontStyleSet* matchFamily(const char familyName[]) const; 58 * Find the closest matching typeface to the specified familyName and style 63 * Passing |nullptr| as the parameter for |familyName| will return the 70 SkTypeface* matchFamilyStyle(const char familyName[], const SkFontStyle&) const; 80 * Passing |nullptr| as the parameter for |familyName| will return the 87 SkTypeface* matchFamilyStyleCharacter(const char familyName[], const SkFontStyle&, 125 sk_sp<SkTypeface> legacyMakeTypeface(const char familyName[], SkFontStyle style) const; 132 virtual void onGetFamilyName(int index, SkString* familyName) const = 0; 136 virtual SkFontStyleSet* onMatchFamily(const char familyName[]) cons [all...] |
H A D | SkFontMgr_indirect.h | 36 void onGetFamilyName(int index, SkString* familyName) const override; 39 SkFontStyleSet* onMatchFamily(const char familyName[]) const override; 41 SkTypeface* onMatchFamilyStyle(const char familyName[], 44 SkTypeface* onMatchFamilyStyleCharacter(const char familyName[], 56 sk_sp<SkTypeface> onLegacyMakeTypeface(const char familyName[], SkFontStyle) const override;
|
H A D | SkRemotableFontMgr.h | 91 virtual SkRemotableFontIdentitySet* matchName(const char familyName[]) const = 0; 110 virtual SkFontIdentity matchNameStyle(const char familyName[], const SkFontStyle&) const = 0; 122 virtual SkFontIdentity matchNameStyleCharacter(const char familyName[], const SkFontStyle&,
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
H A D | ShadowTypeface.java | 45 public static Typeface create(String familyName, int style) { argument 46 return createUnderlyingTypeface(familyName, style); 75 String familyName = path.toPath().getFileName().toString(); 76 return createUnderlyingTypeface(familyName, Typeface.NORMAL); 114 private static Typeface createUnderlyingTypeface(String familyName, int style) { argument 116 FONTS.put(thisFontId, new FontDesc(familyName, style)); 141 public final String familyName; field in class:ShadowTypeface.FontDesc 144 public FontDesc(String familyName, int style) { argument 145 this.familyName = familyName; [all...] |
/external/skia/src/utils/ |
H A D | SkWhitelistTypefaces.cpp | 90 const char* familyName = subName.c_str(); local 91 desc.setFamilyName(familyName); 99 SkDebugf("%s %s\n", __FUNCTION__, familyName); 132 const char* familyName = desc.getFamilyName(); local 133 if (familyName) { 134 if (!strcmp(familyName, "Times New Roman")) { 137 SkDebugf("%s %s\n", __FUNCTION__, familyName); 141 if (!strcmp(familyName, whitelist[i].fFontName)) { 144 SkDebugf("%s %s\n", __FUNCTION__, familyName); 200 const char* familyName local [all...] |
/external/skqp/src/utils/ |
H A D | SkWhitelistTypefaces.cpp | 90 const char* familyName = subName.c_str(); local 91 desc.setFamilyName(familyName); 99 SkDebugf("%s %s\n", __FUNCTION__, familyName); 132 const char* familyName = desc.getFamilyName(); local 133 if (familyName) { 134 if (!strcmp(familyName, "Times New Roman")) { 137 SkDebugf("%s %s\n", __FUNCTION__, familyName); 141 if (!strcmp(familyName, whitelist[i].fFontName)) { 144 SkDebugf("%s %s\n", __FUNCTION__, familyName); 200 const char* familyName local [all...] |
/external/skia/src/core/ |
H A D | SkFontMgr.cpp | 41 void onGetFamilyName(int index, SkString* familyName) const override { 55 SkTypeface* onMatchFamilyStyleCharacter(const char familyName[], 98 void SkFontMgr::getFamilyName(int index, SkString* familyName) const { 99 this->onGetFamilyName(index, familyName); 106 SkFontStyleSet* SkFontMgr::matchFamily(const char familyName[]) const { 107 return emptyOnNull(this->onMatchFamily(familyName)); 110 SkTypeface* SkFontMgr::matchFamilyStyle(const char familyName[], argument 112 return this->onMatchFamilyStyle(familyName, fs); 115 SkTypeface* SkFontMgr::matchFamilyStyleCharacter(const char familyName[], const SkFontStyle& style, argument 118 return this->onMatchFamilyStyleCharacter(familyName, styl 163 legacyMakeTypeface(const char familyName[], SkFontStyle style) const argument [all...] |
/external/skia/src/fonts/ |
H A D | SkFontMgr_indirect.cpp | 66 void SkFontMgr_Indirect::onGetFamilyName(int index, SkString* familyName) const { 75 SkFontStyleSet* SkFontMgr_Indirect::onMatchFamily(const char familyName[]) const { 76 return new SkStyleSet_Indirect(this, -1, fProxy->matchName(familyName)); 138 SkTypeface* SkFontMgr_Indirect::onMatchFamilyStyle(const char familyName[], argument 140 SkFontIdentity id = fProxy->matchNameStyle(familyName, fontStyle); 144 SkTypeface* SkFontMgr_Indirect::onMatchFamilyStyleCharacter(const char familyName[], argument 149 SkFontIdentity id = fProxy->matchNameStyleCharacter(familyName, style, bcp47, 156 SkString familyName; local 157 familyMember->getFamilyName(&familyName); 158 return this->matchFamilyStyle(familyName 174 onLegacyMakeTypeface(const char familyName[], SkFontStyle style) const argument [all...] |
/external/skqp/src/core/ |
H A D | SkFontMgr.cpp | 41 void onGetFamilyName(int index, SkString* familyName) const override { 55 SkTypeface* onMatchFamilyStyleCharacter(const char familyName[], 98 void SkFontMgr::getFamilyName(int index, SkString* familyName) const { 99 this->onGetFamilyName(index, familyName); 106 SkFontStyleSet* SkFontMgr::matchFamily(const char familyName[]) const { 107 return emptyOnNull(this->onMatchFamily(familyName)); 110 SkTypeface* SkFontMgr::matchFamilyStyle(const char familyName[], argument 112 return this->onMatchFamilyStyle(familyName, fs); 115 SkTypeface* SkFontMgr::matchFamilyStyleCharacter(const char familyName[], const SkFontStyle& style, argument 118 return this->onMatchFamilyStyleCharacter(familyName, styl 163 legacyMakeTypeface(const char familyName[], SkFontStyle style) const argument [all...] |
/external/skqp/src/fonts/ |
H A D | SkFontMgr_indirect.cpp | 66 void SkFontMgr_Indirect::onGetFamilyName(int index, SkString* familyName) const { 75 SkFontStyleSet* SkFontMgr_Indirect::onMatchFamily(const char familyName[]) const { 76 return new SkStyleSet_Indirect(this, -1, fProxy->matchName(familyName)); 138 SkTypeface* SkFontMgr_Indirect::onMatchFamilyStyle(const char familyName[], argument 140 SkFontIdentity id = fProxy->matchNameStyle(familyName, fontStyle); 144 SkTypeface* SkFontMgr_Indirect::onMatchFamilyStyleCharacter(const char familyName[], argument 149 SkFontIdentity id = fProxy->matchNameStyleCharacter(familyName, style, bcp47, 156 SkString familyName; local 157 familyMember->getFamilyName(&familyName); 158 return this->matchFamilyStyle(familyName 174 onLegacyMakeTypeface(const char familyName[], SkFontStyle style) const argument [all...] |