public final class FontInfo extends Object
FontProgram
and PdfFont
. FontProgramDescriptor
fetches with FontProgramDescriptorFactory
.
Modifier and Type | Method and Description |
---|---|
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.
|
byte[] |
getFontProgram()
Deprecated.
use
getFontData() instead.
|
PdfFont |
getPdfFont(FontProvider fontProvider)
Deprecated.
use
FontProvider.getPdfFont(FontInfo) instead.
|
int |
hashCode() |
String |
toString() |
@Deprecated public PdfFont getPdfFont(FontProvider fontProvider)
FontProvider.getPdfFont(FontInfo)
instead.
fontProvider
- fontprovider to get the PdfFont associated with this instance
public FontProgramDescriptor getDescriptor()
public String getFontName()
FontInfo
was created by String. Note, to get PostScript or full name, use getDescriptor()
.
@Deprecated public byte[] getFontProgram()
getFontData()
instead.
FontInfo
was created with byte[]
.
public byte[] getFontData()
FontInfo
was created with byte[]
.
public String getEncoding()
public String getAlias()
Copyright © 1998–2018 iText Group NV. All rights reserved.