de.intarsys.cwt.font
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()
IFontFamily
getFamilyName
in interface IFontFamily
public IFont getFont(FontStyle style)
IFontFamily
getFont
in interface IFontFamily
style
- The requested style.IFont
within the family with a specific
FontStyle
or null.public java.util.Iterator<IFont> getFontIterator()
public IFont[] getFonts()
IFontFamily
IFont
instances within this family.getFonts
in interface IFontFamily
IFont
instances within this family.public FontStyle[] getFontStyles()
IFontFamily
FontStyle
instances in this family.getFontStyles
in interface IFontFamily
FontStyle
instances in this family.public java.lang.String getFontType()
IFontFamily
getFontType
in interface IFontFamily
public void registerFont(IFont font)
IFontFamily
IFont
to this family.registerFont
in interface IFontFamily
font
- The new IFont