Package com.day.image.font
Class FontListEntry
- java.lang.Object
-
- com.day.image.font.FontListEntry
-
public class FontListEntry extends Object
TheFontListEntry
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getFacename()
Returns the font face name of this list entryString
getFontProvider()
Returns the name of the provider of this fontint
getSize()
Returns the size of this font list entry, or zero if this entry represents a scalable font, such as a TrueType font.int
getStyle()
Returns the style flags supported by this font list entry.
-
-
-
Constructor Detail
-
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 value0xff
can be used to specify this behaviour. Else the font only supports the style given.
-
-
Method Detail
-
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.
-
-