Home
last modified time | relevance | path

Searched refs:FontVariation (Results 1 – 24 of 24) sorted by relevance

/frameworks/minikin/tests/util/
DFreeTypeMinikinFontForTest.h37 const std::vector<FontVariation>& axes);
39 : FreeTypeMinikinFontForTest(font_path, index, std::vector<FontVariation>()) {} in FreeTypeMinikinFontForTest()
41 : FreeTypeMinikinFontForTest(font_path, 0, std::vector<FontVariation>()) {} in FreeTypeMinikinFontForTest()
56 const std::vector<minikin::FontVariation>& GetAxes() const { return mAxes; } in GetAxes()
57 std::shared_ptr<MinikinFont> createFontWithVariation(const std::vector<FontVariation>&) const;
64 std::vector<minikin::FontVariation> mAxes;
DFreeTypeMinikinFontForTest.cpp63 const std::vector<FontVariation>& axes) in FreeTypeMinikinFontForTest()
140 const std::vector<FontVariation>& axes) const { in createFontWithVariation()
/frameworks/minikin/include/minikin/
DFontVariation.h26 struct FontVariation { struct
27 FontVariation() = default;
28 FontVariation(AxisTag axisTag, float value) : axisTag(axisTag), value(value) {} in FontVariation() argument
DFontFamily.h52 const std::vector<FontVariation>& axesOverride);
107 const std::vector<FontVariation>& variations) const;
114 const std::vector<FontVariation>& axesOverride);
130 std::vector<FontVariation> mVarOverride;
DMinikinFont.h72 virtual const std::vector<minikin::FontVariation>& GetAxes() const = 0;
75 const std::vector<FontVariation>&) const { in createFontWithVariation() argument
DFont.h154 Font(const std::shared_ptr<Font>& parent, const std::vector<FontVariation>& axes);
212 std::vector<FontVariation> getAdjustedVariations(int wght, int ital) const;
DFontCollection.h183 const std::vector<FontVariation>& variations);
/frameworks/base/libs/hwui/hwui/
DMinikinSkia.h35 const std::vector<minikin::FontVariation>& axes);
62 const std::vector<minikin::FontVariation>& GetAxes() const;
64 const std::vector<minikin::FontVariation>&) const;
83 std::vector<minikin::FontVariation> mAxes;
DMinikinSkia.cpp39 const std::vector<minikin::FontVariation>& axes) in MinikinFontSkia()
126 const std::vector<minikin::FontVariation>& MinikinFontSkia::GetAxes() const { in GetAxes()
131 const std::vector<minikin::FontVariation>& variations) const { in createFontWithVariation()
DTypeface.h78 Typeface* src, const std::vector<minikin::FontVariation>& variations);
DTypeface.cpp96 Typeface* src, const std::vector<minikin::FontVariation>& variations) { in createFromTypefaceWithVariation()
197 0, std::vector<minikin::FontVariation>()); in setRobotoTypefaceForTest()
/frameworks/minikin/tests/unittest/
DFontCollectionTest.cpp137 multiAxisFc->createCollectionWithVariation(std::vector<FontVariation>())); in TEST()
138 EXPECT_EQ(nullptr, noAxisFc->createCollectionWithVariation(std::vector<FontVariation>())); in TEST()
142 std::vector<FontVariation> variations = {{MakeTag('w', 'd', 't', 'h'), 1.0f}}; in TEST()
152 std::vector<FontVariation> variations = {{MakeTag('w', 'd', 't', 'h'), 1.0f}, in TEST()
163 std::vector<FontVariation> variations = {{MakeTag('Z', 'Z', 'Z', 'Z'), 1.0f}}; in TEST()
169 std::vector<FontVariation> variations = {{MakeTag('w', 'd', 't', 'h'), 1.0f}, in TEST()
DFontFamilyTest.cpp645 EXPECT_EQ(nullptr, FontFamily::create(multiAxisFamily, std::vector<FontVariation>())); in TEST_F()
646 EXPECT_EQ(nullptr, FontFamily::create(noAxisFamily, std::vector<FontVariation>())); in TEST_F()
650 std::vector<FontVariation> variations = {{MakeTag('w', 'd', 't', 'h'), 1.0f}}; in TEST_F()
658 std::vector<FontVariation> variations = {{MakeTag('w', 'd', 't', 'h'), 1.0f}, in TEST_F()
667 std::vector<FontVariation> variations = {{MakeTag('Z', 'Z', 'Z', 'Z'), 1.0f}}; in TEST_F()
673 std::vector<FontVariation> variations = {{MakeTag('w', 'd', 't', 'h'), 1.0f}, in TEST_F()
693 multiAxisFamily->createFamilyWithVariation(std::vector<FontVariation>())); in TEST_F()
694 EXPECT_EQ(nullptr, noAxisFamily->createFamilyWithVariation(std::vector<FontVariation>())); in TEST_F()
698 std::vector<FontVariation> variations = {{MakeTag('w', 'd', 't', 'h'), 1.0f}}; in TEST_F()
707 std::vector<FontVariation> variations = {{MakeTag('w', 'd', 't', 'h'), 1.0f}, in TEST_F()
[all …]
DFontTest.cpp309 original, std::vector<FontVariation>{FontVariation(MakeTag('w', 'g', 'h', 't'), 0)}); in TEST()
/frameworks/base/libs/hwui/jni/
DTypeface.cpp73 std::vector<minikin::FontVariation> variations; in Typeface_createFromTypefaceWithVariation()
81 variations.push_back(minikin::FontVariation(axis.getTag(), axis.getStyleValue())); in Typeface_createFromTypefaceWithVariation()
210 reader->skipArray<minikin::FontVariation>(); // axesPtr, axesCount in skip()
224 const minikin::FontVariation* axesPtr; in create()
226 std::tie(axesPtr, axesCount) = reader.readArray<minikin::FontVariation>(); in create()
258 std::vector<minikin::FontVariation> axes(axesPtr, axesPtr + axesCount); in create()
276 const std::vector<minikin::FontVariation>& axes = typeface->GetAxes(); in write()
277 writer->writeArray<minikin::FontVariation>(axes.data(), axes.size()); in write()
DFontFamily.cpp53 std::vector<minikin::FontVariation> axes;
/frameworks/minikin/libs/minikin/
DFont.cpp98 Font::Font(const std::shared_ptr<Font>& parent, const std::vector<FontVariation>& axes) in Font()
230 for (const FontVariation& variation : typeface->GetAxes()) { in prepareFont()
286 for (const FontVariation& variation : mTypeface->GetAxes()) { in getAdjustedFont()
325 std::vector<FontVariation> variations; in getAdjustedTypeface()
327 for (const FontVariation& variation : mTypeface->GetAxes()) { in getAdjustedTypeface()
DFontFamily.cpp69 const std::vector<FontVariation>& axes) { in create()
92 const std::vector<FontVariation>& axesOverride) in FontFamily()
403 const std::vector<FontVariation>& variations) const { in createFamilyWithVariation()
409 for (const FontVariation& variation : variations) { in createFamilyWithVariation()
426 for (const FontVariation& variation : variations) { in createFamilyWithVariation()
DFontCollection.cpp891 const std::vector<FontVariation>& variations) { in createCollectionWithVariation()
897 for (const FontVariation& variation : variations) { in createCollectionWithVariation()
/frameworks/base/libs/hwui/jni/fonts/
DFont.h34 int ttcIndex, const std::vector<minikin::FontVariation>& axes);
DFont.cpp47 std::vector<minikin::FontVariation> axes;
288 return reader.readArray<minikin::FontVariation>().second; in Font_getAxisCount()
299 minikin::FontVariation var; in Font_getAxisInfo()
303 var = reader.readArray<minikin::FontVariation>().first[index]; in Font_getAxisInfo()
451 int ttcIndex, const std::vector<minikin::FontVariation>& axes) { in createMinikinFontSkia()
/frameworks/base/libs/hwui/tests/unit/
DUnderlineTest.cpp75 std::vector<minikin::FontVariation>()); in buildFamily()
DTypefaceTests.cpp65 std::vector<minikin::FontVariation>()); in buildFamily()
/frameworks/base/native/android/
Dsystem_fonts.cpp330 const std::vector<minikin::FontVariation>& axes = minikinFontSkia->GetAxes(); in AFontMatcher_match()