Class TypefaceVariant

java.lang.Object
com.teamten.font.TypefaceVariant
Direct Known Subclasses:
TypefaceVariantSize

public class TypefaceVariant extends Object
Represents both a typeface (e.g., Helvetica) and its variant (e.g., bold italic).
  • Constructor Details

  • Method Details

    • getTypeface

      public Typeface getTypeface()
    • getFontVariant

      public FontVariant getFontVariant()
    • getFontName

      public FontName getFontName()
      Utility method that gets the FontName from the typeface for the font variant.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • withTypeface

      public TypefaceVariant withTypeface(Typeface typeface)
      Create a new typeface variant with the specified typeface but this object's variant.
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object