Home
last modified time | relevance | path

Searched refs:FontVariant (Results 1 – 3 of 3) sorted by relevance

/frameworks/layoutlib/bridge/src/android/graphics/
DTypeface_Delegate.java36 import android.graphics.FontFamily_Delegate.FontVariant;
87 private SoftReference<EnumMap<FontVariant, List<Font>>> mFontsCache = new SoftReference<>(null);
329 private static List<Font> computeFonts(FontVariant variant, FontFamily_Delegate[] fontFamilies, in computeFonts()
346 FontVariant ffdVariant = ffd.getVariant(); in computeFonts()
347 if (ffdVariant == FontVariant.NONE) { in computeFonts()
357 FontVariant ffd2Variant = ffd2.getVariant(); in computeFonts()
359 assert ffd2Variant != FontVariant.NONE && ffd2Variant != ffdVariant && in computeFonts()
392 public Iterable<Font> getFonts(final FontVariant variant) {
393 assert variant != FontVariant.NONE;
402 private final FontVariant variant;
[all …]
DFontFamily_Delegate.java149 private FontVariant mVariant;
158 public enum FontVariant { enum in FontFamily_Delegate
245 public FontVariant getVariant() { in getVariant()
311 delegate.mVariant = FontVariant.values()[variant]; in nInitBuilder()
DPaint_Delegate.java26 import android.graphics.FontFamily_Delegate.FontVariant;
105 private FontVariant mFontVariant = FontVariant.COMPACT;
484 return delegate != null && delegate.mFontVariant == FontVariant.ELEGANT; in nIsElegantTextHeight()
496 delegate.mFontVariant = elegant ? FontVariant.ELEGANT : FontVariant.COMPACT; in nSetElegantTextHeight()