/frameworks/minikin/tests/perftests/ |
H A D | FontFamily.cpp | 18 #include <minikin/FontFamily.h> 28 std::shared_ptr<FontFamily> family = std::make_shared<FontFamily>(
|
H A D | Android.mk | 25 FontFamily.cpp \
|
H A D | FontCollection.cpp | 31 std::vector<std::shared_ptr<FontFamily>> families =
|
/frameworks/minikin/include/minikin/ |
H A D | FontCollection.h | 25 #include <minikin/FontFamily.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>> mFamilie [all...] |
H A D | FontFamily.h | 123 class FontFamily { class in namespace:minikin 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); 156 // Creates new FontFamily based on this family while applying font variations. Returns nullptr 158 std::shared_ptr<FontFamily> createFamilyWithVariation( 173 FontFamily(const FontFamily&) = delete; 174 void operator=(const FontFamily&) = delete;
|
H A D | MinikinFont.h | 23 #include <minikin/FontFamily.h>
|
/frameworks/base/core/jni/android/graphics/ |
H A D | FontUtils.h | 24 class FontFamily; 30 FontFamilyWrapper(std::shared_ptr<minikin::FontFamily>&& family) : family(family) {} 31 std::shared_ptr<minikin::FontFamily> family;
|
H A D | FontFamily.cpp | 38 #include <minikin/FontFamily.h> 72 std::shared_ptr<minikin::FontFamily> family = std::make_shared<minikin::FontFamily>( 129 if (!minikin::FontFamily::analyzeStyle(minikinFont, &os2Weight, &os2Italic)) { 284 int err = RegisterMethodsOrDie(env, "android/graphics/FontFamily", gFontFamilyMethods,
|
/frameworks/base/rs/java/android/renderscript/ |
H A D | Font.java | 63 private static class FontFamily { class in class:Font 71 private static Map<String, FontFamily> sFontFamilyMap; 95 private static void addFamilyToMap(FontFamily family) { 102 sFontFamilyMap = new HashMap<String, FontFamily>(); 104 FontFamily sansFamily = new FontFamily(); 112 FontFamily serifFamily = new FontFamily(); 120 FontFamily monoFamily = new FontFamily(); [all...] |
/frameworks/minikin/tests/util/ |
H A D | FontTestUtils.h | 27 * Returns list of FontFamily from installed fonts. 33 std::vector<std::shared_ptr<FontFamily>> getFontFamilies(const char* fontDir, const char* fontXml); 39 * MinikinFontForTest is used for FontFamily creation.
|
H A D | FontTestUtils.cpp | 27 #include <minikin/FontFamily.h> 31 std::vector<std::shared_ptr<FontFamily>> getFontFamilies(const char* fontDir, const char* fontXml) { 35 std::vector<std::shared_ptr<FontFamily>> families; 83 std::shared_ptr<FontFamily> family; 85 family = std::make_shared<FontFamily>(variant, std::move(fonts)); 89 family = std::make_shared<FontFamily>(langId, variant, std::move(fonts));
|
/frameworks/minikin/libs/minikin/ |
H A D | FontFamily.cpp | 36 #include <minikin/FontFamily.h> 100 FontFamily::FontFamily(std::vector<Font>&& fonts) : FontFamily(0 /* variant */, std::move(fonts)) { function in class:minikin::FontFamily 103 FontFamily::FontFamily(int variant, std::vector<Font>&& fonts) function in class:minikin::FontFamily 104 : FontFamily(FontLanguageListCache::kEmptyListId, variant, std::move(fonts)) { 107 FontFamily::FontFamily(uint32_t langId, int variant, std::vector<Font>&& fonts) function in class:minikin::FontFamily 112 bool FontFamily [all...] |
H A D | FontLanguageListCache.h | 22 #include <minikin/FontFamily.h>
|
H A D | FontCollection.cpp | 47 FontCollection::FontCollection(std::shared_ptr<FontFamily>&& typeface) : mMaxChar(0) { 48 std::vector<std::shared_ptr<FontFamily>> typefaces; 53 FontCollection::FontCollection(const vector<std::shared_ptr<FontFamily>>& typefaces) : 58 void FontCollection::init(const vector<std::shared_ptr<FontFamily>>& typefaces) { 68 const std::shared_ptr<FontFamily>& family = typefaces[i]; 103 const std::shared_ptr<FontFamily>& family = mFamilies[j]; 140 const std::shared_ptr<FontFamily>& fontFamily) const { 168 const std::shared_ptr<FontFamily>& fontFamily) const { 227 uint32_t userLangListId, const FontFamily& fontFamily) { 242 uint32_t FontCollection::calcVariantMatchingScore(int variant, const FontFamily [all...] |
/frameworks/base/graphics/java/android/graphics/ |
H A D | Typeface.java | 109 static FontFamily[] sFallbackFonts; 129 // Must be the same as the C++ constant in core/jni/android/graphics/FontFamily.cpp 174 FontFamily fontFamily = new FontFamily(); 182 FontFamily[] families = {fontFamily}; 231 FontFamily fontFamily = new FontFamily(); 243 FontFamily[] familyChain = { fontFamily }; 587 final FontFamily fontFamily = new FontFamily(); [all...] |
H A D | FontFamily.java | 35 public class FontFamily { class 37 private static String TAG = "FontFamily"; 47 public FontFamily() { method in class:FontFamily 51 public FontFamily(String lang, int variant) { method in class:FontFamily 56 * Finalize the FontFamily creation. 63 throw new IllegalStateException("This FontFamily is already frozen"); 72 throw new IllegalStateException("This FontFamily is already frozen or abandoned"); 154 * Allow creating unsupported FontFamily. 156 * For compatibility reasons, we still need to create a FontFamily object even if Minikin failed 160 * freeze() won't fail and will create an empty FontFamily [all...] |
/frameworks/minikin/tests/unittest/ |
H A D | FontCollectionTest.cpp | 61 std::shared_ptr<FontFamily> family(new FontFamily( 63 std::vector<std::shared_ptr<FontFamily>> families({ family }); 133 std::shared_ptr<FontFamily> multiAxisFamily(new FontFamily( 135 std::vector<std::shared_ptr<FontFamily>> multiAxisFamilies({multiAxisFamily}); 139 std::shared_ptr<FontFamily> noAxisFamily(new FontFamily( 141 std::vector<std::shared_ptr<FontFamily>> noAxisFamilies({noAxisFamily});
|
H A D | FontFamilyTest.cpp | 17 #include <minikin/FontFamily.h> 48 std::shared_ptr<FontFamily> makeFamily(const std::string& fontPath) { 50 return std::make_shared<FontFamily>( 520 void expectVSGlyphs(FontFamily* family, uint32_t codepoint, const std::set<uint32_t>& vs) { 539 std::shared_ptr<FontFamily> family( 540 new FontFamily(std::vector<Font>{ Font(minikinFont, FontStyle()) })); 591 std::shared_ptr<FontFamily> family(new FontFamily( 602 std::shared_ptr<FontFamily> multiAxisFamily = makeFamily(kMultiAxisFont); 603 std::shared_ptr<FontFamily> noAxisFamil [all...] |
H A D | FontLanguageListCacheTest.cpp | 19 #include <minikin/FontFamily.h>
|
H A D | FontCollectionItemizeTest.cpp | 28 #include "minikin/FontFamily.h" 672 std::vector<std::shared_ptr<FontFamily>> families; 674 std::shared_ptr<FontFamily> family1(new FontFamily(VARIANT_DEFAULT, 679 std::shared_ptr<FontFamily> family2(new FontFamily(VARIANT_DEFAULT, 810 std::vector<std::shared_ptr<FontFamily>> families; 815 std::shared_ptr<FontFamily> firstFamily(new FontFamily( 827 std::shared_ptr<FontFamily> famil [all...] |
/frameworks/minikin/tests/stresstest/ |
H A D | FontFamilyTest.cpp | 37 std::shared_ptr<FontFamily> family = 38 std::make_shared<FontFamily>(std::vector<Font>({Font(font, FontStyle())}));
|
/frameworks/base/libs/hwui/hwui/ |
H A D | Typeface.h | 78 std::vector<std::shared_ptr<minikin::FontFamily>>&& families,
|
H A D | Paint.h | 25 #include <minikin/FontFamily.h>
|
H A D | Typeface.cpp | 36 #include <minikin/FontFamily.h> 133 std::vector<std::shared_ptr<minikin::FontFamily>>&& families, 193 std::shared_ptr<minikin::FontFamily> family = std::make_shared<minikin::FontFamily>(
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | Typeface_Delegate.java | 126 // The FontFamily is valid but doesn't contain any matching font. This means 233 /*package*/ static FontFamily makeFamilyFromParsed(FontConfig.Family family, 235 FontFamily fontFamily = new FontFamily(family.getLanguage(), family.getVariant());
|