public class FontUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
addRandomSubsetPrefixForFontName(String fontName)
Adds random subset prefix (+ and 6 upper case letters) to passed font name.
|
static IntHashtable |
convertCompositeWidthsArray(PdfArray widthsArray)
Converts passed
W array to integer table. |
static PdfStream |
getToUnicodeStream(Set<Glyph> glyphs)
Gets a
ToUnicode PdfStream from passed glyphs. |
static CMapToUnicode |
processToUnicode(PdfObject toUnicode)
Processes passed
ToUnicode object to CMapToUnicode instance. |
public static String addRandomSubsetPrefixForFontName(String fontName)
fontName - the font add prefix topublic static CMapToUnicode processToUnicode(PdfObject toUnicode)
ToUnicode object to CMapToUnicode instance.toUnicode - the ToUnicode objectCMapToUnicode instancepublic static IntHashtable convertCompositeWidthsArray(PdfArray widthsArray)
W array to integer table.widthsArray - the W array to convertW array as an integer tableCopyright © 1998–2025 Apryse Group NV. All rights reserved.