Class Standard14FontFactory
- java.lang.Object
-
- com.levigo.jadice.appbase.font.factory.AbstractFontFactory
-
- com.levigo.jadice.appbase.font.factory.Standard14FontFactory
-
- All Implemented Interfaces:
FontFactory
- Direct Known Subclasses:
FuzzyStandard14FontFactory,LiberalStandard14FontFactory
public class Standard14FontFactory extends AbstractFontFactory
ProvidesFontSources for the Standard 14 Font Name constants defined by the PDF Format. This implementation uses the publicly available levigo Standard 14 Fonts which are replacements for the original Fonts.- See Also:
Standard14Substitute
-
-
Constructor Summary
Constructors Constructor Description Standard14FontFactory(FontManagerFuture fontManagerFuture)
-
Method Summary
-
Methods inherited from class com.levigo.jadice.appbase.font.factory.AbstractFontFactory
getFontFor, getFontFor, getFontResolver, getFontSourceFor, getFontSourceForFontAttributeSet
-
-
-
-
Constructor Detail
-
Standard14FontFactory
public Standard14FontFactory(FontManagerFuture fontManagerFuture)
-
-
Method Detail
-
create
public Font create(FontAttributeSet fontAttributeSet, Map<String,Object> scope)
Description copied from interface:FontFactorySupply aFontwhich fits well for the requested parameters. Care should be taken to provide a fast implementation. This method might be called frequently and from various Threads at the same time. Blocking should be avoided.- Parameters:
fontAttributeSet- TheAttributes the requested font should have. Characteristics like its name or styles.scope- Information about this request's scope. This could encompass things like its intent, target, purpose or source.- Returns:
- a
Fontdeemed appropriate, ornullif no suchFontis available. Some implementations might be able to return aFontwhich fits all requested characteristics. Others might have several to choose from or none at all. TheFontwhich is returned doesn't have to fit all of the requested characteristics, or even any at all. It must only be appropriate in the given situation. - See Also:
Scopes
-
getFontSourceFor
protected FontSource getFontSourceFor(String postScriptNameString)
-
getFontSourceForHelvetica
protected FontSource getFontSourceForHelvetica()
-
getFontSourceForHelveticaBold
protected FontSource getFontSourceForHelveticaBold()
-
getFontSourceForHelveticaOblique
protected FontSource getFontSourceForHelveticaOblique()
-
getFontSourceForHelveticaBoldOblique
protected FontSource getFontSourceForHelveticaBoldOblique()
-
getFontSourceForCourier
protected FontSource getFontSourceForCourier()
-
getFontSourceForCourierBold
protected FontSource getFontSourceForCourierBold()
-
getFontSourceForCourierOblique
protected FontSource getFontSourceForCourierOblique()
-
getFontSourceForCourierBoldOblique
protected FontSource getFontSourceForCourierBoldOblique()
-
getFontSourceForTimesRoman
protected FontSource getFontSourceForTimesRoman()
-
getFontSourceForTimesBold
protected FontSource getFontSourceForTimesBold()
-
getFontSourceForTimesItalic
protected FontSource getFontSourceForTimesItalic()
-
getFontSourceForTimesBoldItalic
protected FontSource getFontSourceForTimesBoldItalic()
-
getFontSourceForSymbol
protected FontSource getFontSourceForSymbol()
-
getFontSourceForZapfDingbats
protected FontSource getFontSourceForZapfDingbats()
-
getFontSourceForPostScriptName
protected FontSource getFontSourceForPostScriptName(String name)
-
getFontSourceForPostScriptName
protected FontSource getFontSourceForPostScriptName(PostScriptName postScriptName)
-
getFontSourceForPostScriptName
protected FontSource getFontSourceForPostScriptName(String name, FontStyleAttribute... styles)
-
getFontSourceForPostScriptName
protected FontSource getFontSourceForPostScriptName(PostScriptName postScriptName, FontStyleAttribute[] styles)
-
-