Modifier and Type | Field and Description |
---|---|
protected PdfFont |
Barcode1D.font
The text font.
|
Modifier and Type | Method and Description |
---|---|
PdfFont |
Barcode1D.getFont()
Gets the text font.
|
Modifier and Type | Method and Description |
---|---|
void |
Barcode1D.setFont(PdfFont font)
Sets the text font.
|
Constructor and Description |
---|
Barcode128(PdfDocument document, PdfFont font)
Creates new Barcode128, which will use the provided font
|
Barcode39(PdfDocument document, PdfFont font)
Creates a new Barcode39.
|
BarcodeCodabar(PdfDocument document, PdfFont font)
Creates a new BarcodeCodabar.
|
BarcodeEAN(PdfDocument document, PdfFont font)
Creates new BarcodeEAN
|
BarcodeInter25(PdfDocument document, PdfFont font)
Creates new BarcodeInter25
|
BarcodeMSI(PdfDocument document, PdfFont font)
Creates a new BarcodeMSI
|
Modifier and Type | Field and Description |
---|---|
protected PdfFont |
PdfFormField.font |
Modifier and Type | Method and Description |
---|---|
PdfFont |
PdfFormField.getFont()
Gets the current font of the form field.
|
Modifier and Type | Method and Description |
---|---|
static PdfChoiceFormField |
PdfFormField.createChoice(PdfDocument doc, Rectangle rect, String name, String value, PdfArray options, int flags, PdfFont font, PdfAConformanceLevel pdfAConformanceLevel)
Creates a choice form field with custom behavior and layout, on a specified location.
|
static PdfChoiceFormField |
PdfFormField.createChoice(PdfDocument doc, Rectangle rect, String name, String value, PdfFont font, float fontSize, PdfArray options, int flags)
Creates a choice form field with custom behavior and layout, on a specified location.
|
static PdfChoiceFormField |
PdfFormField.createChoice(PdfDocument doc, Rectangle rect, String name, String value, PdfFont font, float fontSize, PdfArray options, int flags, PdfAConformanceLevel pdfAConformanceLevel)
Creates a choice form field with custom behavior and layout, on a specified location.
|
static PdfChoiceFormField |
PdfFormField.createComboBox(PdfDocument doc, Rectangle rect, String name, String value, String[][] options, PdfFont font, PdfAConformanceLevel pdfAConformanceLevel)
Creates a combobox with custom behavior and layout, on a specified location.
|
static PdfChoiceFormField |
PdfFormField.createComboBox(PdfDocument doc, Rectangle rect, String name, String value, String[] options, PdfFont font, PdfAConformanceLevel pdfAConformanceLevel)
Creates a combobox with custom behavior and layout, on a specified location.
|
static PdfChoiceFormField |
PdfFormField.createList(PdfDocument doc, Rectangle rect, String name, String value, String[][] options, PdfFont font, PdfAConformanceLevel pdfAConformanceLevel)
Creates a list field with custom behavior and layout, on a specified location.
|
static PdfChoiceFormField |
PdfFormField.createList(PdfDocument doc, Rectangle rect, String name, String value, String[] options, PdfFont font, PdfAConformanceLevel pdfAConformanceLevel)
Creates a list field with custom behavior and layout, on a specified location.
|
static PdfTextFormField |
PdfFormField.createMultilineText(PdfDocument doc, Rectangle rect, String name, String value, PdfFont font, float fontSize)
Creates a named multilined text form field with an initial value, with a specified font and font size.
|
static PdfButtonFormField |
PdfFormField.createPushButton(PdfDocument doc, Rectangle rect, String name, String caption, PdfFont font, float fontSize)
Creates a PdfButtonFormField as a push button without data, with its caption in a custom font.
|
static PdfButtonFormField |
PdfFormField.createPushButton(PdfDocument doc, Rectangle rect, String name, String caption, PdfFont font, float fontSize, PdfAConformanceLevel pdfAConformanceLevel)
Creates a PdfButtonFormField as a push button without data, with its caption in a custom font.
|
static PdfTextFormField |
PdfFormField.createText(PdfDocument doc, Rectangle rect, String name, String value, PdfFont font, float fontSize)
Creates a named text form field with an initial value, with a specified font and font size.
|
static PdfTextFormField |
PdfFormField.createText(PdfDocument doc, Rectangle rect, String name, String value, PdfFont font, float fontSize, boolean multiline)
Creates a named text form field with an initial value, with a specified font and font size.
|
static PdfTextFormField |
PdfFormField.createText(PdfDocument doc, Rectangle rect, String name, String value, PdfFont font, float fontSize, boolean multiline, PdfAConformanceLevel pdfAConformanceLevel)
Creates a named text form field with an initial value, with a specified font and font size.
|
protected void |
PdfFormField.drawButton(PdfCanvas canvas, float x, float y, float width, float height, String text, PdfFont font, float fontSize)
Performs the low-level drawing operations to draw a button object.
|
protected void |
PdfFormField.drawMultiLineTextAppearance(Rectangle rect, PdfFont font, float fontSize, String value, PdfFormXObject appearance)
Deprecated.
|
protected void |
PdfFormField.drawMultiLineTextAppearance(Rectangle rect, PdfFont font, String value, PdfFormXObject appearance) |
protected PdfFormXObject |
PdfFormField.drawPushButtonAppearance(float width, float height, String text, PdfFont font, float fontSize)
Draws the appearance for a push button.
|
protected PdfFormXObject |
PdfFormField.drawPushButtonAppearance(float width, float height, String text, PdfFont font, PdfName fontName, float fontSize)
Deprecated.
|
protected void |
PdfFormField.drawTextAppearance(Rectangle rect, PdfFont font, float fontSize, String value, PdfFormXObject appearance)
Draws the visual appearance of text in a form field.
|
protected String |
PdfFormField.generateDefaultAppearanceString(PdfFont font, float fontSize, Color color, PdfResources res)
Deprecated.
use
PdfFormField.updateDefaultAppearance() instead.
|
PdfFormField |
PdfFormField.setFont(PdfFont font)
Basic setter for the font property.
|
PdfFormField |
PdfFormField.setFontAndSize(PdfFont font, float fontSize)
Combined setter for the font and fontSize properties.
|
PdfFormField |
PdfFormField.setFontAndSize(PdfFont font, int fontSize)
Deprecated.
use
PdfFormField.setFontAndSize(PdfFont, float) instead.
|
PdfFormField |
PdfFormField.setValue(String value, PdfFont font, float fontSize)
Set text field value with given font and size
|
Modifier and Type | Class and Description |
---|---|
class |
PdfSimpleFont |
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)
Deprecated.
Will be removed in next major release. Use
PdfFontFactory.createFont(byte[], EmbeddingStrategy) instead
|
static PdfFont |
PdfFontFactory.createFont(byte[] fontProgram, PdfFontFactory.EmbeddingStrategy embeddingStrategy)
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)
Deprecated.
Will be removed in next major release. Use
PdfFontFactory.createFont(byte[], String, EmbeddingStrategy) instead
|
static PdfFont |
PdfFontFactory.createFont(byte[] fontProgram, String encoding, boolean embedded, boolean cached)
Deprecated.
Will be removed in next major release. Use
PdfFontFactory.createFont(byte[], String, EmbeddingStrategy, boolean) instead
|
static PdfFont |
PdfFontFactory.createFont(byte[] fontProgram, String encoding, PdfFontFactory.EmbeddingStrategy embeddingStrategy)
Created a PdfFont instance by the bytes of the underlying font program.
|
static PdfFont |
PdfFontFactory.createFont(byte[] fontProgram, String encoding, PdfFontFactory.EmbeddingStrategy embeddingStrategy, 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)
Deprecated.
Will be removed in next major release. Use
PdfFontFactory.createFont(FontProgram, String, EmbeddingStrategy) instead
|
static PdfFont |
PdfFontFactory.createFont(FontProgram fontProgram, String encoding, PdfFontFactory.EmbeddingStrategy embeddingStrategy)
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)
Deprecated.
Will be removed in next major release. Use
PdfFontFactory.createFont(String, EmbeddingStrategy) instead
|
static PdfFont |
PdfFontFactory.createFont(String fontProgram, PdfFontFactory.EmbeddingStrategy embeddingStrategy)
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)
Deprecated.
Will be removed in next major release. Use
PdfFontFactory.createFont(String, String, EmbeddingStrategy) instead
|
static PdfFont |
PdfFontFactory.createFont(String fontProgram, String encoding, boolean embedded, boolean cached)
Deprecated.
Will be removed in next major release. Use
PdfFontFactory.createFont(String, String, EmbeddingStrategy, boolean) instead
|
static PdfFont |
PdfFontFactory.createFont(String fontProgram, String encoding, PdfDocument cacheTo)
Creates a PdfFont instance by the path of the font program file and given encoding and place it inside the PdfDocument .
|
static PdfFont |
PdfFontFactory.createFont(String fontProgram, String encoding, PdfFontFactory.EmbeddingStrategy embeddingStrategy)
Created a PdfFont instance given the path to the font file.
|
static PdfFont |
PdfFontFactory.createFont(String fontProgram, String encoding, PdfFontFactory.EmbeddingStrategy embeddingStrategy, boolean cached)
Created a PdfFont instance given the path to the font file.
|
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)
Deprecated.
Will be removed in next major release. Use
PdfFontFactory.createRegisteredFont(String, String, EmbeddingStrategy) instead
|
static PdfFont |
PdfFontFactory.createRegisteredFont(String fontName, String encoding, boolean embedded, boolean cached)
Deprecated.
Will be removed in next major release. Use
PdfFontFactory.createRegisteredFont(String, String, EmbeddingStrategy, boolean) instead
|
static PdfFont |
PdfFontFactory.createRegisteredFont(String fontName, String encoding, boolean embedded, int style)
Deprecated.
Will be removed in next major release. Use
PdfFontFactory.createRegisteredFont(String, String, EmbeddingStrategy, int) instead
|
static PdfFont |
PdfFontFactory.createRegisteredFont(String fontName, String encoding, boolean embedded, int style, boolean cached)
Deprecated.
Will be removed in next major release. Use
PdfFontFactory.createRegisteredFont(String, String, EmbeddingStrategy, int, boolean) instead
|
static PdfFont |
PdfFontFactory.createRegisteredFont(String fontName, String encoding, PdfFontFactory.EmbeddingStrategy embeddingStrategy)
Creates PdfFont based on registered FontProgram 's.
|
static PdfFont |
PdfFontFactory.createRegisteredFont(String fontName, String encoding, PdfFontFactory.EmbeddingStrategy embeddingStrategy, boolean cached)
Creates PdfFont based on registered FontProgram 's.
|
static PdfFont |
PdfFontFactory.createRegisteredFont(String fontName, String encoding, PdfFontFactory.EmbeddingStrategy embeddingStrategy, int style)
Creates PdfFont based on registered FontProgram 's.
|
static PdfFont |
PdfFontFactory.createRegisteredFont(String fontName, String encoding, PdfFontFactory.EmbeddingStrategy embeddingStrategy, 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)
Deprecated.
Will be removed in next major release. Use
PdfFontFactory.createTtcFont(byte[], int, String, EmbeddingStrategy, boolean) instead
|
static PdfFont |
PdfFontFactory.createTtcFont(byte[] ttc, int ttcIndex, String encoding, PdfFontFactory.EmbeddingStrategy embeddingStrategy, 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)
Deprecated.
Will be removed in next major release. Use
PdfFontFactory.createTtcFont(String, int, String, EmbeddingStrategy, boolean) instead
|
static PdfFont |
PdfFontFactory.createTtcFont(String ttc, int ttcIndex, String encoding, PdfFontFactory.EmbeddingStrategy embeddingStrategy, 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)
Find PdfFont from loaded fonts with corresponding fontProgram and encoding or CMAP.
|
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 registers 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
|
Modifier and Type | Field and Description |
---|---|
protected PdfFont |
RootElement.defaultFont |
Modifier and Type | Method and Description |
---|---|
T |
ElementPropertyContainer.setFont(PdfFont font)
Sets the font of this Element.
|
Modifier and Type | Field and Description |
---|---|
protected Map<FontInfo,PdfFont> |
FontProvider.pdfFonts |
Modifier and Type | Method and Description |
---|---|
PdfFont |
ComplexFontSelectorStrategy.getCurrentFont() |
abstract PdfFont |
FontSelectorStrategy.getCurrentFont() |
PdfFont |
FontProvider.getPdfFont(FontInfo fontInfo)
Get from cache or create a new instance of PdfFont .
|
protected PdfFont |
FontSelectorStrategy.getPdfFont(FontInfo fontInfo)
Utility method to create PdfFont.
|
PdfFont |
FontProvider.getPdfFont(FontInfo fontInfo, FontSet additionalFonts)
Get from cache or create a new instance of PdfFont .
|
Modifier and Type | Method and Description |
---|---|
PdfFont |
AbstractRenderer.getPropertyAsFont(int property)
Returns a property with a certain key, as a font object.
|
Modifier and Type | Method and Description |
---|---|
static float[] |
TextRenderer.calculateAscenderDescender(PdfFont font)
Get ascender and descender from font metrics.
|
static float[] |
TextRenderer.calculateAscenderDescender(PdfFont font, RenderingMode mode)
Get ascender and descender from font metrics.
|
protected TextRenderer |
TextRenderer.createCopy(GlyphLine gl, PdfFont font)
|
static GlyphLine |
TextPreprocessingUtil.replaceSpecialWhitespaceGlyphs(GlyphLine line, PdfFont font)
Replaces special whitespace glyphs to new whitespace ' ' glyph that has custom width.
|
protected void |
TextRenderer.setGlyphLineAndFont(GlyphLine gl, PdfFont font)
Deprecated.
|
protected void |
TextRenderer.setProcessedGlyphLineAndFont(GlyphLine gl, PdfFont font) |
void |
TextRenderer.setText(GlyphLine text, PdfFont font)
Manually set a GlyphLine and PdfFont for rendering.
|
Modifier and Type | Method and Description |
---|---|
void |
PdfA1Checker.checkFont(PdfFont pdfFont) |
abstract void |
PdfAChecker.checkFont(PdfFont pdfFont)
Performs a number of checks on the font.
|
void |
PdfA2Checker.checkFontGlyphs(PdfFont font, PdfStream contentStream) |
void |
PdfAChecker.checkFontGlyphs(PdfFont font, PdfStream contentStream)
Performs a check of the each font glyph as a Form XObject.
|
Modifier and Type | Method and Description |
---|---|
PdfFont |
PdfSignatureAppearance.getLayer2Font()
Gets the n2 and n4 layer font.
|
Modifier and Type | Method and Description |
---|---|
PdfSignatureAppearance |
PdfSignatureAppearance.setLayer2Font(PdfFont layer2Font)
Sets the n2 and n4 layer font.
|
Modifier and Type | Method and Description |
---|---|
float |
TextLeafSvgNodeRenderer.getTextContentLength(float parentFontSize, PdfFont font) |
float |
ISvgTextNodeRenderer.getTextContentLength(float parentFontSize, PdfFont font) |
float |
TextSvgBranchRenderer.getTextContentLength(float parentFontSize, PdfFont font) |
Copyright © 1998–2021 iText Group NV. All rights reserved.