public class Standard14FontFactory extends AbstractFontFactory
FontSource
s 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.Standard14Substitute
Constructor and Description |
---|
Standard14FontFactory(FontManagerFuture fontManagerFuture) |
getFontResolver, getFontSourceForFontAttributeSet
public Standard14FontFactory(FontManagerFuture fontManagerFuture)
public Font create(FontAttributeSet fontAttributeSet, Map<String,Object> scope)
FontFactory
Font
which 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.fontAttributeSet
- The Attribute
s 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.Font
deemed appropriate, or null
if no such Font
is
available. Some implementations might be able to return a Font
which fits all
requested characteristics. Others might have several to choose from or none at all. The
Font
which 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.Scopes
protected FontSource getFontSourceFor(String postScriptNameString)
protected FontSource getFontSourceForHelvetica()
protected FontSource getFontSourceForHelveticaBold()
protected FontSource getFontSourceForHelveticaOblique()
protected FontSource getFontSourceForHelveticaBoldOblique()
protected FontSource getFontSourceForCourier()
protected FontSource getFontSourceForCourierBold()
protected FontSource getFontSourceForCourierOblique()
protected FontSource getFontSourceForCourierBoldOblique()
protected FontSource getFontSourceForTimesRoman()
protected FontSource getFontSourceForTimesBold()
protected FontSource getFontSourceForTimesItalic()
protected FontSource getFontSourceForTimesBoldItalic()
protected FontSource getFontSourceForSymbol()
protected FontSource getFontSourceForZapfDingbats()
protected FontSource getFontSourceForPostScriptName(String name)
protected FontSource getFontSourceForPostScriptName(PostScriptName postScriptName)
protected FontSource getFontSourceForPostScriptName(String name, FontStyleAttribute... styles)
protected FontSource getFontSourceForPostScriptName(PostScriptName postScriptName, FontStyleAttribute[] styles)
Copyright © 2024 levigo holding gmbh. All rights reserved.