/frameworks/minikin/include/minikin/ |
D | FontCollection.h | 35 explicit FontCollection(const std::vector<std::shared_ptr<FontFamily>>& typefaces); 36 explicit FontCollection(std::shared_ptr<FontFamily>&& typeface); 86 void init(const std::vector<std::shared_ptr<FontFamily>>& typefaces); 88 const std::shared_ptr<FontFamily>& getFamilyForChar(uint32_t ch, uint32_t vs, 93 const std::shared_ptr<FontFamily>& fontFamily) const; 96 const std::shared_ptr<FontFamily>& fontFamily) const; 99 const FontFamily& fontFamily); 101 static uint32_t calcVariantMatchingScore(FamilyVariant variant, const FontFamily& fontFamily); 111 std::vector<std::shared_ptr<FontFamily>> mFamilies; 123 std::vector<std::shared_ptr<FontFamily>> mVSFamilyVec;
|
D | FontFamily.h | 34 class FontFamily { 36 explicit FontFamily(std::vector<Font>&& fonts); 37 FontFamily(FamilyVariant variant, std::vector<Font>&& fonts); 38 FontFamily(uint32_t localeListId, FamilyVariant variant, std::vector<Font>&& fonts, 66 std::shared_ptr<FontFamily> createFamilyWithVariation( 82 MINIKIN_PREVENT_COPY_AND_ASSIGN(FontFamily);
|
/frameworks/minikin/libs/minikin/ |
D | FontFamily.cpp | 107 FontFamily::FontFamily(std::vector<Font>&& fonts) in FontFamily() function in minikin::FontFamily 108 : FontFamily(FamilyVariant::DEFAULT, std::move(fonts)) {} in FontFamily() 110 FontFamily::FontFamily(FamilyVariant variant, std::vector<Font>&& fonts) in FontFamily() function in minikin::FontFamily 111 : FontFamily(LocaleListCache::kEmptyListId, variant, std::move(fonts), in FontFamily() 114 FontFamily::FontFamily(uint32_t localeListId, FamilyVariant variant, std::vector<Font>&& fonts, in FontFamily() function in minikin::FontFamily 146 FakedFont FontFamily::getClosestMatch(FontStyle style) const { in getClosestMatch() 160 void FontFamily::computeCoverage() { in computeCoverage() 176 bool FontFamily::hasGlyph(uint32_t codepoint, uint32_t variationSelector) const { in hasGlyph() 201 std::shared_ptr<FontFamily> FontFamily::createFamilyWithVariation( in createFamilyWithVariation() 241 return std::shared_ptr<FontFamily>( in createFamilyWithVariation() [all …]
|
D | FontCollection.cpp | 46 FontCollection::FontCollection(std::shared_ptr<FontFamily>&& typeface) : mMaxChar(0) { in FontCollection() 47 std::vector<std::shared_ptr<FontFamily>> typefaces; in FontCollection() 52 FontCollection::FontCollection(const vector<std::shared_ptr<FontFamily>>& typefaces) : mMaxChar(0) { in FontCollection() 56 void FontCollection::init(const vector<std::shared_ptr<FontFamily>>& typefaces) { in init() 62 const std::shared_ptr<FontFamily>& family = typefaces[i]; in init() 93 const std::shared_ptr<FontFamily>& family = mFamilies[j]; in init() 128 const std::shared_ptr<FontFamily>& fontFamily) const { in calcFamilyScore() 155 const std::shared_ptr<FontFamily>& fontFamily) const { in calcCoverageScore() 216 const FontFamily& fontFamily) { in calcLocaleMatchingScore() 232 const FontFamily& fontFamily) { in calcVariantMatchingScore() [all …]
|
/frameworks/base/graphics/java/android/graphics/fonts/ |
D | SystemFonts.java | 54 private static final Map<String, FontFamily[]> sSystemFallbackMap; 77 public static @NonNull FontFamily[] getSystemFallback(@Nullable String familyName) { in getSystemFallback() 78 final FontFamily[] families = sSystemFallbackMap.get(familyName); in getSystemFallback() 88 public static @NonNull Map<String, FontFamily[]> getRawSystemFallbackMap() { in getRawSystemFallbackMap() 114 @NonNull ArrayMap<String, ArrayList<FontFamily>> fallbackMap, in pushFamilyToFallback() 139 final FontFamily defaultFamily = defaultFonts.isEmpty() ? null : createFontFamily( in pushFamilyToFallback() 151 final FontFamily family = createFontFamily( in pushFamilyToFallback() 165 private static @Nullable FontFamily createFontFamily(@NonNull String familyName, in createFontFamily() 175 FontFamily.Builder b = null; in createFontFamily() 206 b = new FontFamily.Builder(font); in createFontFamily() [all …]
|
D | FontFamily.java | 58 public final class FontFamily { class 66 NativeAllocationRegistry.createMalloced(FontFamily.class.getClassLoader(), 110 public @NonNull FontFamily build() { in build() 115 public @NonNull FontFamily build(@NonNull String langTags, int variant, in build() 122 final FontFamily family = new FontFamily(mFonts, ptr); in build() 144 private FontFamily(@NonNull ArrayList<Font> fonts, long ptr) { in FontFamily() method in FontFamily
|
/frameworks/base/rs/java/android/renderscript/ |
D | Font.java | 64 private static class FontFamily { class in Font 72 private static Map<String, FontFamily> sFontFamilyMap; 97 private static void addFamilyToMap(FontFamily family) { in addFamilyToMap() 104 sFontFamilyMap = new HashMap<String, FontFamily>(); in initFontFamilyMap() 106 FontFamily sansFamily = new FontFamily(); in initFontFamilyMap() 114 FontFamily serifFamily = new FontFamily(); in initFontFamilyMap() 122 FontFamily monoFamily = new FontFamily(); in initFontFamilyMap() 136 FontFamily family = sFontFamilyMap.get(familyName); in getFontFileName()
|
/frameworks/minikin/tests/util/ |
D | FontTestUtils.cpp | 49 std::vector<std::shared_ptr<FontFamily>> getFontFamilies(const std::string& fontDir, in getFontFamilies() 54 std::vector<std::shared_ptr<FontFamily>> families; in getFontFamilies() 107 std::shared_ptr<FontFamily> family; in getFontFamilies() 109 family = std::make_shared<FontFamily>(variant, std::move(fonts)); in getFontFamilies() 112 family = std::make_shared<FontFamily>(langId, variant, std::move(fonts), in getFontFamilies() 125 std::shared_ptr<FontFamily> buildFontFamily(const std::string& filePath) { in buildFontFamily() 129 return std::make_shared<FontFamily>(std::move(fonts)); in buildFontFamily() 132 std::shared_ptr<FontFamily> buildFontFamily(const std::string& filePath, const std::string& lang, in buildFontFamily() 137 return std::make_shared<FontFamily>(LocaleListCache::getId(lang), FamilyVariant::DEFAULT, in buildFontFamily()
|
D | FontTestUtils.h | 33 std::vector<std::shared_ptr<FontFamily>> getFontFamilies(const std::string& fontDir, 57 std::shared_ptr<FontFamily> buildFontFamily(const std::string& filePath); 62 std::shared_ptr<FontFamily> buildFontFamily(const std::string& filePath, const std::string& lang, 68 inline std::shared_ptr<FontFamily> buildFontFamily(const std::string& filePath, in buildFontFamily()
|
/frameworks/base/core/tests/coretests/src/android/graphics/ |
D | TypefaceSystemFallbackTest.java | 28 import android.graphics.fonts.FontFamily; 135 ArrayMap<String, FontFamily[]> fallbackMap) { in buildSystemFallback() 158 final ArrayMap<String, FontFamily[]> fallbackMap = new ArrayMap<>(); in testBuildSystemFallback() 189 final ArrayMap<String, FontFamily[]> fallbackMap = new ArrayMap<>(); in testBuildSystemFallback_NonExistentFontShouldBeIgnored() 219 final ArrayMap<String, FontFamily[]> fallbackMap = new ArrayMap<>(); in testBuildSystemFallback_NamedFamily() 267 final ArrayMap<String, FontFamily[]> fallbackMap = new ArrayMap<>(); in testBuildSystemFallback_defaultFallback() 314 final ArrayMap<String, FontFamily[]> fallbackMap = new ArrayMap<>(); in testBuildSystemFallback_namedFallbackFamily() 366 final ArrayMap<String, FontFamily[]> fallbackMap = new ArrayMap<>(); in testBuildSystemFallback_namedFallbackFamily2() 414 final ArrayMap<String, FontFamily[]> fallbackMap = new ArrayMap<>(); in testBuildSystemFallback_ImplicitSansSerifFallback() 455 final ArrayMap<String, FontFamily[]> fallbackMap = new ArrayMap<>(); in testBuildSystemFallback_ElegantFallback() [all …]
|
/frameworks/base/core/jni/android/graphics/ |
D | FontUtils.h | 26 class FontFamily; variable 32 explicit FontFamilyWrapper(std::shared_ptr<minikin::FontFamily>&& family) : family(family) {} in FontFamilyWrapper() 33 std::shared_ptr<minikin::FontFamily> family;
|
D | FontFamily.cpp | 85 std::shared_ptr<minikin::FontFamily> family = std::make_shared<minikin::FontFamily>( in FontFamily_create()
|
/frameworks/base/graphics/java/android/graphics/ |
D | FontFamily.java | 43 public class FontFamily { class 49 FontFamily.class.getClassLoader(), nGetBuilderReleaseFunc()); 55 FontFamily.class.getClassLoader(), nGetFamilyReleaseFunc()); 72 public FontFamily() { in FontFamily() method in FontFamily 81 public FontFamily(@Nullable String[] langs, int variant) { in FontFamily() method in FontFamily
|
D | Typeface.java | 31 import android.graphics.fonts.FontFamily; 143 static final Map<String, android.graphics.FontFamily[]> sSystemFallbackMap = 250 FontFamily.Builder familyBuilder = null; in createFromResources() 265 familyBuilder = new FontFamily.Builder(fontBuilder.build()); in createFromResources() 273 final FontFamily family = familyBuilder.build(); in createFromResources() 610 final FontFamily family = new FontFamily.Builder(font).build(); in build() 699 private final ArrayList<FontFamily> mFamilies = new ArrayList<>(); 720 public CustomFallbackBuilder(@NonNull FontFamily family) { in CustomFallbackBuilder() 768 public @NonNull CustomFallbackBuilder addCustomFallback(@NonNull FontFamily family) { in addCustomFallback() 783 final FontFamily[] fallback = SystemFonts.getSystemFallback(mFallbackName); [all …]
|
/frameworks/minikin/tests/unittest/ |
D | FontFamilyTest.cpp | 502 void expectVSGlyphs(FontFamily* family, uint32_t codepoint, const std::set<uint32_t>& vs) { in expectVSGlyphs() 519 std::shared_ptr<FontFamily> family = buildFontFamily(kVsTestFont); in TEST_F() 565 std::shared_ptr<FontFamily> family = buildFontFamily(testCase.fontPath); in TEST_F() 575 std::shared_ptr<FontFamily> multiAxisFamily = buildFontFamily(kMultiAxisFont); in TEST_F() 576 std::shared_ptr<FontFamily> noAxisFamily = buildFontFamily(kNoAxisFont); in TEST_F() 587 std::shared_ptr<FontFamily> newFamily( in TEST_F() 597 std::shared_ptr<FontFamily> newFamily( in TEST_F() 613 std::shared_ptr<FontFamily> newFamily( in TEST_F() 635 std::shared_ptr<FontFamily> unicodeEnc1Font = buildFontFamily(kUnicodeEncoding1Font); in TEST_F() 636 std::shared_ptr<FontFamily> unicodeEnc3Font = buildFontFamily(kUnicodeEncoding3Font); in TEST_F() [all …]
|
D | FontCollectionItemizeTest.cpp | 731 std::vector<std::shared_ptr<FontFamily>> families; in TEST() 924 std::vector<std::shared_ptr<FontFamily>> families; in TEST() 932 std::make_shared<FontFamily>(registerLocaleList("und"), FamilyVariant::DEFAULT, in TEST() 946 auto family = std::make_shared<FontFamily>(registerLocaleList(testCase.fontLocales[i]), in TEST() 1511 std::shared_ptr<FontFamily> dummyFamily = buildFontFamily(kNoGlyphFont); in TEST() 1512 std::shared_ptr<FontFamily> familyA = buildFontFamily(kZH_HansFont); in TEST() 1513 std::shared_ptr<FontFamily> familyB = buildFontFamily(kZH_HansFont); in TEST() 1515 std::vector<std::shared_ptr<FontFamily>> families = {dummyFamily, familyA, familyB}; in TEST() 1516 std::vector<std::shared_ptr<FontFamily>> reversedFamilies = {dummyFamily, familyB, familyA}; in TEST() 1532 std::shared_ptr<FontFamily> dummyFamily = buildFontFamily(kNoGlyphFont); in TEST() [all …]
|
/frameworks/minikin/tests/stresstest/ |
D | FontFamilyTest.cpp | 41 std::shared_ptr<FontFamily> family = std::make_shared<FontFamily>(std::move(fonts)); in TEST_P()
|
/frameworks/base/core/jni/android/graphics/fonts/ |
D | FontFamily.cpp | 69 std::shared_ptr<minikin::FontFamily> family = std::make_shared<minikin::FontFamily>( in FontFamily_Builder_build()
|
/frameworks/base/core/tests/coretests/src/android/text/ |
D | FontFallbackSetup.java | 25 import android.graphics.fonts.FontFamily; 80 final ArrayMap<String, FontFamily[]> fallbackMap = new ArrayMap<>(); in FontFallbackSetup()
|
/frameworks/base/libs/hwui/tests/unit/ |
D | TypefaceTests.cpp | 45 std::shared_ptr<minikin::FontFamily> buildFamily(const char* fileName) { in buildFamily() 62 return std::make_shared<minikin::FontFamily>(std::move(fonts)); in buildFamily() 65 std::vector<std::shared_ptr<minikin::FontFamily>> makeSingleFamlyVector(const char* fileName) { in makeSingleFamlyVector() 66 return std::vector<std::shared_ptr<minikin::FontFamily>>({buildFamily(fileName)}); in makeSingleFamlyVector() 422 std::vector<std::shared_ptr<minikin::FontFamily>> families = { in TEST() 432 std::vector<std::shared_ptr<minikin::FontFamily>> families = { in TEST()
|
/frameworks/layoutlib/bridge/src/android/graphics/fonts/ |
D | SystemFonts_Delegate.java | 49 @NonNull ArrayMap<String, FontFamily[]> fallbackMap, in buildSystemFallback()
|
/frameworks/base/libs/hwui/hwui/ |
D | Typeface.h | 78 std::vector<std::shared_ptr<minikin::FontFamily>>&& families, int weight, int italic);
|
D | Typeface.cpp | 125 Typeface* Typeface::createFromFamilies(std::vector<std::shared_ptr<minikin::FontFamily>>&& families, in createFromFamilies() 192 std::make_shared<minikin::FontFamily>(std::move(fonts))); in setRobotoTypefaceForTest()
|
/frameworks/minikin/tests/perftests/ |
D | FontCollection.cpp | 36 std::vector<std::shared_ptr<FontFamily>> families = in BM_FontCollection_construct()
|
/frameworks/base/core/java/android/provider/ |
D | FontsContract.java | 33 import android.graphics.fonts.FontFamily; 637 FontFamily.Builder familyBuilder = null; in buildTypeface() 652 familyBuilder = new FontFamily.Builder(font); in buildTypeface() 668 final FontFamily family = familyBuilder.build(); in buildTypeface()
|