Typeface

Class of android.graphics · Typeface.java · Android's reference

public class Typeface

A font family at a weight and slant. Every family is the face the runtime ships (snx.android.hwui.Text): a weight of 600 or more without a face of its own is drawn bold by the renderer, and italic slanted, as Skia does.

Nested types

Fields

public static final int NORMAL = 0 source
public static final int BOLD = 1 source
public static final int ITALIC = 2 source
public static final int BOLD_ITALIC = 3 source
public static final Typeface DEFAULT source
public static final Typeface DEFAULT_BOLD source
public static final Typeface SANS_SERIF = DEFAULT source
public static final Typeface SERIF source
public static final Typeface MONOSPACE source

Methods

public int font() source

The face's handle for the runtime.

public int getStyle() source
public final boolean isBold() source
public final boolean isItalic() source
public int getWeight() source
public String getSystemFontFamilyName() source
public static Typeface create(String familyName, int style) source
public static Typeface create(Typeface family, int style) source
public static Typeface create(Typeface family, int weight, boolean italic) source
public static Typeface defaultFromStyle(int style) source
public static Typeface createFromAsset(AssetManager mgr, String path) source
public static Typeface createFromFile(File file) source
public static Typeface createFromFile(String path) source
public boolean equals(Object o) source
public int hashCode() source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.