Home
last modified time | relevance | path

Searched refs:variations (Results 1 – 13 of 13) sorted by relevance

/frameworks/minikin/tests/unittest/
DFontCollectionTest.cpp142 std::vector<FontVariation> variations = {{MinikinFont::MakeTag('w', 'd', 't', 'h'), 1.0f}}; in TEST() local
144 multiAxisFc->createCollectionWithVariation(variations)); in TEST()
148 EXPECT_EQ(nullptr, noAxisFc->createCollectionWithVariation(variations)); in TEST()
152 std::vector<FontVariation> variations = {{MinikinFont::MakeTag('w', 'd', 't', 'h'), 1.0f}, in TEST() local
155 multiAxisFc->createCollectionWithVariation(variations)); in TEST()
159 EXPECT_EQ(nullptr, noAxisFc->createCollectionWithVariation(variations)); in TEST()
163 std::vector<FontVariation> variations = {{MinikinFont::MakeTag('Z', 'Z', 'Z', 'Z'), 1.0f}}; in TEST() local
164 EXPECT_EQ(nullptr, multiAxisFc->createCollectionWithVariation(variations)); in TEST()
165 EXPECT_EQ(nullptr, noAxisFc->createCollectionWithVariation(variations)); in TEST()
169 std::vector<FontVariation> variations = {{MinikinFont::MakeTag('w', 'd', 't', 'h'), 1.0f}, in TEST() local
[all …]
DFontFamilyTest.cpp624 std::vector<FontVariation> variations = {{MinikinFont::MakeTag('w', 'd', 't', 'h'), 1.0f}}; in TEST_F() local
626 multiAxisFamily->createFamilyWithVariation(variations)); in TEST_F()
629 EXPECT_EQ(nullptr, noAxisFamily->createFamilyWithVariation(variations)); in TEST_F()
633 std::vector<FontVariation> variations = {{MinikinFont::MakeTag('w', 'd', 't', 'h'), 1.0f}, in TEST_F() local
636 multiAxisFamily->createFamilyWithVariation(variations)); in TEST_F()
639 EXPECT_EQ(nullptr, noAxisFamily->createFamilyWithVariation(variations)); in TEST_F()
643 std::vector<FontVariation> variations = {{MinikinFont::MakeTag('Z', 'Z', 'Z', 'Z'), 1.0f}}; in TEST_F() local
644 EXPECT_EQ(nullptr, multiAxisFamily->createFamilyWithVariation(variations)); in TEST_F()
645 EXPECT_EQ(nullptr, noAxisFamily->createFamilyWithVariation(variations)); in TEST_F()
649 std::vector<FontVariation> variations = {{MinikinFont::MakeTag('w', 'd', 't', 'h'), 1.0f}, in TEST_F() local
[all …]
/frameworks/minikin/libs/minikin/
DFont.cpp90 std::vector<hb_variation_t> variations; in prepareFont() local
91 variations.reserve(typeface->GetAxes().size()); in prepareFont()
93 variations.push_back({variation.axisTag, variation.value}); in prepareFont()
95 hb_font_set_variations(font.get(), variations.data(), variations.size()); in prepareFont()
DFontFamily.cpp211 const std::vector<FontVariation>& variations) const { in createFamilyWithVariation()
212 if (variations.empty() || mSupportedAxes.empty()) { in createFamilyWithVariation()
217 for (const FontVariation& variation : variations) { in createFamilyWithVariation()
233 for (const FontVariation& variation : variations) { in createFamilyWithVariation()
242 minikinFont = font->typeface()->createFontWithVariation(variations); in createFamilyWithVariation()
DFontCollection.cpp654 const std::vector<FontVariation>& variations) { in createCollectionWithVariation() argument
655 if (variations.empty() || mSupportedAxes.empty()) { in createCollectionWithVariation()
660 for (const FontVariation& variation : variations) { in createCollectionWithVariation()
673 std::shared_ptr<FontFamily> newFamily = family->createFamilyWithVariation(variations); in createCollectionWithVariation()
/frameworks/base/libs/hwui/hwui/
DMinikinSkia.cpp127 const std::vector<minikin::FontVariation>& variations) const { in createFontWithVariation()
136 skVariation.resize(variations.size()); in createFontWithVariation()
137 for (size_t i = 0; i < variations.size(); i++) { in createFontWithVariation()
138 skVariation[i].axis = variations[i].axisTag; in createFontWithVariation()
139 skVariation[i].value = SkFloatToScalar(variations[i].value); in createFontWithVariation()
146 mFilePath, ttcIndex, variations); in createFontWithVariation()
DTypeface.h78 Typeface* src, const std::vector<minikin::FontVariation>& variations);
DTypeface.cpp95 Typeface* src, const std::vector<minikin::FontVariation>& variations) { in createFromTypefaceWithVariation() argument
100 resolvedFace->fFontCollection->createCollectionWithVariation(variations); in createFromTypefaceWithVariation()
/frameworks/base/libs/hwui/jni/
DTypeface.cpp70 std::vector<minikin::FontVariation> variations; in Typeface_createFromTypefaceWithVariation() local
78 variations.push_back(minikin::FontVariation(axis.getTag(), axis.getStyleValue())); in Typeface_createFromTypefaceWithVariation()
80 return toJLong(Typeface::createFromTypefaceWithVariation(toTypeface(familyHandle), variations)); in Typeface_createFromTypefaceWithVariation()
/frameworks/base/core/java/android/graphics/fonts/
DFontUpdateRequest.java363 @NonNull List<FontFamilyUpdateRequest.Font> variations) { in FontUpdateRequest() argument
364 this(createFontFamily(familyName, variations)); in FontUpdateRequest()
/frameworks/minikin/include/minikin/
DFontFamily.h90 const std::vector<FontVariation>& variations) const;
DFontCollection.h192 const std::vector<FontVariation>& variations);
/frameworks/base/tools/aapt2/
DResources.proto526 // A value that represents a string and its many variations based on plurality.