/frameworks/minikin/include/minikin/ |
D | FontCollection.h | 31 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;
|
D | FontFamily.h | 123 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/ |
D | FontFamily.cpp | 100 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 …]
|
D | FontCollection.cpp | 47 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 …]
|
D | Android.bp | 34 "FontFamily.cpp",
|
/frameworks/base/rs/java/android/renderscript/ |
D | Font.java | 63 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/ |
D | Typeface.java | 109 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 …]
|
D | FontFamily.java | 35 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/ |
D | FontCollectionTest.cpp | 61 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()
|
D | FontFamilyTest.cpp | 48 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 …]
|
D | FontCollectionItemizeTest.cpp | 718 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/ |
D | FontTestUtils.cpp | 31 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()
|
D | FontTestUtils.h | 33 std::vector<std::shared_ptr<FontFamily>> getFontFamilies(const char* fontDir, const char* fontXml);
|
/frameworks/base/core/jni/android/graphics/ |
D | FontUtils.h | 24 class FontFamily; variable 30 FontFamilyWrapper(std::shared_ptr<minikin::FontFamily>&& family) : family(family) {} in FontFamilyWrapper() 31 std::shared_ptr<minikin::FontFamily> family;
|
D | FontFamily.cpp | 72 std::shared_ptr<minikin::FontFamily> family = std::make_shared<minikin::FontFamily>( in FontFamily_create() 129 if (!minikin::FontFamily::analyzeStyle(minikinFont, &os2Weight, &os2Italic)) { in addSkTypeface()
|
D | Typeface.cpp | 92 std::vector<std::shared_ptr<minikin::FontFamily>> familyVec; in Typeface_createFromArray()
|
/frameworks/minikin/tests/perftests/ |
D | FontFamily.cpp | 28 std::shared_ptr<FontFamily> family = std::make_shared<FontFamily>( in BM_FontFamily_create()
|
D | Android.bp | 27 "FontFamily.cpp",
|
D | FontCollection.cpp | 31 std::vector<std::shared_ptr<FontFamily>> families = in BM_FontCollection_construct()
|
/frameworks/minikin/tests/stresstest/ |
D | FontFamilyTest.cpp | 37 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/ |
D | Typeface.cpp | 133 std::vector<std::shared_ptr<minikin::FontFamily>>&& families, in createFromFamilies() 193 std::shared_ptr<minikin::FontFamily> family = std::make_shared<minikin::FontFamily>( in setRobotoTypefaceForTest()
|
D | Typeface.h | 78 std::vector<std::shared_ptr<minikin::FontFamily>>&& families,
|
/frameworks/layoutlib/bridge/src/android/graphics/ |
D | Typeface_Delegate.java | 270 /*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/ |
D | TypefaceTests.cpp | 45 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/ |
D | FontResourcesParser.java | 146 TypedArray array = resources.obtainAttributes(attrs, R.styleable.FontFamily); in readFamily()
|