|
Generated by JDiff |
||||||||
PREV PACKAGE NEXT PACKAGE FRAMES NO FRAMES |
This file contains all the changes in documentation in the packagecom.itextpdf.kernel.font
as colored differences. Deletions are shownlike 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.
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.Class PdfFont, int appendGlyphs(String, int, int, List@return number of processed chars: 2 in case surrogate pair, otherwise 1
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.Class PdfFont, boolean containsGlyph(int)@return number of processed chars from text.
Check whether font contains glyph with specified unicode. @param unicode a unicode codeClass PdfFont, byte[] convertToBytes(String)pointpoint @return true if font contains glyph, represented with the unicode code point, otherwise false.
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 toClass PdfFont, float getAscent(String, float)convertconvert @return the conversion
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 fontClass PdfFont, float getAscent(int, float)sizesize @return the ascent in points
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 fontClass PdfFont, float getDescent(String, float)sizesize @return the ascent in points
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 haveClass PdfFont, float getDescent(int, float)ana higher descent. @param text the {@code String} to get the descent of @param fontSize the fontsizesize @return the descent in points
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 haveClass PdfFont, Glyph getGlyph(int)ana higher descent. @param unicode the char code to get the descent of @param fontSize the fontsizesize @return the descent in points
Get glyph by unicode @param unicode a unicode codeClass PdfFont, PdfStream getPdfFontStream(byte[], int[])pointpoint @return Glyph if it exists or .NOTDEF if supported, otherwise {@code null}.
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.Class PdfFont, int getWidth(String)@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}.
Returns the width of a string of this font in 1000 normalized units. @param text a string content.Class PdfFont, float getWidth(String, float)@return a width of string in Text Space.
Gets the width of a {@code String} in points. @param text the {@code String} to get the width of @param fontSize the fontClass PdfFont, int getWidth(int)sizesize @return the width in points
Returns the width of a certain character of this font in 1000 normalized units. @param unicode a certain character.Class PdfFont, float getWidth(int, float)@return a width in Text Space.
Returns the width of a certain character of this font in points. @param unicode a certain character. @param fontSize the font size.Class PdfFont, boolean isBuiltWith(String, String)@return a width in points.
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 orClass PdfFont, void setSubset(boolean)CMAPCMAP @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)
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 propertyClass PdfFont, String updateSubsetPrefix(String, boolean, boolean)subsetsubset @see #addSubsetRange(int[])
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.