public class FontFamily extends java.lang.Object implements IFontFamily
| Constructor and Description |
|---|
FontFamily(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getFamilyName()
for example
|
IFont |
getFont(FontStyle style)
|
java.util.Iterator<IFont> |
getFontIterator() |
IFont[] |
getFonts()
All
IFont instances within this family. |
FontStyle[] |
getFontStyles()
The supported
FontStyle instances in this family. |
java.lang.String |
getFontType()
The font type.
|
void |
registerFont(IFont font)
Add a new
IFont to this family. |
public java.lang.String getFamilyName()
IFontFamilygetFamilyName in interface IFontFamilypublic IFont getFont(FontStyle style)
IFontFamilygetFont in interface IFontFamilystyle - The requested style.IFont within the family with a specific
FontStyle or null.public java.util.Iterator<IFont> getFontIterator()
public IFont[] getFonts()
IFontFamilyIFont instances within this family.getFonts in interface IFontFamilyIFont instances within this family.public FontStyle[] getFontStyles()
IFontFamilyFontStyle instances in this family.getFontStyles in interface IFontFamilyFontStyle instances in this family.public java.lang.String getFontType()
IFontFamilygetFontType in interface IFontFamilypublic void registerFont(IFont font)
IFontFamilyIFont to this family.registerFont in interface IFontFamilyfont - The new IFont