/frameworks/minikin/libs/minikin/ |
D | FontCollection.cpp | 62 const std::shared_ptr<FontFamily>& family = typefaces[i]; in init() local 63 if (family->getClosestMatch(defaultStyle).font == nullptr) { in init() 66 const SparseBitSet& coverage = family->getCoverage(); in init() 67 mFamilies.push_back(family); // emplace_back would be better in init() 68 if (family->hasVSTable()) { in init() 69 mVSFamilyVec.push_back(family); in init() 74 const std::unordered_set<AxisTag>& supportedAxes = family->supportedAxes(); in init() 93 const std::shared_ptr<FontFamily>& family = mFamilies[j]; in init() local 95 uint32_t nextChar = family->getCoverage().nextSetBit((i + 1) << kLogCharsPerPage); in init() 268 const std::shared_ptr<FontFamily>& family = in getFamilyForChar() local [all …]
|
/frameworks/base/rs/java/android/renderscript/ |
D | Font.java | 96 private static void addFamilyToMap(FontFamily family) { in addFamilyToMap() argument 97 for(int i = 0; i < family.mNames.length; i ++) { in addFamilyToMap() 98 sFontFamilyMap.put(family.mNames[i], family); in addFamilyToMap() 135 FontFamily family = sFontFamilyMap.get(familyName); in getFontFileName() local 136 if(family != null) { in getFontFileName() 139 return family.mNormalFileName; in getFontFileName() 141 return family.mBoldFileName; in getFontFileName() 143 return family.mItalicFileName; in getFontFileName() 145 return family.mBoldItalicFileName; in getFontFileName()
|
/frameworks/base/core/java/android/text/style/ |
D | TypefaceSpan.java | 68 public TypefaceSpan(@Nullable String family) { in TypefaceSpan() argument 69 this(family, null); in TypefaceSpan() 90 private TypefaceSpan(@Nullable String family, @Nullable Typeface typeface) { in TypefaceSpan() argument 91 mFamily = family; in TypefaceSpan() 163 private void applyFontFamily(@NonNull Paint paint, @NonNull String family) { in applyFontFamily() argument 171 final Typeface styledTypeface = Typeface.create(family, style); in applyFontFamily()
|
D | TextAppearanceSpan.java | 125 String family = a.getString(com.android.internal.R.styleable.TextAppearance_fontFamily); in TextAppearanceSpan() local 126 if (family != null) { in TextAppearanceSpan() 127 mFamilyName = family; in TextAppearanceSpan() 209 public TextAppearanceSpan(String family, int style, int size, in TextAppearanceSpan() argument 211 mFamilyName = family; in TextAppearanceSpan()
|
/frameworks/minikin/tests/stresstest/ |
D | FontFamilyTest.cpp | 41 std::shared_ptr<FontFamily> family = std::make_shared<FontFamily>(std::move(fonts)); in TEST_P() local 43 hb_font_t* hbFont = family->getFont(0)->baseFont().get(); in TEST_P() 47 EXPECT_EQ(family->hasGlyph(codePoint, 0 /* variation selector */), in TEST_P() 59 ASSERT_EQ(family->hasGlyph(codePoint, vs), in TEST_P() 63 << " Minikin: " << family->hasGlyph(codePoint, vs) << " HarfBuzz: " in TEST_P()
|
/frameworks/base/core/jni/android/graphics/fonts/ |
D | FontFamily.cpp | 44 static void releaseFontFamily(jlong family) { in releaseFontFamily() argument 45 delete reinterpret_cast<FontFamilyWrapper*>(family); in releaseFontFamily() 69 std::shared_ptr<minikin::FontFamily> family = std::make_shared<minikin::FontFamily>( in FontFamily_Builder_build() local 72 if (family->getCoverage().length() == 0) { in FontFamily_Builder_build() 78 return reinterpret_cast<jlong>(new FontFamilyWrapper(std::move(family))); in FontFamily_Builder_build()
|
/frameworks/base/graphics/java/android/graphics/ |
D | Typeface.java | 273 final FontFamily family = familyBuilder.build(); in createFromResources() local 276 Font bestFont = family.getFont(0); in createFromResources() 278 for (int i = 1; i < family.getSize(); ++i) { in createFromResources() 279 final Font candidate = family.getFont(i); in createFromResources() 286 typeface = new Typeface.CustomFallbackBuilder(family) in createFromResources() 610 final FontFamily family = new FontFamily.Builder(font).build(); in build() local 615 final CustomFallbackBuilder builder = new CustomFallbackBuilder(family) in build() 720 public CustomFallbackBuilder(@NonNull FontFamily family) { in CustomFallbackBuilder() argument 721 Preconditions.checkNotNull(family); in CustomFallbackBuilder() 722 mFamilies.add(family); in CustomFallbackBuilder() [all …]
|
/frameworks/base/core/jni/android/graphics/ |
D | FontUtils.h | 32 explicit FontFamilyWrapper(std::shared_ptr<minikin::FontFamily>&& family) : family(family) {} in FontFamilyWrapper() 33 std::shared_ptr<minikin::FontFamily> family; member
|
D | Typeface.cpp | 42 Typeface* family = toTypeface(familyHandle); in Typeface_createFromTypeface() local 43 Typeface* face = Typeface::createRelative(family, (Typeface::Style)style); in Typeface_createFromTypeface() 47 face = Typeface::createRelative(family, (Typeface::Style)(style ^ Typeface::kItalic)); in Typeface_createFromTypeface() 50 face = Typeface::createRelative(family, (Typeface::Style)i); in Typeface_createFromTypeface() 104 FontFamilyWrapper* family = reinterpret_cast<FontFamilyWrapper*>(families[i]); in Typeface_createFromArray() local 105 familyVec.emplace_back(family->family); in Typeface_createFromArray()
|
D | FontFamily.cpp | 85 std::shared_ptr<minikin::FontFamily> family = std::make_shared<minikin::FontFamily>( in FontFamily_create() local 88 if (family->getCoverage().length() == 0) { in FontFamily_create() 91 return toJLong(new FontFamilyWrapper(std::move(family))); in FontFamily_create()
|
/frameworks/layoutlib/rename_font/ |
D | build_font_single.py | 42 family = None variable in FontInfo 144 font.family = namerecord.text.strip() 172 namerecord.text = font.family 183 if font.family is None or font.style is None: 186 new_family = font.family + font.version 188 new_family = font.family 193 font.family = new_family
|
D | build_font.py | 44 family = None variable in FontInfo 153 font.family = namerecord.text.strip() 178 namerecord.text = font.family 189 if font.family is None or font.style is None: 192 new_family = font.family + font.version 194 new_family = font.family 199 font.family = new_family
|
/frameworks/minikin/tests/unittest/ |
D | FontFamilyTest.cpp | 502 void expectVSGlyphs(FontFamily* family, uint32_t codepoint, const std::set<uint32_t>& vs) { in expectVSGlyphs() argument 509 EXPECT_FALSE(family->hasGlyph(codepoint, i)) in expectVSGlyphs() 512 EXPECT_TRUE(family->hasGlyph(codepoint, i)) in expectVSGlyphs() 519 std::shared_ptr<FontFamily> family = buildFontFamily(kVsTestFont); in TEST_F() local 530 EXPECT_TRUE(family->getCoverage().get(kSupportedChar1)); in TEST_F() 531 expectVSGlyphs(family.get(), kSupportedChar1, std::set<uint32_t>({kVS1, kVS17, kVS18, kVS19})); in TEST_F() 534 EXPECT_TRUE(family->getCoverage().get(kSupportedChar2)); in TEST_F() 535 expectVSGlyphs(family.get(), kSupportedChar2, std::set<uint32_t>({kVS2, kVS18, kVS19, kVS20})); in TEST_F() 538 EXPECT_TRUE(family->getCoverage().get(kNoVsSupportedChar)); in TEST_F() 539 expectVSGlyphs(family.get(), kNoVsSupportedChar, std::set<uint32_t>()); in TEST_F() [all …]
|
/frameworks/base/native/android/ |
D | system_fonts.cpp | 186 xmlNode* family = firstElement(familySet, FAMILY_TAG); in findFirstFontNode() local 187 if (family == nullptr) { in findFirstFontNode() 191 xmlNode* font = firstElement(family, FONT_TAG); in findFirstFontNode() 193 family = nextSibling(family, FAMILY_TAG); in findFirstFontNode() 194 if (family == nullptr) { in findFirstFontNode() 197 font = firstElement(family, FONT_TAG); in findFirstFontNode() 286 xmlNode* family = nextSibling(fontNode->parent, FAMILY_TAG); in findNextFontNode() local 287 if (family == nullptr) { in findNextFontNode() 290 nextNode = firstElement(family, FONT_TAG); in findNextFontNode()
|
/frameworks/base/tools/split-select/ |
D | SplitDescription.cpp | 42 abi::Family family = abi::getFamily(abi); in isBetterThan() local 44 if (family != oFamily) { in isBetterThan() 45 return family != abi::Family_none; in isBetterThan() 57 abi::Family family = abi::getFamily(abi); in match() local 59 if (family != oFamily) { in match()
|
D | Abi.cpp | 62 const Vector<Variant>& getVariants(Family family) { in getVariants() argument 63 switch (family) { in getVariants()
|
D | Abi.h | 44 const android::Vector<Variant>& getVariants(Family family);
|
/frameworks/base/graphics/java/android/graphics/fonts/ |
D | FontFamily.java | 122 final FontFamily family = new FontFamily(mFonts, ptr); in build() local 123 sFamilyRegistory.registerNativeAllocation(family, ptr); in build() 124 return family; in build()
|
D | SystemFonts.java | 151 final FontFamily family = createFontFamily( in pushFamilyToFallback() local 154 if (family != null) { in pushFamilyToFallback() 155 fallbackMap.valueAt(i).add(family); in pushFamilyToFallback() 219 final FontFamily family = createFontFamily( in appendNamedFamily() local 222 if (family == null) { in appendNamedFamily() 226 fallback.add(family); in appendNamedFamily()
|
D | FontCustomizationParser.java | 62 final FontConfig.Family family = result.mAdditionalNamedFamilies.get(i); in validate() local 63 final String name = family.getName(); in validate()
|
/frameworks/minikin/tests/util/ |
D | FontTestUtils.cpp | 107 std::shared_ptr<FontFamily> family; in getFontFamilies() local 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() 115 families.push_back(family); in getFontFamilies()
|
/frameworks/base/tools/fonts/ |
D | fontchain_linter.py | 224 for family in families: 225 name = family.get('name') 226 variant = family.get('variant') 227 langs = family.get('lang') 239 for family in families: 240 name = family.get('name') 241 variant = family.get('variant') 242 langs = family.get('lang') 250 for child in family:
|
/frameworks/base/core/java/android/net/ |
D | VpnService.java | 690 public Builder allowFamily(int family) { in allowFamily() argument 691 if (family == AF_INET) { in allowFamily() 693 } else if (family == AF_INET6) { in allowFamily() 696 throw new IllegalArgumentException(family + " is neither " + AF_INET + " nor " + in allowFamily()
|
/frameworks/layoutlib/bridge/src/android/graphics/ |
D | Typeface_Delegate.java | 297 /*package*/ static Typeface create(Typeface family, int style) { in create() argument 298 return Typeface.create_Original(family, style); in create() 302 /*package*/ static Typeface create(Typeface family, int style, boolean isItalic) { in create() argument 303 return Typeface.create_Original(family, style, isItalic); in create()
|
/frameworks/base/core/java/android/provider/ |
D | FontsContract.java | 668 final FontFamily family = familyBuilder.build(); in buildTypeface() local 672 Font bestFont = family.getFont(0); in buildTypeface() 674 for (int i = 1; i < family.getSize(); ++i) { in buildTypeface() 675 final Font candidate = family.getFont(i); in buildTypeface() 682 return new Typeface.CustomFallbackBuilder(family).setStyle(bestFont.getStyle()).build(); in buildTypeface()
|