Package de.intarsys.cwt.font
Interface IFontRegistry
- All Known Implementing Classes:
StandardFontRegistry
public interface IFontRegistry
A registry of
IFont
instances.-
Method Summary
Modifier and TypeMethodDescriptionIFont[]
getFonts()
TheIFont
instances in thisIFontRegistry
.lookupFont
(IFontQuery query) TheIFont
selected by theIFontQuery
.lookupFontFamily
(IFontQuery query) TheIFontFamily
selected by theIFontQuery
.void
registerFont
(IFont font) Add a newIFont
to theIFontRegistry
.
-
Method Details
-
getFontFamilies
IFontFamily[] getFontFamilies()- Returns:
- The
IFontFamily
instances formed by theIFont
instances in thisIFontRegistry
.
-
getFonts
IFont[] getFonts()TheIFont
instances in thisIFontRegistry
.- Returns:
- The
IFont
instances in thisIFontRegistry
.
-
lookupFont
TheIFont
selected by theIFontQuery
.- Parameters:
query
- AIFontQuery
describing a singleIFont
.- Returns:
- The
IFont
selected by theIFontQuery
.
-
lookupFontFamily
TheIFontFamily
selected by theIFontQuery
.- Parameters:
query
- AIFontQuery
describing a singleIFontFamily
.- Returns:
- The
IFontFamily
selected by theIFontQuery
.
-
registerFont
Add a newIFont
to theIFontRegistry
.- Parameters:
font
- The newIFont
-