Generated by
JDiff

com.itextpdf.kernel.font Documentation Differences

This file contains all the changes in documentation in the package com.itextpdf.kernel.font as colored differences. Deletions are shown like this , and additions are shown like this.
If no deletions or additions are shown in an entry, the HTML tags will be what has changed. The new HTML tags are shown in the differences. If no documentation existed, and then some was added in a later version, this change is noted in the appropriate class pages of differences, but the change is not shown on this page. Only changes in existing text are shown here. Similarly, documentation which was inherited from another class or interface is not shown here.
Note that an HTML error in the new documentation may cause the display of other documentation changes to be presented incorrectly. For instance, failure to close a tag will cause all subsequent paragraphs to be displayed differently.

Class PdfFont, int appendAnyGlyph(String, int, List)

Append any single glyph, even notdef. Returns number of processed chars: 2 in case surrogate pair, otherwise 1. @param text String to convert to glyphs. @param from from index of the text. @param glyphs array for a new glyph, shall not be null. @return number of processed chars: 2 in case surrogate pair, otherwise 1
Class PdfFont, int appendGlyphs(String, int, int, List)

Append all supported glyphs and return number of processed chars. Composite font supports surrogate pairs. @param text String to convert to glyphs. @param from from index of the text. @param to to index of the text. @param glyphs array for a new glyphs, shall not be null. @return number of processed chars from text.
Class PdfFont, boolean containsGlyph(int)

Check whether font contains glyph with specified unicode. @param unicode a unicode code point point @return true if font contains glyph, represented with the unicode code point, otherwise false.
Class PdfFont, byte[] convertToBytes(String)

Converts the text into bytes to be placed in the document. The conversion is done according to the font and the encoding and the characters used are stored. @param text the text to convert convert @return the conversion
Class PdfFont, float getAscent(String, float)

Gets the ascent of a {@code String} in points. The ascent will always be greater than or equal to zero even if all the characters have a lower ascent. @param text the {@code String} to get the ascent of @param fontSize the font size size @return the ascent in points
Class PdfFont, float getAscent(int, float)

Gets the ascent of a char code in normalized 1000 units. The ascent will always be greater than or equal to zero even if all the characters have a lower ascent. @param unicode the char code to get the ascent of @param fontSize the font size size @return the ascent in points
Class PdfFont, float getDescent(String, float)

Gets the descent of a {@code String} in points. The descent will always be less than or equal to zero even if all the characters have an a higher descent. @param text the {@code String} to get the descent of @param fontSize the font size size @return the descent in points
Class PdfFont, float getDescent(int, float)

Gets the descent of a char code in points. The descent will always be less than or equal to zero even if all the characters have an a higher descent. @param unicode the char code to get the descent of @param fontSize the font size size @return the descent in points
Class PdfFont, Glyph getGlyph(int)

Get glyph by unicode @param unicode a unicode code point point @return Glyph if it exists or .NOTDEF if supported, otherwise {@code null}.
Class PdfFont, PdfStream getPdfFontStream(byte[], int[])

Create {@code PdfStream} based on {@code fontStreamBytes}. @param fontStreamBytes original font data, must be not null. @param fontStreamLengths array to generate {@code Length*} keys, must be not null. @return the PdfStream containing the font or {@code null}, if there is an error reading the font. @throws PdfException Method will throw exception if {@code fontStreamBytes} is {@code null}.
Class PdfFont, int getWidth(String)

Returns the width of a string of this font in 1000 normalized units. @param text a string content. @return a width of string in Text Space.
Class PdfFont, float getWidth(String, float)

Gets the width of a {@code String} in points. @param text the {@code String} to get the width of @param fontSize the font size size @return the width in points
Class PdfFont, int getWidth(int)

Returns the width of a certain character of this font in 1000 normalized units. @param unicode a certain character. @return a width in Text Space.
Class PdfFont, float getWidth(int, float)

Returns the width of a certain character of this font in points. @param unicode a certain character. @param fontSize the font size. @return a width in points.
Class PdfFont, boolean isBuiltWith(String, String)

Checks whether the PdfFont was built with corresponding fontProgram and encoding or CMAP. Default value is false unless overridden. @param fontProgram a font name or path to a font program @param encoding an encoding or CMAP CMAP @return true, if the PdfFont was built with the fontProgram and encoding. Otherwise false. @see PdfDocument#findFont(String, String) @see FontProgram#isBuiltWith(String) @see com.itextpdf.io.font.FontEncoding#isBuiltWith(String) @see com.itextpdf.io.font.CMapEncoding#isBuiltWith(String)
Class PdfFont, void setSubset(boolean)

Indicates if all the glyphs and widths for that particular encoding should be included in the document. When set to {@code true} only the glyphs used will be included in the font. When set to {@code false} the full font will be included and all subset ranges will be removed. @param subset new value of property subset subset @see #addSubsetRange(int[])
Class PdfFont, String updateSubsetPrefix(String, boolean, boolean)

Adds a unique subset prefix to be added to the font name when the font is embedded and subsetted. @param fontName the original font name. @param isSubset denotes whether font in question is subsetted, i.e. only used symbols are kept in it. @param isEmbedded denotes whether font in question is embedded into the PDF document. @return the font name prefixed with subset if isSubset and isEmbedded are true, otherwise original font name is returned intact.