Home
last modified time | relevance | path

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

/frameworks/minikin/libs/minikin/
DFont.cpp228 std::vector<hb_variation_t> variations; in prepareFont() local
229 variations.reserve(typeface->GetAxes().size()); in prepareFont()
231 variations.push_back({variation.axisTag, variation.value}); in prepareFont()
233 hb_font_set_variations(font.get(), variations.data(), variations.size()); in prepareFont()
284 std::vector<hb_variation_t> variations; in getAdjustedFont() local
285 variations.reserve(mTypeface->GetAxes().size()); in getAdjustedFont()
292 variations.push_back({variation.axisTag, variation.value}); in getAdjustedFont()
296 variations.push_back({TAG_wght, static_cast<float>(wght)}); in getAdjustedFont()
299 variations.push_back({TAG_ital, static_cast<float>(ital)}); in getAdjustedFont()
301 hb_font_set_variations(font.get(), variations.data(), variations.size()); in getAdjustedFont()
[all …]
DFontFamily.cpp403 const std::vector<FontVariation>& variations) const { in createFamilyWithVariation()
404 if (variations.empty() || mSupportedAxesCount == 0) { in createFamilyWithVariation()
409 for (const FontVariation& variation : variations) { in createFamilyWithVariation()
426 for (const FontVariation& variation : variations) { in createFamilyWithVariation()
435 minikinFont = font->baseTypeface()->createFontWithVariation(variations); in createFamilyWithVariation()
DFontCollection.cpp891 const std::vector<FontVariation>& variations) { in createCollectionWithVariation() argument
892 if (variations.empty() || mSupportedAxesCount == 0) { in createCollectionWithVariation()
897 for (const FontVariation& variation : variations) { in createCollectionWithVariation()
913 features::lazy_variation_instance() ? FontFamily::create(family, variations) in createCollectionWithVariation()
914 : family->createFamilyWithVariation(variations); in createCollectionWithVariation()
/frameworks/minikin/tests/unittest/
DFontCollectionTest.cpp142 std::vector<FontVariation> variations = {{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 = {{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 = {{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 = {{MakeTag('w', 'd', 't', 'h'), 1.0f}, in TEST() local
[all …]
DFontFamilyTest.cpp650 std::vector<FontVariation> variations = {{MakeTag('w', 'd', 't', 'h'), 1.0f}}; in TEST_F() local
651 std::shared_ptr<FontFamily> newFamily = FontFamily::create(multiAxisFamily, variations); in TEST_F()
654 EXPECT_EQ(nullptr, FontFamily::create(noAxisFamily, variations)); in TEST_F()
658 std::vector<FontVariation> variations = {{MakeTag('w', 'd', 't', 'h'), 1.0f}, in TEST_F() local
660 std::shared_ptr<FontFamily> newFamily = FontFamily::create(multiAxisFamily, variations); in TEST_F()
663 EXPECT_EQ(nullptr, FontFamily::create(noAxisFamily, variations)); in TEST_F()
667 std::vector<FontVariation> variations = {{MakeTag('Z', 'Z', 'Z', 'Z'), 1.0f}}; in TEST_F() local
668 EXPECT_EQ(nullptr, FontFamily::create(multiAxisFamily, variations)); in TEST_F()
669 EXPECT_EQ(nullptr, FontFamily::create(noAxisFamily, variations)); in TEST_F()
673 std::vector<FontVariation> variations = {{MakeTag('w', 'd', 't', 'h'), 1.0f}, in TEST_F() local
[all …]
/frameworks/base/libs/hwui/hwui/
DMinikinSkia.cpp131 const std::vector<minikin::FontVariation>& variations) const { in createFontWithVariation()
135 skVariation.resize(variations.size()); in createFontWithVariation()
136 for (size_t i = 0; i < variations.size(); i++) { in createFontWithVariation()
137 skVariation[i].axis = variations[i].axisTag; in createFontWithVariation()
138 skVariation[i].value = SkFloatToScalar(variations[i].value); in createFontWithVariation()
144 mFilePath, mTtcIndex, variations); in createFontWithVariation()
DTypeface.h78 Typeface* src, const std::vector<minikin::FontVariation>& variations);
DTypeface.cpp96 Typeface* src, const std::vector<minikin::FontVariation>& variations) { in createFromTypefaceWithVariation() argument
101 resolvedFace->fFontCollection->createCollectionWithVariation(variations); in createFromTypefaceWithVariation()
/frameworks/base/libs/hwui/jni/
DTypeface.cpp73 std::vector<minikin::FontVariation> variations; in Typeface_createFromTypefaceWithVariation() local
81 variations.push_back(minikin::FontVariation(axis.getTag(), axis.getStyleValue())); in Typeface_createFromTypefaceWithVariation()
83 return toJLong(Typeface::createFromTypefaceWithVariation(toTypeface(familyHandle), variations)); in Typeface_createFromTypefaceWithVariation()
/frameworks/minikin/include/minikin/
DFontFamily.h107 const std::vector<FontVariation>& variations) const;
DFontCollection.h183 const std::vector<FontVariation>& variations);
/frameworks/base/core/java/android/graphics/fonts/
DFontUpdateRequest.java364 @NonNull List<FontFamilyUpdateRequest.Font> variations) { in FontUpdateRequest() argument
365 this(createFontFamily(familyName, variations)); in FontUpdateRequest()
/frameworks/libs/systemui/weathereffects/graphics/assets/shaders/
Drain_shower.agsl70 /* Cell-id-based variations. */
Dsnow.agsl101 /* Cell-id-based variations. */
Dglass_rain.agsl72 /* Cell-id-based variations. */
/frameworks/base/tools/aapt2/
DResources.proto535 // A value that represents a string and its many variations based on plurality.