HomeSort by relevance Sort by last modified time
    Searched refs:typeface (Results 1 - 25 of 238) sorted by null

1 2 3 4 5 6 7 8 910

  /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) {}
  /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...]
  /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...]
  /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...]
  /developers/samples/android/ui/text/TextStyling-Kotlin/app/src/main/java/com/android/example/text/styling/renderer/spans/
FontSpan.kt 18 import android.graphics.Typeface
23 * Span that changes the typeface of the text used to the one provided. The style set before will
26 open class FontSpan(private val font: Typeface?) : MetricAffectingSpan() {
34 val old = typeface
38 val font = Typeface.create(font, oldStyle)
39 typeface = font
  /frameworks/base/graphics/java/android/graphics/
LeakyTypefaceStorage.java 30 * This class is used for Parceling Typeface object.
31 * Note: Typeface object can not be passed over the process boundary.
39 private static final ArrayList<Typeface> sStorage = new ArrayList<>();
41 private static final ArrayMap<Typeface, Integer> sTypefaceMap = new ArrayMap<>();
44 * Write typeface to parcel.
46 * You can't transfer Typeface to a different process. {@link readTypefaceFromParcel} will
49 * @param typeface A {@link Typeface} to be written.
52 public static void writeTypefaceToParcel(@Nullable Typeface typeface, @NonNull Parcel parcel)
    [all...]
Typeface.java 69 * The Typeface class specifies the typeface and intrinsic style of a font.
74 public class Typeface {
76 private static String TAG = "Typeface";
79 Typeface.class.getClassLoader(), nativeGetReleaseFunc(), 64);
81 /** The default NORMAL typeface object */
82 public static final Typeface DEFAULT;
84 * The default BOLD typeface object. Note: this may be not actually be
88 public static final Typeface DEFAULT_BOLD;
89 /** The NORMAL style of the default sans serif typeface. *
201 Typeface typeface = sDynamicTypefaceCache.get(key); local
248 Typeface typeface = FontsContract.getFontSync(request); local
252 Typeface typeface = findFromCache(mgr, path); local
291 Typeface typeface = sDynamicTypefaceCache.get(key); local
608 Typeface typeface = sDynamicTypefaceCache.get(key); local
718 Typeface typeface; local
786 Typeface typeface; local
834 Typeface typeface = new Builder(mgr, path).build(); local
867 Typeface typeface = new Builder(file).build(); local
    [all...]
  /frameworks/support/compat/src/androidTest/java/androidx/core/graphics/
TypefaceCompatTest.java 33 import android.graphics.Typeface;
99 * Helper method to get the used font resource id by typeface.
101 * If the typeface is created from one of the R.font.large_a, R.font.large_b, R.font.large_c or
102 * R.font.large_d resource, this method returns the resource id used by the typeface.
104 private static int getSelectedFontResourceId(Typeface typeface) {
111 p.setTypeface(typeface);
147 Typeface mTypeface;
154 public void onFontRetrieved(@NonNull Typeface typeface) {
229 Typeface typeface = TypefaceCompat.createFromResourcesFamilyXml(mContext, local
241 Typeface typeface = TypefaceCompat.createFromResourcesFamilyXml(mContext, local
316 Typeface typeface = TypefaceCompat.createFromResourcesFamilyXml(mContext, entry, mResources, local
438 Typeface typeface = TypefaceCompat.createFromResourcesFontFile(mContext, mResources, local
    [all...]
  /external/skia/src/gpu/
GrPathRendering.cpp 50 GlyphGenerator(const SkTypeface& typeface, const SkScalerContextEffects& effects,
52 : fScalerContext(typeface.createScalerContext(effects, &desc))
75 sk_sp<GrPathRange> GrPathRendering::createGlyphs(const SkTypeface* typeface,
79 if (nullptr == typeface) {
80 typeface = SkTypeface::GetDefaultTypeface();
81 SkASSERT(nullptr != typeface);
85 sk_sp<GlyphGenerator> generator(new GlyphGenerator(*typeface, effects, *desc));
91 SkScalerContext::MakeDescriptorForPaths(typeface->uniqueID(), &ad);
96 sk_sp<GlyphGenerator> generator(new GlyphGenerator(*typeface, noEffects, *genericDesc));
  /external/skqp/src/gpu/
GrPathRendering.cpp 50 GlyphGenerator(const SkTypeface& typeface, const SkScalerContextEffects& effects,
52 : fScalerContext(typeface.createScalerContext(effects, &desc))
75 sk_sp<GrPathRange> GrPathRendering::createGlyphs(const SkTypeface* typeface,
79 if (nullptr == typeface) {
80 typeface = SkTypeface::GetDefaultTypeface();
81 SkASSERT(nullptr != typeface);
85 sk_sp<GlyphGenerator> generator(new GlyphGenerator(*typeface, effects, *desc));
91 rec.fFontID = typeface->uniqueID();
106 sk_sp<GlyphGenerator> generator(new GlyphGenerator(*typeface, noEffects, *genericDesc));
  /frameworks/base/libs/hwui/hwui/
MinikinUtils.cpp 26 #include "Typeface.h"
31 const Typeface* typeface) {
32 const Typeface* resolvedFace = Typeface::resolveDefault(typeface);
51 const Typeface* typeface, const uint16_t* buf, size_t start,
53 minikin::MinikinPaint minikinPaint = prepareMinikinPaint(paint, typeface);
71 const Typeface* typeface, const uint16_t* buf, size_t start
    [all...]
MinikinUtils.h 31 #include "Typeface.h"
43 const Typeface* typeface);
46 const Typeface* typeface, const uint16_t* buf,
51 const Typeface* typeface, const uint16_t* buf,
55 ANDROID_API static bool hasVariationSelector(const Typeface* typeface, uint32_t codepoint,
  /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...]
  /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...]
  /external/skqp/gm/
atlastext.cpp 27 uint32_t color, sk_sp<SkTypeface> typeface, float size) {
31 auto font = SkAtlasTextFont::Make(typeface, size);
34 typeface->charsToGlyphs(text.c_str(), SkTypeface::Encoding::kUTF8_Encoding, glyphs.get(), cnt);
39 paint.setTypeface(std::move(typeface));
111 for (const auto& typeface : fTypefaces) {
132 draw_string(fTarget.get(), text, drawX, drawY, color, typeface, size);
  /frameworks/minikin/include/minikin/
FontFamily.h 62 Builder(const std::shared_ptr<MinikinFont>& typeface) : mTypeface(typeface) {}
99 inline const std::shared_ptr<MinikinFont>& typeface() const { return mTypeface; } function in class:minikin::Font
107 Font(std::shared_ptr<MinikinFont>&& typeface, FontStyle style, HbFontUniquePtr&& baseFont)
108 : mTypeface(std::move(typeface)), mStyle(style), mBaseFont(std::move(baseFont)) {}
110 static HbFontUniquePtr prepareFont(const std::shared_ptr<MinikinFont>& typeface);
  /external/skia/src/core/
SkTypefaceCache.cpp 27 for (const sk_sp<SkTypeface>& typeface : fTypefaces) {
28 if (proc(typeface.get(), ctx)) {
29 return SkRef(typeface.get());
  /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/skqp/src/core/
SkTypefaceCache.cpp 27 for (const sk_sp<SkTypeface>& typeface : fTypefaces) {
28 if (proc(typeface.get(), ctx)) {
29 return SkRef(typeface.get());
  /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/pdfium/fxjs/xfa/
cjx_font.h 30 JS_PROP(typeface);
  /external/skia/include/ports/
SkTypeface_win.h 17 * Like the other Typeface create methods, this returns a new reference to the
18 * corresponding typeface for the specified logfont. The caller is responsible
24 * Copy the LOGFONT associated with this typeface into the lf parameter. Note
25 * that the lfHeight will need to be set afterwards, since the typeface does
27 * typeface may be NULL, in which case we return the logfont for the default font.
29 SK_API void SkLOGFONTFromTypeface(const SkTypeface* typeface, LOGFONT* lf);
  /external/skqp/include/ports/
SkTypeface_win.h 17 * Like the other Typeface create methods, this returns a new reference to the
18 * corresponding typeface for the specified logfont. The caller is responsible
24 * Copy the LOGFONT associated with this typeface into the lf parameter. Note
25 * that the lfHeight will need to be set afterwards, since the typeface does
27 * typeface may be NULL, in which case we return the logfont for the default font.
29 SK_API void SkLOGFONTFromTypeface(const SkTypeface* typeface, LOGFONT* lf);
  /frameworks/base/core/java/android/text/style/
TypefaceSpan.java 23 import android.graphics.Typeface;
30 * Span that updates the typeface of the text it's attached to. The <code>TypefaceSpan</code> can
31 * be constructed either based on a font family or based on a <code>Typeface</code>. When
33 * When {@link #TypefaceSpan(Typeface)} is used, the <code>Typeface</code> style replaces the
37 * <code>android:textStyle="italic"</code> and a typeface created based on a font from resources,
38 * with a bold style. When applying a <code>TypefaceSpan</code> based the typeface, the text will
43 * Typeface myTypeface = Typeface.create(ResourcesCompat.getFont(context, R.font.acme),
44 * Typeface.BOLD)
    [all...]

Completed in 661 milliseconds

1 2 3 4 5 6 7 8 910