/external/skia/include/atlastext/ |
SkAtlasTextFont.h | 17 static sk_sp<SkAtlasTextFont> Make(sk_sp<SkTypeface> typeface, SkScalar size) { 18 return sk_sp<SkAtlasTextFont>(new SkAtlasTextFont(std::move(typeface), size)); 21 SkTypeface* typeface() const { return fTypeface.get(); } function in class:SkAtlasTextFont 28 SkAtlasTextFont(sk_sp<SkTypeface> typeface, SkScalar size) 29 : fTypeface(std::move(typeface)), fSize(size) {}
|
/external/skqp/include/atlastext/ |
SkAtlasTextFont.h | 17 static sk_sp<SkAtlasTextFont> Make(sk_sp<SkTypeface> typeface, SkScalar size) { 18 return sk_sp<SkAtlasTextFont>(new SkAtlasTextFont(std::move(typeface), size)); 21 SkTypeface* typeface() const { return fTypeface.get(); } function in class:SkAtlasTextFont 28 SkAtlasTextFont(sk_sp<SkTypeface> typeface, SkScalar size) 29 : fTypeface(std::move(typeface)), fSize(size) {}
|
/cts/tests/tests/widget/src/android/widget/cts/ |
TextViewFontWeightTest.java | 24 import android.graphics.Typeface; 97 // In this tests, the following special font is used for testing typeface. 102 Typeface typeface = tv.getTypeface(); local 103 assertNotNull(typeface); 104 assertEquals(style.getWeight(), typeface.getWeight()); 105 assertEquals(style.isItalic(), typeface.isItalic()); 112 paint.setTypeface(typeface);
|
/external/pdfium/fxjs/xfa/ |
cjx_font.cpp | 21 void CJX_Font::typeface(CFXJSE_Value* pValue, function in class:CJX_Font
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
ShadowTypefaceTest.java | 6 import android.graphics.Typeface; 28 Typeface typeface = Typeface.create("roboto", Typeface.BOLD); local 29 assertThat(typeface.getStyle()).isEqualTo(Typeface.BOLD); 30 assertThat(shadowOf(typeface).getFontDescription().getFamilyName()).isEqualTo("roboto"); 31 assertThat(shadowOf(typeface).getFontDescription().getStyle()).isEqualTo(Typeface.BOLD) 36 Typeface typeface = Typeface.create(Typeface.create("roboto", Typeface.BOLD), Typeface.ITALIC); local 45 Typeface typeface = Typeface.create((Typeface) null, Typeface.ITALIC); local 53 Typeface typeface = Typeface.createFromFile(fontFile); local 61 Typeface typeface = Typeface.createFromFile(fontFile.getPath()); local 70 Typeface typeface = Typeface.createFromAsset(RuntimeEnvironment.application.getAssets(), "libFont.ttf"); local [all...] |
/external/skia/src/pdf/ |
SkPDFFont.h | 34 /** Returns the typeface represented by this class. Returns nullptr for the 35 * default typeface. 37 SkTypeface* typeface() const { return fTypeface.get(); } function in class:SkPDFFont 78 /** Get the font resource for the passed typeface and glyphID. The 83 * @param typeface The typeface to find, not nullptr. 87 SkTypeface* typeface, 91 * @param typeface can not be nullptr. 92 * @return nullptr only when typeface is bad. 94 static const SkAdvancedTypefaceMetrics* GetMetrics(SkTypeface* typeface, [all...] |
/external/skia/tests/ |
TypefaceTest.cpp | 114 // TODO: if axes are set and the back-end doesn't support them, should we create the typeface? 115 sk_sp<SkTypeface> typeface = fm->makeFromStream(std::move(distortable), params); local 117 if (!typeface) { 122 int count = typeface->getVariationDesignPosition(nullptr, 0); 129 count = typeface->getVariationDesignPosition(positionRead, SK_ARRAY_COUNT(positionRead)); 151 sk_sp<SkTypeface> typeface = fm->makeFromStream(std::move(distortable), params); local 152 if (!typeface) { 158 int count = typeface->getVariationDesignPosition(nullptr, 0); 165 count = typeface->getVariationDesignPosition(positionRead, SK_ARRAY_COUNT(positionRead)); 177 DEF_TEST(Typeface, reporter) [all...] |
/external/skqp/src/pdf/ |
SkPDFFont.h | 34 /** Returns the typeface represented by this class. Returns nullptr for the 35 * default typeface. 37 SkTypeface* typeface() const { return fTypeface.get(); } function in class:SkPDFFont 78 /** Get the font resource for the passed typeface and glyphID. The 83 * @param typeface The typeface to find, not nullptr. 87 SkTypeface* typeface, 91 * @param typeface can not be nullptr. 92 * @return nullptr only when typeface is bad. 94 static const SkAdvancedTypefaceMetrics* GetMetrics(SkTypeface* typeface, [all...] |
/external/skqp/tests/ |
TypefaceTest.cpp | 114 // TODO: if axes are set and the back-end doesn't support them, should we create the typeface? 115 sk_sp<SkTypeface> typeface = fm->makeFromStream(std::move(distortable), params); local 117 if (!typeface) { 122 int count = typeface->getVariationDesignPosition(nullptr, 0); 129 count = typeface->getVariationDesignPosition(positionRead, SK_ARRAY_COUNT(positionRead)); 151 sk_sp<SkTypeface> typeface = fm->makeFromStream(std::move(distortable), params); local 152 if (!typeface) { 158 int count = typeface->getVariationDesignPosition(nullptr, 0); 165 count = typeface->getVariationDesignPosition(positionRead, SK_ARRAY_COUNT(positionRead)); 177 DEF_TEST(Typeface, reporter) [all...] |
/frameworks/base/core/jni/ |
android_text_MeasuredParagraph.cpp | 74 const Typeface* typeface = Typeface::resolveDefault(paint->getAndroidTypeface()); local 75 minikin::MinikinPaint minikinPaint = MinikinUtils::prepareMinikinPaint(paint, typeface);
|
/frameworks/support/compat/src/main/java/androidx/core/graphics/ |
TypefaceCompat.java | 23 import android.graphics.Typeface; 41 * Helper for accessing features in {@link Typeface}. 65 * Cache for Typeface objects dynamically loaded from assets. 67 private static final LruCache<String, Typeface> sTypefaceCache = new LruCache<>(16); 77 public static Typeface findFromCache(@NonNull Resources resources, int id, int style) { 94 * Create Typeface from XML resource which root node is font-family. 99 public static Typeface createFromResourcesFamilyXml( 104 Typeface typeface; local 113 typeface = FontsContractCompat.getFontSync(context, providerEntry.getRequest() 129 sTypefaceCache.put(createResourceUid(resources, id, style), typeface); local 141 Typeface typeface = sTypefaceCompatImpl.createFromResourcesFontFile( local [all...] |
TypefaceCompatApi24Impl.java | 23 import android.graphics.Typeface; 46 * Implementation of the Typeface compat methods for API 24 and above. 75 Typeface.class.getMethod(CREATE_FROM_FAMILIES_WITH_DEFAULT_METHOD, 120 private static Typeface createFromFamiliesWithDefault(Object family) { 124 return (Typeface) sCreateFromFamiliesWithDefault.invoke( 132 public Typeface createFromFontInfo(Context context, 149 final Typeface typeface = createFromFamiliesWithDefault(family); local 150 return Typeface.create(typeface, style) [all...] |
/cts/tests/tests/text/src/android/text/style/cts/ |
TypefaceSpanTest.java | 23 import android.graphics.Typeface; 40 Typeface typeface = Typeface.create(FAMILY, Typeface.BOLD); local 41 TypefaceSpan t = new TypefaceSpan(typeface); 43 assertEquals(typeface, t.getTypeface()); 77 assertEquals(Typeface.NORMAL, tp.getTypeface().getStyle()); 98 assertEquals(Typeface.NORMAL, tp.getTypeface().getStyle());
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
FontRenderingTests.java | 23 import android.graphics.Typeface; 51 boolean thinTestCase = family.endsWith("-thin") && ((style & Typeface.BOLD) == 0); 55 final Typeface typeface = Typeface.create(family, style); local 62 p.setTypeface(typeface); 73 Typeface.NORMAL, 80 Typeface.BOLD, 87 Typeface.ITALIC, 94 Typeface.BOLD | Typeface.ITALIC [all...] |
/external/skia/gm/ |
coloremoji.cpp | 59 sk_sp<SkTypeface> typeface; member in struct:skiagm::ColorEmojiGM::EmojiFont 63 emojiFont.typeface = sk_tool_utils::emoji_typeface(); 80 paint.setTypeface(emojiFont.typeface);
|
/external/skqp/gm/ |
coloremoji.cpp | 59 sk_sp<SkTypeface> typeface; member in struct:skiagm::ColorEmojiGM::EmojiFont 63 emojiFont.typeface = sk_tool_utils::emoji_typeface(); 80 paint.setTypeface(emojiFont.typeface);
|
/frameworks/base/core/jni/android/graphics/ |
HarfBuzzNGFaceSkia.cpp | 143 SkTypeface* typeface = reinterpret_cast<SkTypeface*>(userData); local 145 const size_t tableSize = typeface->getTableSize(tag); 152 size_t actualSize = typeface->getTableData(tag, 0, tableSize, buffer);
|
/frameworks/base/libs/hwui/ |
TextDropShadowCache.h | 41 , typeface(nullptr) 54 , typeface(paint->getTypeface()) 84 SkTypeface* typeface; member in struct:android::uirenderer::ShadowText
|
/frameworks/base/libs/hwui/hwui/ |
Typeface.cpp | 17 #include "Typeface.h" 37 static Typeface::Style computeAPIStyle(int weight, bool italic) { 40 return italic ? Typeface::kBoldItalic : Typeface::kBold; 42 return italic ? Typeface::kItalic : Typeface::kNormal; 52 static minikin::FontStyle computeRelativeStyle(int baseWeight, Typeface::Style relativeStyle) { 54 if ((relativeStyle & Typeface::kBold) != 0) { 57 bool italic = (relativeStyle & Typeface::kItalic) != 0; 61 const Typeface* gDefaultTypeface = NULL 180 sk_sp<SkTypeface> typeface = SkTypeface::MakeFromStream(fontData.release()); local [all...] |
/frameworks/support/compat/src/main/java/androidx/core/content/res/ |
ResourcesCompat.java | 29 import android.graphics.Typeface; 182 * Returns a font Typeface associated with a particular resource ID. 189 * font closest to a regular weight typeface. 192 * @param id The desired resource identifier of a {@link Typeface}, 196 * @return A font Typeface object. 202 public static Typeface getFont(@NonNull Context context, @FontRes int id) 207 return loadFont(context, id, new TypedValue(), Typeface.NORMAL, null /* callback */, 219 * @param typeface The font that was loaded. 221 public abstract void onFontRetrieved(@NonNull Typeface typeface); 338 Typeface typeface = loadFont(context, resources, value, id, style, fontCallback, handler, local 370 Typeface typeface = TypefaceCompat.findFromCache(wrapper, id, style); local [all...] |
/frameworks/support/emoji/core/src/main/java/androidx/emoji/text/ |
MetadataRepo.java | 21 import android.graphics.Typeface; 64 * Typeface to be used to render emojis. 66 private final Typeface mTypeface; 84 * @param typeface Typeface to be used to render emojis 87 private MetadataRepo(@NonNull final Typeface typeface, 89 mTypeface = typeface; 100 * @param typeface Typeface to be used to render emoji 129 final Typeface typeface = Typeface.createFromAsset(assetManager, assetPath); local [all...] |
/cts/tests/tests/graphics/src/android/graphics/cts/ |
TypefaceTest.java | 32 import android.graphics.Typeface; 33 import android.graphics.Typeface.Builder; 60 private static float measureText(String text, Typeface typeface) { 64 paint.setTypeface(typeface); 71 final Typeface typeface = ctx.getResources().getFont(R.font.a3em); external variable declarations 72 GLYPH_3EM_WIDTH = measureText("a", typeface); 73 GLYPH_1EM_WIDTH = measureText("b", typeface); 76 // list of family names to try when attempting to find a typeface with a given styl 104 Typeface typeface = createTypeface(Typeface.BOLD); local 135 Typeface typeface = Typeface.create(DEFAULT, Typeface.NORMAL); local 150 Typeface typeface = Typeface.defaultFromStyle(Typeface.NORMAL); local 189 Typeface typeface = Typeface.createFromAsset(mContext.getAssets(), "samplefont.ttf"); local 202 Typeface typeface = Typeface.createFromFile(file); local 226 Typeface typeface = Typeface.createFromFile(obtainPath()); local 253 Typeface typeface = Typeface.createFromAsset(mContext.getAssets(), "bombfont.ttf"); local 263 Typeface typeface = Typeface.createFromAsset(mContext.getAssets(), "bombfont2.ttf"); local 282 final Typeface typeface = Typeface.createFromAsset(mContext.getAssets(), file); local 293 final Typeface typeface = Typeface.createFromAsset(mContext.getAssets(), file); local 308 final Typeface typeface = Typeface.createFromAsset(mContext.getAssets(), file); local 341 Typeface typeface = Typeface.createFromAsset(mContext.getAssets(), "ft45987.ttf"); local 512 Typeface typeface = Typeface.createFromAsset(mContext.getAssets(), fontPath); local 687 Typeface typeface = Typeface.DEFAULT; local 730 Typeface typeface = new Builder(am, "ascii_a3em_weight100_upright.ttf").build(); local 743 Typeface typeface = new Builder(am, "ascii_a3em_weight100_upright.ttf") local 757 Typeface typeface = new Builder(am, "ascii_a3em_weight100_upright.ttf") local [all...] |
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
ShadowTextView.java | 6 import android.graphics.Typeface; 51 private Typeface typeface; field in class:ShadowTextView
|
/external/skia/tools/shape/ |
using_skia_and_harfbuzz.cpp | 207 sk_sp<SkTypeface> typeface; local 209 typeface = SkTypeface::MakeFromFile(font_file.c_str(), 0 /* index */); 211 SkShaper shaper(typeface);
|
/external/skqp/tools/shape/ |
using_skia_and_harfbuzz.cpp | 207 sk_sp<SkTypeface> typeface; local 209 typeface = SkTypeface::MakeFromFile(font_file.c_str(), 0 /* index */); 211 SkShaper shaper(typeface);
|