Package icyllis.arc3d.core

# Class Typeface

java.lang.Object
icyllis.arc3d.core.Typeface

Direct Known Subclasses:
  `Typeface_JDK`

public abstract class Typeface extends Object
Typeface class specifies the typeface (font face) and intrinsic style of a font. This is used in the paint, along with optionally algorithmic settings like textSize, textScaleX, textShearX, kFakeBoldText_Mask, to specify how text appears when drawn (and measured).

Typeface objects are immutable, and so they can be shared between threads.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Typeface()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `final ScalerContext`
  `createScalerContext(StrikeDesc desc)`
  `final boolean`
  `equals(Object o)`
  `final UniqueID`
  `getUniqueID()`
  `final int`
  `hashCode()`
  `protected abstract ScalerContext`
  `onCreateScalerContext(StrikeDesc desc)`
  `protected abstract void`
  `onFilterStrikeDesc(StrikeDesc desc)`

  ### Methods inherited from class java.lang.Object

  `clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### Typeface

    public Typeface()

- ## Method Details

  - ### getUniqueID

    public final UniqueID getUniqueID()

  - ### createScalerContext

    @Nonnull public final ScalerContext createScalerContext(StrikeDesc desc)

  - ### onCreateScalerContext

    @Nonnull protected abstract ScalerContext onCreateScalerContext(StrikeDesc desc)

  - ### onFilterStrikeDesc

    protected abstract void onFilterStrikeDesc(StrikeDesc desc)

  - ### hashCode

    public final int hashCode()
    Overrides:
      `hashCode` in class `Object`

  - ### equals

    public final boolean equals(Object o)
    Overrides:
      `equals` in class `Object`