Home
last modified time | relevance | path

Searched refs:fontFamily (Results 1 – 25 of 33) sorted by relevance

12

/external/lottie/lottie/src/main/java/com/airbnb/lottie/model/
DFontCharacter.java14 public static int hashFor(char character, String fontFamily, String style) { in hashFor() argument
17 result = 31 * result + fontFamily.hashCode(); in hashFor()
27 private final String fontFamily; field in FontCharacter
30 double width, String style, String fontFamily) { in FontCharacter() argument
36 this.fontFamily = fontFamily; in FontCharacter()
56 return hashFor(character, fontFamily, style); in hashCode()
/external/lottie/lottie/src/main/java/com/airbnb/lottie/manager/
DFontAssetManager.java55 public Typeface getTypeface(String fontFamily, String style) { in getTypeface() argument
56 tempPair.set(fontFamily, style); in getTypeface()
61 Typeface typefaceWithDefaultStyle = getFontFamily(fontFamily); in getTypeface()
67 private Typeface getFontFamily(String fontFamily) { in getFontFamily() argument
68 Typeface defaultTypeface = fontFamilies.get(fontFamily); in getFontFamily()
75 typeface = delegate.fetchFont(fontFamily); in getFontFamily()
79 String path = delegate.getFontPath(fontFamily); in getFontFamily()
86 String path = "fonts/" + fontFamily + defaultFontFileExtension; in getFontFamily()
90 fontFamilies.put(fontFamily, typeface); in getFontFamily()
/external/skqp/src/ports/
DSkFontMgr_win_dw.cpp308 HRESULT getByFamilyName(const WCHAR familyName[], IDWriteFontFamily** fontFamily) const;
309 HRESULT getDefaultFontFamily(IDWriteFontFamily** fontFamily) const;
314 IDWriteFontFamily* fontFamily) const;
331 IDWriteFontFamily* fontFamily) in SkFontStyleSet_DirectWrite() argument
333 , fFontFamily(SkRefComPtr(fontFamily)) in SkFontStyleSet_DirectWrite()
460 IDWriteFontFamily* fontFamily) const { in makeTypefaceFromDWriteFont()
462 ProtoDWriteTypeface spec = { fontFace, font, fontFamily }; in makeTypefaceFromDWriteFont()
465 face = DWriteFontTypeface::Create(fFactory.get(), fontFace, font, fontFamily); in makeTypefaceFromDWriteFont()
478 SkTScopedComPtr<IDWriteFontFamily> fontFamily; in onGetFamilyName() local
479 HRVM(fFontCollection->GetFontFamily(index, &fontFamily), "Could not get requested family."); in onGetFamilyName()
[all …]
DSkTypeface_win_dw.h46 IDWriteFontFamily* fontFamily,
53 , fDWriteFontFamily(SkRefComPtr(fontFamily)) in SkTypeface()
88 IDWriteFontFamily* fontFamily,
91 return new DWriteFontTypeface(get_style(font), factory, fontFace, font, fontFamily,
DSkRemotableFontMgr_win_dw.cpp126 SkTScopedComPtr<IDWriteFontFamily> fontFamily; in getIndex() local
127 HRNM(fFontCollection->GetFontFamily(familyIndex, &fontFamily), in getIndex()
130 int count = fontFamily->GetFontCount(); in getIndex()
136 HRNM(fontFamily->GetFont(fontIndex, &font), "Could not get font."); in getIndex()
148 SkTScopedComPtr<IDWriteFontFamily> fontFamily; in matchIndexStyle() local
149 HR_GENERAL(fFontCollection->GetFontFamily(familyIndex, &fontFamily), in matchIndexStyle()
155 HR_GENERAL(fontFamily->GetFirstMatchingFont(dwStyle.fWeight, dwStyle.fWidth, in matchIndexStyle()
/external/skia/src/ports/
DSkFontMgr_win_dw.cpp303 HRESULT getByFamilyName(const WCHAR familyName[], IDWriteFontFamily** fontFamily) const;
312 IDWriteFontFamily* fontFamily) const;
329 IDWriteFontFamily* fontFamily) in SkFontStyleSet_DirectWrite() argument
331 , fFontFamily(SkRefComPtr(fontFamily)) in SkFontStyleSet_DirectWrite()
468 IDWriteFontFamily* fontFamily) const { in makeTypefaceFromDWriteFont()
470 ProtoDWriteTypeface spec = { fontFace, font, fontFamily }; in makeTypefaceFromDWriteFont()
473 face = DWriteFontTypeface::Make(fFactory.get(), fontFace, font, fontFamily, nullptr); in makeTypefaceFromDWriteFont()
486 SkTScopedComPtr<IDWriteFontFamily> fontFamily; in onGetFamilyName() local
487 HRVM(fFontCollection->GetFontFamily(index, &fontFamily), "Could not get requested family."); in onGetFamilyName()
490 HRVM(fontFamily->GetFamilyNames(&familyNames), "Could not get family names."); in onGetFamilyName()
[all …]
DSkTypeface_win_dw.h66 IDWriteFontFamily* fontFamily, in DWriteFontTypeface() argument
70 , fDWriteFontFamily(SkRefComPtr(fontFamily)) in DWriteFontTypeface()
109 IDWriteFontFamily* fontFamily, in Make() argument
113 get_style(font), factory, fontFace, font, fontFamily, std::move(loaders))); in Make()
DSkRemotableFontMgr_win_dw.cpp127 SkTScopedComPtr<IDWriteFontFamily> fontFamily; in getIndex() local
128 HRNM(fFontCollection->GetFontFamily(familyIndex, &fontFamily), in getIndex()
131 int count = fontFamily->GetFontCount(); in getIndex()
137 HRNM(fontFamily->GetFont(fontIndex, &font), "Could not get font."); in getIndex()
149 SkTScopedComPtr<IDWriteFontFamily> fontFamily; in matchIndexStyle() local
150 HR_GENERAL(fFontCollection->GetFontFamily(familyIndex, &fontFamily), in matchIndexStyle()
156 HR_GENERAL(fontFamily->GetFirstMatchingFont(dwStyle.fWeight, dwStyle.fWidth, in matchIndexStyle()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/text/ttml/
DTtmlStyle.java75 @Nullable private String fontFamily; field in TtmlStyle
149 return fontFamily; in getFontFamily()
152 public TtmlStyle setFontFamily(@Nullable String fontFamily) { in setFontFamily() argument
153 this.fontFamily = fontFamily; in setFontFamily()
223 if (fontFamily == null && ancestor.fontFamily != null) { in inherit()
224 fontFamily = ancestor.fontFamily; in inherit()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/text/webvtt/
DWebvttCssStyle.java86 @Nullable private String fontFamily; field in WebvttCssStyle
113 fontFamily = null; in reset()
222 return fontFamily; in getFontFamily()
225 public WebvttCssStyle setFontFamily(@Nullable String fontFamily) { in setFontFamily() argument
226 this.fontFamily = Util.toLowerInvariant(fontFamily); in setFontFamily()
/external/lottie/lottie/src/main/java/com/airbnb/lottie/parser/
DFontCharacterParser.java32 String fontFamily = null; in parse() local
51 fontFamily = reader.nextString(); in parse()
78 return new FontCharacter(shapes, character, size, width, style, fontFamily); in parse()
/external/lottie/lottie/src/main/java/com/airbnb/lottie/
DFontAssetDelegate.java16 public Typeface fetchFont(String fontFamily) { in fetchFont() argument
23 public String getFontPath(String fontFamily) { in getFontPath() argument
DLottieDrawable.java1053 public Typeface getTypeface(String fontFamily, String style) {
1056 return assetManager.getTypeface(fontFamily, style);
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/text/tx3g/
DTx3gDecoder.java93 String fontFamily = in Tx3gDecoder() local
95 defaultFontFamily = TX3G_SERIF.equals(fontFamily) ? C.SERIF_NAME : C.SANS_SERIF_NAME; in Tx3gDecoder()
228 private static void attachFontFamily(SpannableStringBuilder cueText, String fontFamily, in attachFontFamily() argument
230 if (fontFamily != defaultFontFamily) { in attachFontFamily()
231 cueText.setSpan(new TypefaceSpan(fontFamily), start, end, in attachFontFamily()
/external/skia/docs/examples/
Dtext_rendering.cpp6 const char* fontFamily = nullptr; // Default system family, if it exists. in draw() local
9 sk_sp<SkTypeface> typeface = fontManager->legacyMakeTypeface(fontFamily, fontStyle); in draw()
/external/skia/experimental/sktext/src/
DShaper.cpp56 sk_sp<SkTypeface> Shaper::matchTypeface(const SkString& fontFamily, SkFontStyle fontStyle) { in matchTypeface() argument
57 sk_sp<SkFontStyleSet> set(fFontManager->matchFamily(fontFamily.c_str())); in matchTypeface()
DProcessor.cpp83 …le textFormat, SkColor foreground, SkColor background, const SkString& fontFamily, SkScalar fontSi… in drawText() argument
84 …return drawText(text, canvas, textFormat, foreground, background, fontFamily, fontSize, fontStyle,… in drawText()
88 …le textFormat, SkColor foreground, SkColor background, const SkString& fontFamily, SkScalar fontSi… in drawText() argument
97 …hape({ textFormat.fDefaultTextDirection, SkFontMgr::RefDefault()}, {{{ fontFamily, fontSize, fontS… in drawText()
DShaper.h23 sk_sp<SkTypeface> matchTypeface(const SkString& fontFamily, SkFontStyle fontStyle);
/external/skqp/tests/
DFontMgrAndroidParserTest.cpp54 for (const auto& fontFamily : fontFamilies) { in ValidateLoadedFonts() local
55 for (const auto& lang : fontFamily->fLanguages) { in ValidateLoadedFonts()
78 static void DumpFiles(const FontFamily& fontFamily) { in DumpFiles() argument
79 for (int j = 0; j < fontFamily.fFonts.count(); ++j) { in DumpFiles()
80 const FontFileInfo& ffi = fontFamily.fFonts[j]; in DumpFiles()
/external/skia/tests/
DFontMgrAndroidParserTest.cpp55 for (const auto& fontFamily : fontFamilies) { in ValidateLoadedFonts() local
56 for (const auto& lang : fontFamily->fLanguages) { in ValidateLoadedFonts()
79 static void DumpFiles(const FontFamily& fontFamily) { in DumpFiles() argument
80 for (int j = 0; j < fontFamily.fFonts.count(); ++j) { in DumpFiles()
81 const FontFileInfo& ffi = fontFamily.fFonts[j]; in DumpFiles()
/external/ImageMagick/Magick++/lib/Magick++/
DOptions.h121 void fontFamily(const std::string &family_);
122 std::string fontFamily(void) const;
/external/skia/experimental/sktext/include/
DProcessor.h162 …le textFormat, SkColor foreground, SkColor background, const SkString& fontFamily, SkScalar fontSi…
164 …le textFormat, SkColor foreground, SkColor background, const SkString& fontFamily, SkScalar fontSi…
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/truth/
DSpannedSubject.java887 AndSpanFlags withFamily(String fontFamily); in withFamily() argument
911 public AndSpanFlags withFamily(String fontFamily) { in withFamily() argument
917 if (Util.areEqual(span.getFamily(), fontFamily)) { in withFamily()
922 check("family").that(spanFontFamilies).containsExactly(fontFamily); in withFamily()
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/text/ttml/
DTtmlStyleTest.java161 public void fontFamily() { in fontFamily() method in TtmlStyleTest
/external/antlr/runtime/JavaScript/tests/functional/
Drhino-python.input38 basic = styles.add('normal', tabsize=3, fontSize=12, fontFamily="Courier")

12