intarsys CWT library

de.intarsys.cwt.font
Interface IFontFamily

All Known Implementing Classes:
FontFamily

public interface IFontFamily

The family a font belongs to. This is a collection of similar fonts that are different with respect to their style.


Method Summary
 String getFamilyName()
          for example
 IFont getFont(FontStyle style)
          The IFont within the family with a specific FontStyle or null.
 IFont[] getFonts()
          All IFont instances within this family.
 FontStyle[] getFontStyles()
          The supported FontStyle instances in this family.
 String getFontType()
          The font type.
 void registerFont(IFont font)
          Add a new IFont to this family.
 

Method Detail

getFamilyName

String getFamilyName()
for example

Returns:
for example

getFont

IFont getFont(FontStyle style)
The IFont within the family with a specific FontStyle or null.

Parameters:
style - The requested style.
Returns:
The IFont within the family with a specific FontStyle or null.

getFonts

IFont[] getFonts()
All IFont instances within this family.

Returns:
All IFont instances within this family.

getFontStyles

FontStyle[] getFontStyles()
The supported FontStyle instances in this family.

Returns:
The supported FontStyle instances in this family.

getFontType

String getFontType()
The font type. This is for example "TrueType" or "Type1".

Returns:
The font type.

registerFont

void registerFont(IFont font)
Add a new IFont to this family.

Parameters:
font - The new IFont

intarsys CWT library

Copyright © 2008 intarsys consulting GmbH. All Rights Reserved.