-
- All Known Implementing Classes:
FontFactoryImp
public interface FontProviderThese two methods are used by FactoryProperties (for HTMLWorker). It's implemented by FontFactoryImp.- Since:
- iText 5.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FontgetFont(String fontName, String encoding, boolean embedded, float size, int style, Color color)Constructs aFont-object.booleanisRegistered(String fontName)Checks if a certain font is registered.
-
-
-
Method Detail
-
isRegistered
boolean isRegistered(String fontName)
Checks if a certain font is registered.- Parameters:
fontName- the name of the font that has to be checked.- Returns:
- true if the font is found
-
getFont
Font getFont(String fontName, String encoding, boolean embedded, float size, int style, Color color)
Constructs aFont-object.- Parameters:
fontName- the name of the fontencoding- the encoding of the fontembedded- true if the font is to be embedded in the PDFsize- the size of this fontstyle- the style of this fontcolor- theColorof this font.- Returns:
- the Font constructed based on the parameters
-
-