Home
last modified time | relevance | path

Searched refs:fontChain (Results 1 – 9 of 9) sorted by relevance

/third_party/skia/experimental/sktext/tests/
DFontResolvedText.cpp42 TrivialFontChain* fontChain = new TrivialFontChain("Roboto", 40.0f, SkFontStyle::Normal()); in UNIX_ONLY_TEST() local
43 if (fontChain->empty()) return; in UNIX_ONLY_TEST()
49 FontBlock fontBlock(utf16.size(), sk_ref_sp<FontChain>(fontChain)); in UNIX_ONLY_TEST()
56 …REPORTER_ASSERT(reporter, resolvedFonts.front().typeface->uniqueID() == fontChain->getTypeface()->… in UNIX_ONLY_TEST()
62 …MultipleFontChain* fontChain = new MultipleFontChain({ "Roboto", "Noto Color Emoji", "Noto Serif C… in UNIX_ONLY_TEST() local
63 if (fontChain->count() < 3) return; in UNIX_ONLY_TEST()
69 FontBlock fontBlock(utf16.size(), sk_ref_sp<FontChain>(fontChain)); in UNIX_ONLY_TEST()
DShapedText.cpp42 TrivialFontChain* fontChain = new TrivialFontChain("Roboto", 40.0f, SkFontStyle::Normal()); in UNIX_ONLY_TEST() local
43 if (fontChain->empty()) return; in UNIX_ONLY_TEST()
49 FontBlock fontBlock(utf16.size(), sk_ref_sp<FontChain>(fontChain)); in UNIX_ONLY_TEST()
61 …sk_sp<TrivialFontChain> fontChain = sk_make_sp<TrivialFontChain>("Roboto", 40.0f, SkFontStyle::Nor… in UNIX_ONLY_TEST() local
62 if (fontChain->empty()) return; in UNIX_ONLY_TEST()
68 FontBlock fontBlock(utf16.size(), fontChain); in UNIX_ONLY_TEST()
DSelectableText.cpp95 …sk_sp<TrivialFontChain> fontChain = sk_make_sp<TrivialFontChain>("Roboto", 40.0f, SkFontStyle::Nor… in UNIX_ONLY_TEST() local
96 if (fontChain->empty()) return; in UNIX_ONLY_TEST()
102 FontBlock fontBlock(utf16.size(), fontChain); in UNIX_ONLY_TEST()
143 …sk_sp<TrivialFontChain> fontChain = sk_make_sp<TrivialFontChain>("Roboto", 40.0f, SkFontStyle::Nor… in UNIX_ONLY_TEST() local
144 if (fontChain->empty()) return; in UNIX_ONLY_TEST()
150 FontBlock fontBlock(utf16.size(), fontChain); in UNIX_ONLY_TEST()
185 …sk_sp<TrivialFontChain> fontChain = sk_make_sp<TrivialFontChain>("Roboto", 40.0f, SkFontStyle::Nor… in UNIX_ONLY_TEST() local
186 if (fontChain->empty()) return; in UNIX_ONLY_TEST()
192 FontBlock fontBlock(utf16.size(), fontChain); in UNIX_ONLY_TEST()
226 …sk_sp<TrivialFontChain> fontChain = sk_make_sp<TrivialFontChain>("Roboto", 40.0f, SkFontStyle::Nor… in UNIX_ONLY_TEST() local
[all …]
DWrappedText.cpp93 …sk_sp<TrivialFontChain> fontChain = sk_make_sp<TrivialFontChain>("Roboto", 40.0f, SkFontStyle::Nor… in UNIX_ONLY_TEST() local
94 if (fontChain->empty()) return; in UNIX_ONLY_TEST()
100 FontBlock fontBlock(utf16.size(), fontChain); in UNIX_ONLY_TEST()
142 …sk_sp<TrivialFontChain> fontChain = sk_make_sp<TrivialFontChain>("Noto Naskh Arabic", 40.0f, SkFon… in UNIX_ONLY_TEST() local
143 if (fontChain->empty()) return; in UNIX_ONLY_TEST()
149 FontBlock fontBlock(utf16.size(), fontChain); in UNIX_ONLY_TEST()
/third_party/skia/experimental/sktext/src/
DPaint.cpp36 …sk_sp<TrivialFontChain> fontChain = sk_make_sp<TrivialFontChain>(fontFamily.c_str(), fontSize, fon… in drawText() local
37 FontBlock fontBlock(text.size(), fontChain); in drawText()
38 if (fontChain->getTypeface() == nullptr || fontChain->getTypeface().get() == nullptr) { in drawText()
DText.cpp100 …lvedText::resolveChain(UnicodeText* unicodeText, TextRange textRange, const FontChain& fontChain) { in resolveChain() argument
104 for (auto fontIndex = 0; fontIndex < fontChain.count(); ++fontIndex) { in resolveChain()
105 auto typeface = fontChain[fontIndex]; in resolveChain()
143 … fResolvedFonts.emplace_back(resolvedText, typeface, fontChain.fontSize(), SkFontStyle::Normal()); in resolveChain()
150 … fResolvedFonts.emplace_back(resolvedText, typeface, fontChain.fontSize(), SkFontStyle::Normal()); in resolveChain()
/third_party/skia/platform_tools/android/apps/AndroidKit/src/main/java/org/skia/androidkit/
DFontChain.java28 private static native long nCreate(FontChain fontChain); in nCreate() argument
/third_party/skia/experimental/sktext/include/
DTypes.h189 FontBlock(uint32_t count, sk_sp<FontChain> fontChain) in FontBlock()
192 , chain(fontChain) { } in FontBlock()
DText.h108 bool resolveChain(UnicodeText* unicodeText, TextRange textRange, const FontChain& fontChain);