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 FontInfocreate(FontProgram fontProgram, String encoding, String alias) static FontInfocreate(FontProgram fontProgram, String encoding, String alias, Range range) static FontInfostatic FontInfobooleangetAlias()Gets font alias.byte[]Gets font data, ifFontInfowas created withbyte[].Gets path to font, ifFontInfowas created by String.inthashCode()toString()
-
Method Details
-
create
-
create
-
create
-
create
-
getDescriptor
-
getFontUnicodeRange
-
getFontName
Gets path to font, ifFontInfowas created by String. Note, to get PostScript or full name, usegetDescriptor().- Returns:
- the font name
-
getFontData
public byte[] getFontData()Gets font data, ifFontInfowas created withbyte[].- Returns:
- font data
-
getEncoding
-
getAlias
Gets font alias.- Returns:
- alias if exist, otherwise null.
-
equals
-
hashCode
public int hashCode() -
toString
-