/frameworks/minikin/tests/unittest/ |
D | FontCollectionTest.cpp | 142 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 …]
|
D | FontFamilyTest.cpp | 624 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/ |
D | Font.cpp | 90 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()
|
D | FontFamily.cpp | 211 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()
|
D | FontCollection.cpp | 654 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/ |
D | MinikinSkia.cpp | 127 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()
|
D | Typeface.h | 78 Typeface* src, const std::vector<minikin::FontVariation>& variations);
|
D | Typeface.cpp | 95 Typeface* src, const std::vector<minikin::FontVariation>& variations) { in createFromTypefaceWithVariation() argument 100 resolvedFace->fFontCollection->createCollectionWithVariation(variations); in createFromTypefaceWithVariation()
|
/frameworks/base/libs/hwui/jni/ |
D | Typeface.cpp | 70 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/ |
D | FontUpdateRequest.java | 363 @NonNull List<FontFamilyUpdateRequest.Font> variations) { in FontUpdateRequest() argument 364 this(createFontFamily(familyName, variations)); in FontUpdateRequest()
|
/frameworks/minikin/include/minikin/ |
D | FontFamily.h | 90 const std::vector<FontVariation>& variations) const;
|
D | FontCollection.h | 192 const std::vector<FontVariation>& variations);
|
/frameworks/base/tools/aapt2/ |
D | Resources.proto | 526 // A value that represents a string and its many variations based on plurality.
|