public class StandardFontRegistry extends java.lang.Object implements IFontRegistry
| Constructor and Description |
|---|
StandardFontRegistry() |
| Modifier and Type | Method and Description |
|---|---|
protected IFont |
basicLookup(java.lang.String key,
IFontQuery query) |
protected boolean |
basicMatchFamily(IFontQuery query,
IFont font) |
protected boolean |
basicMatchFamilyStyle(IFontQuery query,
IFont font) |
protected void |
basicRegister(java.lang.String key,
IFont value) |
IFontFamily[] |
getFontFamilies()
|
IFont[] |
getFonts()
The
IFont instances in this IFontRegistry. |
protected java.lang.Object |
getLookupKeyFontFamily(IFontQuery query) |
protected java.lang.String |
getLookupKeyFontName(IFontQuery query) |
protected java.lang.String |
getLookupKeyFontNameAsCanonical(IFontQuery query) |
protected java.lang.String |
getLookupKeyFontNameCanonical(IFontQuery query) |
protected java.lang.String |
getLookupKeyFontNamePostScript(IFontQuery query) |
IFont |
lookupFont(IFontQuery query)
The
IFont selected by the IFontQuery. |
IFontFamily |
lookupFontFamily(IFontQuery query)
The
IFontFamily selected by the IFontQuery. |
void |
registerFont(IFont font)
Add a new
IFont to the IFontRegistry. |
protected java.lang.String |
removeSpaces(java.lang.String name) |
protected IFont basicLookup(java.lang.String key, IFontQuery query)
protected boolean basicMatchFamily(IFontQuery query, IFont font)
protected boolean basicMatchFamilyStyle(IFontQuery query, IFont font)
protected void basicRegister(java.lang.String key,
IFont value)
public IFontFamily[] getFontFamilies()
IFontRegistrygetFontFamilies in interface IFontRegistryIFontFamily instances formed by the IFont
instances in this IFontRegistry.public IFont[] getFonts()
IFontRegistryIFont instances in this IFontRegistry.getFonts in interface IFontRegistryIFont instances in this IFontRegistry.protected java.lang.Object getLookupKeyFontFamily(IFontQuery query)
protected java.lang.String getLookupKeyFontName(IFontQuery query)
protected java.lang.String getLookupKeyFontNameAsCanonical(IFontQuery query)
protected java.lang.String getLookupKeyFontNameCanonical(IFontQuery query)
protected java.lang.String getLookupKeyFontNamePostScript(IFontQuery query)
public IFont lookupFont(IFontQuery query)
IFontRegistryIFont selected by the IFontQuery.lookupFont in interface IFontRegistryquery - A IFontQuery describing a single IFont.IFont selected by the IFontQuery.public IFontFamily lookupFontFamily(IFontQuery query)
IFontRegistryIFontFamily selected by the IFontQuery.lookupFontFamily in interface IFontRegistryquery - A IFontQuery describing a single IFontFamily.IFontFamily selected by the IFontQuery.public void registerFont(IFont font)
IFontRegistryIFont to the IFontRegistry.registerFont in interface IFontRegistryfont - The new IFontprotected java.lang.String removeSpaces(java.lang.String name)