Package de.intarsys.cwt.font
Class StandardFontRegistry
java.lang.Object
de.intarsys.cwt.font.StandardFontRegistry
- All Implemented Interfaces:
IFontRegistry
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected IFont
basicLookup
(String key, IFontQuery query) protected boolean
basicMatchFamily
(IFontQuery query, IFont font) protected boolean
basicMatchFamilyStyle
(IFontQuery query, IFont font) protected void
basicRegister
(String key, IFont value) IFont[]
getFonts()
TheIFont
instances in thisIFontRegistry
.protected Object
getLookupKeyFontFamily
(IFontQuery query) protected String
getLookupKeyFontName
(IFontQuery query) protected String
protected String
protected String
lookupFont
(IFontQuery query) TheIFont
selected by theIFontQuery
.lookupFontFamily
(IFontQuery query) TheIFontFamily
selected by theIFontQuery
.void
registerFont
(IFont font) Add a newIFont
to theIFontRegistry
.protected String
removeSpaces
(String name)
-
Constructor Details
-
StandardFontRegistry
public StandardFontRegistry()
-
-
Method Details
-
basicLookup
-
basicMatchFamily
-
basicMatchFamilyStyle
-
basicRegister
-
getFontFamilies
Description copied from interface:IFontRegistry
- Specified by:
getFontFamilies
in interfaceIFontRegistry
- Returns:
- The
IFontFamily
instances formed by theIFont
instances in thisIFontRegistry
.
-
getFonts
Description copied from interface:IFontRegistry
TheIFont
instances in thisIFontRegistry
.- Specified by:
getFonts
in interfaceIFontRegistry
- Returns:
- The
IFont
instances in thisIFontRegistry
.
-
getLookupKeyFontFamily
-
getLookupKeyFontName
-
getLookupKeyFontNameAsCanonical
-
getLookupKeyFontNameCanonical
-
getLookupKeyFontNamePostScript
-
lookupFont
Description copied from interface:IFontRegistry
TheIFont
selected by theIFontQuery
.- Specified by:
lookupFont
in interfaceIFontRegistry
- Parameters:
query
- AIFontQuery
describing a singleIFont
.- Returns:
- The
IFont
selected by theIFontQuery
.
-
lookupFontFamily
Description copied from interface:IFontRegistry
TheIFontFamily
selected by theIFontQuery
.- Specified by:
lookupFontFamily
in interfaceIFontRegistry
- Parameters:
query
- AIFontQuery
describing a singleIFontFamily
.- Returns:
- The
IFontFamily
selected by theIFontQuery
.
-
registerFont
Description copied from interface:IFontRegistry
Add a newIFont
to theIFontRegistry
.- Specified by:
registerFont
in interfaceIFontRegistry
- Parameters:
font
- The newIFont
-
removeSpaces
-