Class StrikeDesc

java.lang.Object
icyllis.arc3d.sketch.StrikeDesc
Direct Known Subclasses:
StrikeDesc.Lookup

@NullMarked public sealed class StrikeDesc extends Object permits StrikeDesc.Lookup
Descriptor of font strike.

A StrikeDesc is immutable unless it is a StrikeDesc.Lookup subclass.

  • Field Details

  • Method Details

    • makeMask

      public static StrikeDesc makeMask(Font font, @Nullable Paint paint, Matrixc deviceMatrix)
    • shouldDrawAsPath

      @Contract(pure=true) public static boolean shouldDrawAsPath(@Nullable Paint paint, Font font, Matrixc viewMatrix)
    • getLocalMatrix

      public void getLocalMatrix(Matrix dst)
    • getDeviceMatrix

      public void getDeviceMatrix(Matrix dst)
    • getTotalMatrix

      public void getTotalMatrix(Matrix dst)
    • getTextSize

      public float getTextSize()
    • getPostScaleX

      public float getPostScaleX()
    • getPostScaleY

      public float getPostScaleY()
    • getPostShearX

      public float getPostShearX()
    • getPostShearY

      public float getPostShearY()
    • getFrameWidth

      public float getFrameWidth()
    • getMiterLimit

      public float getMiterLimit()
    • getMaskFormat

      public byte getMaskFormat()
    • getStrokeJoin

      public int getStrokeJoin()
    • getFlags

      public int getFlags()
    • getPathEffect

      public @Nullable PathEffect getPathEffect()
    • findOrCreateStrike

      public Strike findOrCreateStrike()
    • findOrCreateStrike

      public Strike findOrCreateStrike(StrikeCache cache)
    • createScalerContext

      public ScalerContext createScalerContext()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • immutable

      public StrikeDesc immutable()
    • isImmutable

      public boolean isImmutable()
    • getMemorySize

      public long getMemorySize()