Package com.itextpdf.layout.font
Class FontInfo
java.lang.Object
com.itextpdf.layout.font.FontInfo
Contains all font related data to create
FontProgram
and PdfFont
. FontProgramDescriptor
fetches with FontProgramDescriptorFactory
.
-
Method Summary
Modifier and TypeMethodDescriptionstatic FontInfo
create
(FontProgram fontProgram, String encoding, String alias) static FontInfo
create
(FontProgram fontProgram, String encoding, String alias, Range range) static FontInfo
static FontInfo
boolean
getAlias()
Gets font alias.byte[]
Gets font data, ifFontInfo
was created withbyte[]
.Gets path to font, ifFontInfo
was created by String.int
hashCode()
toString()
-
Method Details
-
create
-
create
-
create
-
create
-
getDescriptor
-
getFontUnicodeRange
-
getFontName
Gets path to font, ifFontInfo
was created by String. Note, to get PostScript or full name, usegetDescriptor()
.- Returns:
- the font name
-
getFontData
public byte[] getFontData()Gets font data, ifFontInfo
was created withbyte[]
.- Returns:
- font data
-
getEncoding
-
getAlias
Gets font alias.- Returns:
- alias if exist, otherwise null.
-
equals
-
hashCode
public int hashCode() -
toString
-