Home
last modified time | relevance | path

Searched refs:FontFamily (Results 1 – 25 of 31) sorted by relevance

12

/frameworks/minikin/include/minikin/
DFontCollection.h31 explicit FontCollection(const std::vector<std::shared_ptr<FontFamily>>& typefaces);
32 explicit FontCollection(std::shared_ptr<FontFamily>&& typeface);
77 void init(const std::vector<std::shared_ptr<FontFamily>>& typefaces);
79 const std::shared_ptr<FontFamily>& getFamilyForChar(uint32_t ch, uint32_t vs,
83 const std::shared_ptr<FontFamily>& fontFamily) const;
86 const std::shared_ptr<FontFamily>& fontFamily) const;
89 const FontFamily& fontFamily);
91 static uint32_t calcVariantMatchingScore(int variant, const FontFamily& fontFamily);
104 std::vector<std::shared_ptr<FontFamily>> mFamilies;
116 std::vector<std::shared_ptr<FontFamily>> mVSFamilyVec;
DFontFamily.h123 class FontFamily {
125 explicit FontFamily(std::vector<Font>&& fonts);
126 FontFamily(int variant, std::vector<Font>&& fonts);
127 FontFamily(uint32_t langId, int variant, std::vector<Font>&& fonts);
158 std::shared_ptr<FontFamily> createFamilyWithVariation(
173 FontFamily(const FontFamily&) = delete;
174 void operator=(const FontFamily&) = delete;
/frameworks/minikin/libs/minikin/
DFontFamily.cpp100 FontFamily::FontFamily(std::vector<Font>&& fonts) : FontFamily(0 /* variant */, std::move(fonts)) { in FontFamily() function in minikin::FontFamily
103 FontFamily::FontFamily(int variant, std::vector<Font>&& fonts) in FontFamily() function in minikin::FontFamily
104 : FontFamily(FontLanguageListCache::kEmptyListId, variant, std::move(fonts)) { in FontFamily()
107 FontFamily::FontFamily(uint32_t langId, int variant, std::vector<Font>&& fonts) in FontFamily() function in minikin::FontFamily
112 bool FontFamily::analyzeStyle(const std::shared_ptr<MinikinFont>& typeface, int* weight, in analyzeStyle()
141 FakedFont FontFamily::getClosestMatch(FontStyle style) const { in getClosestMatch()
158 bool FontFamily::isColorEmojiFamily() const { in isColorEmojiFamily()
168 void FontFamily::computeCoverage() { in computeCoverage()
186 bool FontFamily::hasGlyph(uint32_t codepoint, uint32_t variationSelector) const { in hasGlyph()
211 std::shared_ptr<FontFamily> FontFamily::createFamilyWithVariation( in createFamilyWithVariation()
[all …]
DFontCollection.cpp47 FontCollection::FontCollection(std::shared_ptr<FontFamily>&& typeface) : mMaxChar(0) { in FontCollection()
48 std::vector<std::shared_ptr<FontFamily>> typefaces; in FontCollection()
53 FontCollection::FontCollection(const vector<std::shared_ptr<FontFamily>>& typefaces) : in FontCollection()
58 void FontCollection::init(const vector<std::shared_ptr<FontFamily>>& typefaces) { in init()
68 const std::shared_ptr<FontFamily>& family = typefaces[i]; in init()
103 const std::shared_ptr<FontFamily>& family = mFamilies[j]; in init()
140 const std::shared_ptr<FontFamily>& fontFamily) const { in calcFamilyScore()
168 const std::shared_ptr<FontFamily>& fontFamily) const { in calcCoverageScore()
227 uint32_t userLangListId, const FontFamily& fontFamily) { in calcLanguageMatchingScore()
242 uint32_t FontCollection::calcVariantMatchingScore(int variant, const FontFamily& fontFamily) { in calcVariantMatchingScore()
[all …]
DAndroid.bp34 "FontFamily.cpp",
/frameworks/base/rs/java/android/renderscript/
DFont.java63 private static class FontFamily { class in Font
71 private static Map<String, FontFamily> sFontFamilyMap;
95 private static void addFamilyToMap(FontFamily family) { in addFamilyToMap()
102 sFontFamilyMap = new HashMap<String, FontFamily>(); in initFontFamilyMap()
104 FontFamily sansFamily = new FontFamily(); in initFontFamilyMap()
112 FontFamily serifFamily = new FontFamily(); in initFontFamilyMap()
120 FontFamily monoFamily = new FontFamily(); in initFontFamilyMap()
134 FontFamily family = sFontFamilyMap.get(familyName); in getFontFileName()
/frameworks/base/graphics/java/android/graphics/
DTypeface.java109 static FontFamily[] sFallbackFonts;
174 FontFamily fontFamily = new FontFamily(); in createFromResources()
182 FontFamily[] families = {fontFamily}; in createFromResources()
231 FontFamily fontFamily = new FontFamily(); in createFromResources()
243 FontFamily[] familyChain = { fontFamily }; in createFromResources()
587 final FontFamily fontFamily = new FontFamily(); in build()
595 FontFamily[] families = { fontFamily }; in build()
606 final FontFamily fontFamily = new FontFamily(); in build()
615 FontFamily[] families = { fontFamily }; in build()
621 final FontFamily fontFamily = new FontFamily(); in build()
[all …]
DFontFamily.java35 public class FontFamily { class
47 public FontFamily() { in FontFamily() method in FontFamily
51 public FontFamily(String lang, int variant) { in FontFamily() method in FontFamily
/frameworks/minikin/tests/unittest/
DFontCollectionTest.cpp61 std::shared_ptr<FontFamily> family(new FontFamily( in TEST()
63 std::vector<std::shared_ptr<FontFamily>> families({ family }); in TEST()
133 std::shared_ptr<FontFamily> multiAxisFamily(new FontFamily( in TEST()
135 std::vector<std::shared_ptr<FontFamily>> multiAxisFamilies({multiAxisFamily}); in TEST()
139 std::shared_ptr<FontFamily> noAxisFamily(new FontFamily( in TEST()
141 std::vector<std::shared_ptr<FontFamily>> noAxisFamilies({noAxisFamily}); in TEST()
DFontFamilyTest.cpp48 std::shared_ptr<FontFamily> makeFamily(const std::string& fontPath) { in makeFamily()
50 return std::make_shared<FontFamily>( in makeFamily()
520 void expectVSGlyphs(FontFamily* family, uint32_t codepoint, const std::set<uint32_t>& vs) { in expectVSGlyphs()
539 std::shared_ptr<FontFamily> family( in TEST_F()
540 new FontFamily(std::vector<Font>{ Font(minikinFont, FontStyle()) })); in TEST_F()
591 std::shared_ptr<FontFamily> family(new FontFamily( in TEST_F()
602 std::shared_ptr<FontFamily> multiAxisFamily = makeFamily(kMultiAxisFont); in TEST_F()
603 std::shared_ptr<FontFamily> noAxisFamily = makeFamily(kNoAxisFont); in TEST_F()
615 std::shared_ptr<FontFamily> newFamily( in TEST_F()
627 std::shared_ptr<FontFamily> newFamily( in TEST_F()
[all …]
DFontCollectionItemizeTest.cpp718 std::vector<std::shared_ptr<FontFamily>> families; in TEST_F()
720 std::shared_ptr<FontFamily> family1(new FontFamily(VARIANT_DEFAULT, in TEST_F()
725 std::shared_ptr<FontFamily> family2(new FontFamily(VARIANT_DEFAULT, in TEST_F()
923 std::vector<std::shared_ptr<FontFamily>> families; in TEST_F()
928 std::shared_ptr<FontFamily> firstFamily(new FontFamily( in TEST_F()
940 std::shared_ptr<FontFamily> family(new FontFamily( in TEST_F()
1528 std::shared_ptr<FontFamily> dummyFamily(new FontFamily( in TEST_F()
1530 std::shared_ptr<FontFamily> familyA(new FontFamily( in TEST_F()
1532 std::shared_ptr<FontFamily> familyB(new FontFamily( in TEST_F()
1535 std::vector<std::shared_ptr<FontFamily>> families = in TEST_F()
[all …]
/frameworks/minikin/tests/util/
DFontTestUtils.cpp31 std::vector<std::shared_ptr<FontFamily>> getFontFamilies(const char* fontDir, const char* fontXml) { in getFontFamilies()
35 std::vector<std::shared_ptr<FontFamily>> families; in getFontFamilies()
83 std::shared_ptr<FontFamily> family; in getFontFamilies()
85 family = std::make_shared<FontFamily>(variant, std::move(fonts)); in getFontFamilies()
89 family = std::make_shared<FontFamily>(langId, variant, std::move(fonts)); in getFontFamilies()
DFontTestUtils.h33 std::vector<std::shared_ptr<FontFamily>> getFontFamilies(const char* fontDir, const char* fontXml);
/frameworks/base/core/jni/android/graphics/
DFontUtils.h24 class FontFamily; variable
30 FontFamilyWrapper(std::shared_ptr<minikin::FontFamily>&& family) : family(family) {} in FontFamilyWrapper()
31 std::shared_ptr<minikin::FontFamily> family;
DFontFamily.cpp72 std::shared_ptr<minikin::FontFamily> family = std::make_shared<minikin::FontFamily>( in FontFamily_create()
129 if (!minikin::FontFamily::analyzeStyle(minikinFont, &os2Weight, &os2Italic)) { in addSkTypeface()
DTypeface.cpp92 std::vector<std::shared_ptr<minikin::FontFamily>> familyVec; in Typeface_createFromArray()
/frameworks/minikin/tests/perftests/
DFontFamily.cpp28 std::shared_ptr<FontFamily> family = std::make_shared<FontFamily>( in BM_FontFamily_create()
DAndroid.bp27 "FontFamily.cpp",
DFontCollection.cpp31 std::vector<std::shared_ptr<FontFamily>> families = in BM_FontCollection_construct()
/frameworks/minikin/tests/stresstest/
DFontFamilyTest.cpp37 std::shared_ptr<FontFamily> family = in TEST_P()
38 std::make_shared<FontFamily>(std::vector<Font>({Font(font, FontStyle())})); in TEST_P()
/frameworks/base/libs/hwui/hwui/
DTypeface.cpp133 std::vector<std::shared_ptr<minikin::FontFamily>>&& families, in createFromFamilies()
193 std::shared_ptr<minikin::FontFamily> family = std::make_shared<minikin::FontFamily>( in setRobotoTypefaceForTest()
DTypeface.h78 std::vector<std::shared_ptr<minikin::FontFamily>>&& families,
/frameworks/layoutlib/bridge/src/android/graphics/
DTypeface_Delegate.java270 /*package*/ static FontFamily makeFamilyFromParsed(FontConfig.Family family, in makeFamilyFromParsed()
272 FontFamily fontFamily = new FontFamily(family.getLanguage(), family.getVariant()); in makeFamilyFromParsed()
/frameworks/base/libs/hwui/tests/unit/
DTypefaceTests.cpp45 std::shared_ptr<minikin::FontFamily> buildFamily(const char* fileName) { in buildFamily()
59 return std::make_shared<minikin::FontFamily>( in buildFamily()
63 std::vector<std::shared_ptr<minikin::FontFamily>> makeSingleFamlyVector(const char* fileName) { in makeSingleFamlyVector()
64 return std::vector<std::shared_ptr<minikin::FontFamily>>({ buildFamily(fileName) }); in makeSingleFamlyVector()
398 std::vector<std::shared_ptr<minikin::FontFamily>> families = { in TEST()
409 std::vector<std::shared_ptr<minikin::FontFamily>> families = { in TEST()
/frameworks/base/core/java/android/content/res/
DFontResourcesParser.java146 TypedArray array = resources.obtainAttributes(attrs, R.styleable.FontFamily); in readFamily()

12