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 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