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 IFontbasicLookup(String key, IFontQuery query) protected booleanbasicMatchFamily(IFontQuery query, IFont font) protected booleanbasicMatchFamilyStyle(IFontQuery query, IFont font) protected voidbasicRegister(String key, IFont value) IFont[]getFonts()TheIFontinstances in thisIFontRegistry.protected ObjectgetLookupKeyFontFamily(IFontQuery query) protected StringgetLookupKeyFontName(IFontQuery query) protected Stringprotected Stringprotected StringlookupFont(IFontQuery query) TheIFontselected by theIFontQuery.lookupFontFamily(IFontQuery query) TheIFontFamilyselected by theIFontQuery.voidregisterFont(IFont font) Add a newIFontto theIFontRegistry.protected StringremoveSpaces(String name)
-
Constructor Details
-
StandardFontRegistry
public StandardFontRegistry()
-
-
Method Details
-
basicLookup
-
basicMatchFamily
-
basicMatchFamilyStyle
-
basicRegister
-
getFontFamilies
Description copied from interface:IFontRegistry- Specified by:
getFontFamiliesin interfaceIFontRegistry- Returns:
- The
IFontFamilyinstances formed by theIFontinstances in thisIFontRegistry.
-
getFonts
Description copied from interface:IFontRegistryTheIFontinstances in thisIFontRegistry.- Specified by:
getFontsin interfaceIFontRegistry- Returns:
- The
IFontinstances in thisIFontRegistry.
-
getLookupKeyFontFamily
-
getLookupKeyFontName
-
getLookupKeyFontNameAsCanonical
-
getLookupKeyFontNameCanonical
-
getLookupKeyFontNamePostScript
-
lookupFont
Description copied from interface:IFontRegistryTheIFontselected by theIFontQuery.- Specified by:
lookupFontin interfaceIFontRegistry- Parameters:
query- AIFontQuerydescribing a singleIFont.- Returns:
- The
IFontselected by theIFontQuery.
-
lookupFontFamily
Description copied from interface:IFontRegistryTheIFontFamilyselected by theIFontQuery.- Specified by:
lookupFontFamilyin interfaceIFontRegistry- Parameters:
query- AIFontQuerydescribing a singleIFontFamily.- Returns:
- The
IFontFamilyselected by theIFontQuery.
-
registerFont
Description copied from interface:IFontRegistryAdd a newIFontto theIFontRegistry.- Specified by:
registerFontin interfaceIFontRegistry- Parameters:
font- The newIFont
-
removeSpaces
-