Class FontListEntry

java.lang.Object
com.day.image.font.FontListEntry

public class FontListEntry extends Object
The FontListEntry class is used to describe one single entry in the list of fonts found on the platform.
Since:
coati
  • Constructor Summary

    Constructors
    Constructor
    Description
    FontListEntry(String fontProvider, String facename, int size, int style)
    Creates a new font list entry descriptor.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the font face name of this list entry
    Returns the name of the provider of this font
    int
    Returns the size of this font list entry, or zero if this entry represents a scalable font, such as a TrueType font.
    int
    Returns the style flags supported by this font list entry.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FontListEntry

      public FontListEntry(String fontProvider, String facename, int size, int style)
      Creates a new font list entry descriptor.
      Parameters:
      facename - The name of the font represented by this font list entry.
      size - The point size for this font list entry. If this value is zero, the list entry represents a scalable font, such as a TrueType font. Else the font represented by this entry only supports the size given.
      style - The style flags of the font. If the font has the capability to derive several styles, the special value 0xff can be used to specify this behaviour. Else the font only supports the style given.
  • Method Details

    • getFontProvider

      public String getFontProvider()
      Returns the name of the provider of this font
    • getFacename

      public String getFacename()
      Returns the font face name of this list entry
      Returns:
      the font face name of this list entry
    • getSize

      public int getSize()
      Returns the size of this font list entry, or zero if this entry represents a scalable font, such as a TrueType font.
      Returns:
      the size of this font list entry, or zero for a scalable font.
    • getStyle

      public int getStyle()
      Returns the style flags supported by this font list entry.
      Returns:
      the style flags supported by this font list entry.