| Modifier and Type | Class and Description |
|---|---|
class |
PdfSimpleFont<T extends FontProgram> |
class |
PdfTrueTypeFont
Note.
|
class |
PdfType0Font |
class |
PdfType1Font |
class |
PdfType3Font
Low-level API class for Type 3 fonts.
|
| Modifier and Type | Method and Description |
|---|---|
static PdfFont |
PdfFontFactory.createFont()
Creates a new instance of default font, namely
StandardFonts.HELVETICA standard font
with PdfEncodings.WINANSI encoding. |
static PdfFont |
PdfFontFactory.createFont(byte[] fontProgram,
boolean embedded)
Created a
PdfFont instance by the bytes of the underlying font program. |
static PdfFont |
PdfFontFactory.createFont(byte[] fontProgram,
String encoding)
Created a
PdfFont instance by the bytes of the underlying font program. |
static PdfFont |
PdfFontFactory.createFont(byte[] fontProgram,
String encoding,
boolean embedded)
Created a
PdfFont instance by the bytes of the underlying font program. |
static PdfFont |
PdfFontFactory.createFont(byte[] fontProgram,
String encoding,
boolean embedded,
boolean cached)
Created a
PdfFont instance by the bytes of the underlying font program. |
static PdfFont |
PdfFontFactory.createFont(FontProgram fontProgram)
Created a
PdfFont instance given the given underlying FontProgram instance. |
static PdfFont |
PdfFontFactory.createFont(FontProgram fontProgram,
String encoding)
Created a
PdfFont instance given the given underlying FontProgram instance. |
static PdfFont |
PdfFontFactory.createFont(FontProgram fontProgram,
String encoding,
boolean embedded)
Created a
PdfFont instance given the given underlying FontProgram instance. |
static PdfFont |
PdfFontFactory.createFont(PdfDictionary fontDictionary)
Creates a
PdfFont by already existing font dictionary. |
static PdfFont |
PdfFontFactory.createFont(String fontProgram)
Creates a
PdfFont instance by the path of the font program file |
static PdfFont |
PdfFontFactory.createFont(String fontProgram,
boolean embedded)
Created a
PdfFont instance given the path to the font file. |
static PdfFont |
PdfFontFactory.createFont(String fontProgram,
String encoding)
Creates a
PdfFont instance by the path of the font program file and given encoding. |
static PdfFont |
PdfFontFactory.createFont(String fontProgram,
String encoding,
boolean embedded)
Created a
PdfFont instance given the path to the font file. |
static PdfFont |
PdfFontFactory.createFont(String fontProgram,
String encoding,
boolean embedded,
boolean cached)
Created a
PdfFont instance given the path to the font file. |
static PdfFont |
PdfFontFactory.createFont(String fontProgram,
String encoding,
PdfDocument cacheTo) |
static PdfFont |
PdfFontFactory.createRegisteredFont(String fontName)
Creates
PdfFont based on registered FontProgram's. |
static PdfFont |
PdfFontFactory.createRegisteredFont(String fontName,
String encoding)
Creates
PdfFont based on registered FontProgram's. |
static PdfFont |
PdfFontFactory.createRegisteredFont(String fontName,
String encoding,
boolean embedded)
Creates
PdfFont based on registered FontProgram's. |
static PdfFont |
PdfFontFactory.createRegisteredFont(String fontName,
String encoding,
boolean embedded,
boolean cached)
Creates
PdfFont based on registered FontProgram's. |
static PdfFont |
PdfFontFactory.createRegisteredFont(String fontName,
String encoding,
boolean embedded,
int style)
Creates
PdfFont based on registered FontProgram's. |
static PdfFont |
PdfFontFactory.createRegisteredFont(String fontName,
String encoding,
boolean embedded,
int style,
boolean cached)
Creates
PdfFont based on registered FontProgram's. |
static PdfFont |
PdfFontFactory.createTtcFont(byte[] ttc,
int ttcIndex,
String encoding,
boolean embedded,
boolean cached)
Creates a
PdfFont instance from the TrueType Collection represented by its byte contents. |
static PdfFont |
PdfFontFactory.createTtcFont(String ttc,
int ttcIndex,
String encoding,
boolean embedded,
boolean cached)
Creates a
PdfFont instance from the TrueType Collection given by the path to the .ttc file. |
| Modifier and Type | Method and Description |
|---|---|
PdfFont |
PdfDocument.addFont(PdfFont font)
Adds a
PdfFont instance to this document so that this font is flushed automatically
on document close. |
PdfFont |
PdfDocument.findFont(String fontProgram,
String encoding) |
PdfFont |
PdfDocument.getDefaultFont()
Gets default font for the document: Helvetica, WinAnsi.
|
PdfFont |
PdfDocument.getFont(PdfDictionary dictionary)
Create a new instance of
PdfFont or load already created one. |
| Modifier and Type | Method and Description |
|---|---|
protected Collection<PdfFont> |
PdfDocument.getDocumentFonts()
List all newly added or loaded fonts
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
PdfTextArray.add(String text,
PdfFont font) |
PdfName |
PdfResources.addFont(PdfDocument pdfDocument,
PdfFont font)
Adds font to resources and register PdfFont in the document for further flushing.
|
PdfFont |
PdfDocument.addFont(PdfFont font)
Adds a
PdfFont instance to this document so that this font is flushed automatically
on document close. |
| Modifier and Type | Method and Description |
|---|---|
PdfTrapNetworkAnnotation |
PdfTrapNetworkAnnotation.setFauxedFonts(List<PdfFont> fauxedFonts)
A list of font dictionaries representing fonts that were fauxed (replaced by substitute fonts) during the
generation of trap networks for the page.
|
| Modifier and Type | Method and Description |
|---|---|
PdfFont |
CanvasGraphicsState.getFont() |
| Modifier and Type | Method and Description |
|---|---|
void |
CanvasGraphicsState.setFont(PdfFont font) |
PdfCanvas |
PdfCanvas.setFontAndSize(PdfFont font,
float size)
Sets font and size (PDF Tf operator).
|
| Modifier and Type | Method and Description |
|---|---|
protected PdfFont |
PdfCanvasProcessor.getFont(PdfDictionary fontDict)
Creates a
PdfFont object by a font dictionary. |
| Modifier and Type | Method and Description |
|---|---|
PdfFont |
TextRenderInfo.getFont()
Getter for the font
|
Copyright © 1998–2019 iText Group NV. All rights reserved.