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)
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
|
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 |
---|---|
protected TextRenderer |
TextRenderer.createCopy(GlyphLine gl, PdfFont font) |
protected void |
TextRenderer.setGlyphLineAndFont(GlyphLine gl, PdfFont font) |
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 |
ISvgTextNodeRenderer.getTextContentLength(float parentFontSize, PdfFont font) |
float |
TextLeafSvgNodeRenderer.getTextContentLength(float parentFontSize, PdfFont font) |
float |
TextSvgBranchRenderer.getTextContentLength(float parentFontSize, PdfFont font) |
Copyright © 1998–2020 iText Group NV. All rights reserved.