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.
|
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, 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, int fontSize, PdfArray options, int flags)
Deprecated.
Will be removed in 7.1. Use
PdfFormField.createChoice(PdfDocument, Rectangle, String, String, PdfFont, float, PdfArray, int) instead
|
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 PdfTextFormField |
PdfFormField.createMultilineText(PdfDocument doc, Rectangle rect, String name, String value, PdfFont font, int fontSize)
Deprecated.
|
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, int fontSize)
Deprecated.
Will be removed in 7.1. Use
PdfFormField.createPushButton(PdfDocument, Rectangle, String, String, PdfFont, float) instead.
|
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, int fontSize)
Deprecated.
Will be removed in 7.1. Use
PdfFormField.createText(PdfDocument, Rectangle, String, String, PdfFont, float) instead.
|
static PdfTextFormField |
PdfFormField.createText(PdfDocument doc, Rectangle rect, String name, String value, PdfFont font, int fontSize, boolean multiline)
Deprecated.
Will be removed in 7.1. Use
PdfFormField.createText(PdfDocument, Rectangle, String, String, PdfFont, float, boolean) instead.
|
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.drawButton(PdfCanvas canvas, float x, float y, float width, float height, String text, PdfFont font, int fontSize)
Deprecated.
Will be removed in 7.1. Use
PdfFormField.drawButton(PdfCanvas, float, float, float, float, String, PdfFont, float) instead.
|
protected void |
PdfFormField.drawMultiLineTextAppearance(Rectangle rect, PdfFont font, float fontSize, String value, PdfFormXObject appearance)
Draws the visual appearance of multiline text in a form field.
|
protected void |
PdfFormField.drawMultiLineTextAppearance(Rectangle rect, PdfFont font, int fontSize, String value, PdfFormXObject appearance)
Deprecated.
Will be removed in 7.1. Use
PdfFormField.drawMultiLineTextAppearance(Rectangle, PdfFont, float, String, PdfFormXObject) instead.
|
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, int fontSize)
Deprecated.
Will be removed in 7.1. Use
PdfFormField.drawPushButtonAppearance(float, float, String, PdfFont, float) instead.
|
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 void |
PdfFormField.drawTextAppearance(Rectangle rect, PdfFont font, int fontSize, String value, PdfFormXObject appearance)
Deprecated.
Will be removed in 7.1. Use
PdfFormField.drawTextAppearance(Rectangle, PdfFont, float, String, PdfFormXObject) instead.
|
protected String |
PdfFormField.generateDefaultAppearanceString(PdfFont font, float fontSize, Color color, PdfResources res) |
protected String |
PdfFormField.generateDefaultAppearanceString(PdfFont font, int fontSize, PdfResources res)
Deprecated.
Will be removed in 7.1. Use
PdfFormField.generateDefaultAppearanceString(PdfFont, float, Color, PdfResources) instead.
|
PdfFormField |
PdfFormField.setFont(PdfFont font)
Basic setter for the font property.
|
PdfFormField |
PdfFormField.setFontAndSize(PdfFont font, int fontSize)
Combined setter for the font and fontSize properties.
|
PdfFormField |
PdfFormField.setValue(String value, PdfFont font, float fontSize)
Set text field value with given font and size
|
PdfFormField |
PdfFormField.setValue(String value, PdfFont font, int fontSize)
Deprecated.
Use
PdfFormField.setValue(String, PdfFont, float) instead
|
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 FontConstants.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.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.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)
Gets the font pointed to by the indirect reference.
|
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 | Method and Description |
---|---|
abstract PdfFont |
FontSelectorStrategy.getCurrentFont() |
PdfFont |
ComplexFontSelectorStrategy.getCurrentFont() |
protected PdfFont |
FontSelectorStrategy.getPdfFont(FontInfo fontInfo)
Utility method to create PdfFont.
|
PdfFont |
FontProvider.getPdfFont(FontInfo fontInfo)
Get from cache or create a new instance of PdfFont .
|
PdfFont |
FontProvider.getPdfFont(FontInfo fontInfo, FontSet tempFonts)
Get from cache or create a new instance of PdfFont .
|
PdfFont |
FontInfo.getPdfFont(FontProvider fontProvider)
Deprecated.
use
FontProvider.getPdfFont(FontInfo) instead.
|
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 |
---|---|
protected TextRenderer |
TextRenderer.createCopy(GlyphLine gl, PdfFont font) |
protected void |
TextRenderer.setGlyphLineAndFont(GlyphLine gl, PdfFont font) |
Modifier and Type | Method and Description |
---|---|
void |
PdfAChecker.checkFont(PdfFont pdfFont)
Performs a number of checks on the font.
|
void |
PdfA1Checker.checkFont(PdfFont pdfFont) |
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.
|
Copyright © 1998–2017 iText Group NV. All rights reserved.