|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.dante.extex.font.FontFactoryImpl
Factory to load a font.
Field Summary |
Fields inherited from interface de.dante.extex.font.FontFactory |
AFM_EXTENSION, EFM_EXTENSION, OTF_EXTENSION, TFM_EXTENSION, TTF_EXTENSION, VF_EXTENSION |
Constructor Summary | |
FontFactoryImpl(Configuration config,
ResourceFinder resourceFinder)
Creates a new object. |
Method Summary | |
java.io.InputStream |
findResource(java.lang.String name,
java.lang.String type)
|
Font |
getInstance(FountKey key)
Return a new instance. |
Font |
getInstance(TFMFont tfm,
FountKey key)
Return a new instance. |
Font |
getInstance(VFFont vf,
FountKey key)
Return a new instance. |
PSFontsMapReader |
getPsfm()
Returns the psfontmapreader. |
AfmFont |
readAFMFont(java.lang.String name)
Read an afm font. |
EfmReader |
readEFMFont(java.lang.String name)
Read a tfm font. |
TFMFont |
readTFMFont(java.lang.String name)
Read a tfm font. |
VFFont |
readVFFont(java.lang.String name)
Read a vf font. |
void |
setProperties(java.util.Properties properties)
Setter for the properties. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FontFactoryImpl(Configuration config, ResourceFinder resourceFinder) throws ConfigurationException
config
- the configuration objectresourceFinder
- the file finder
ConfigurationException
- from the resource finderMethod Detail |
public java.io.InputStream findResource(java.lang.String name, java.lang.String type) throws ConfigurationException
ConfigurationException
ResourceFinder.findResource(
java.lang.String,
java.lang.String)
public Font getInstance(FountKey key) throws ConfigurationException, FontException
NullFont
are returned.
getInstance
in interface FontFactory
key
- the fount key
ConfigurationException
- from the resource finder.
FontException
- if a font-error occurred.public Font getInstance(TFMFont tfm, FountKey key) throws ConfigurationException, FontException
NullFont
are returned.
getInstance
in interface FontFactory
tfm
- the tfm fontkey
- the fount key
ConfigurationException
- from the resource finder.
FontException
- if a font error occurred.public Font getInstance(VFFont vf, FountKey key) throws ConfigurationException, FontException
NullFont
are returned.
getInstance
in interface FontFactory
vf
- the vf fontkey
- the fount key
ConfigurationException
- from the resource finder.
FontException
- if a font-error occurred.public PSFontsMapReader getPsfm() throws FontException, ConfigurationException
getPsfm
in interface FontFactory
FontException
- if a font-error occurs.
ConfigurationException
- from the config-system.public AfmFont readAFMFont(java.lang.String name) throws ConfigurationException, FontException
readAFMFont
in interface FontFactory
name
- the name of the afm file
null
, if not found
ConfigurationException
- from the resource finder
FontException
- in case of a font errorpublic EfmReader readEFMFont(java.lang.String name) throws ConfigurationException, FontException
readEFMFont
in interface FontFactory
name
- the name of the tfm file
null
, if not found
ConfigurationException
- from the resource finder
FontException
- in case of a font errorpublic TFMFont readTFMFont(java.lang.String name) throws ConfigurationException, FontException
readTFMFont
in interface FontFactory
name
- the name of the tfm file
null
, if not found
ConfigurationException
- from the resource finder
FontException
- in case of a font errorpublic VFFont readVFFont(java.lang.String name) throws ConfigurationException, FontException
readVFFont
in interface FontFactory
name
- the name of the vf-file
null
, if not found
ConfigurationException
- from the resource finder
FontException
- in case of a font errorpublic void setProperties(java.util.Properties properties)
PropertyConfigurable
setProperties
in interface PropertyConfigurable
properties
- the properties to use for configurationPropertyConfigurable.setProperties(java.util.Properties)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |