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(FontInfo fontInfo, String alias, Range range) |
static FontInfo |
create(FontProgram fontProgram, String encoding, String alias) |
static FontInfo |
create(FontProgram fontProgram, String encoding, String alias, Range range) |
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.
|
Range |
getFontUnicodeRange() |
int |
hashCode() |
String |
toString() |
public static FontInfo create(FontProgram fontProgram, String encoding, String alias, Range range)
public static FontInfo create(FontProgram fontProgram, String encoding, String alias)
public FontProgramDescriptor getDescriptor()
public Range getFontUnicodeRange()
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–2023 iText Group NV. All rights reserved.