public final class FontInfo extends Object
FontProgram
and PdfFont
. FontProgramDescriptor
fetches with FontProgramDescriptorFactory
.
Modifier and Type | Method and Description |
---|---|
static FontInfo |
create(FontInfo fontInfo, String alias) |
static FontInfo |
create(FontProgram fontProgram, String encoding, String alias) |
boolean |
equals(Object o) |
String |
getAlias()
Gets font alias.
|
FontProgramDescriptor |
getDescriptor() |
String |
getEncoding() |
byte[] |
getFontData()
Gets font data, if FontInfo was created with byte[] .
|
String |
getFontName()
Gets path to font, if FontInfo was created by String.
|
int |
hashCode() |
String |
toString() |
public static FontInfo create(FontProgram fontProgram, String encoding, String alias)
public FontProgramDescriptor getDescriptor()
public String getFontName()
FontInfo
was created by String. Note, to get PostScript or full name, use getDescriptor()
.
public byte[] getFontData()
FontInfo
was created with byte[]
.
public String getEncoding()
public String getAlias()
Copyright © 1998–2018 iText Group NV. All rights reserved.