Package com.itextpdf.kernel.font
Class FontUtil
java.lang.Object
com.itextpdf.kernel.font.FontUtil
Utility class for font processing.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringaddRandomSubsetPrefixForFontName(String fontName) Adds random subset prefix (+ and 6 upper case letters) to passed font name.static com.itextpdf.io.util.IntHashtableconvertCompositeWidthsArray(PdfArray widthsArray) Converts passedWarray to integer table.static PdfStreamgetToUnicodeStream(Set<Glyph> glyphs) Gets aToUnicodePdfStreamfrom passed glyphs.static CMapToUnicodeprocessToUnicode(PdfObject toUnicode) Processes passedToUnicodeobject toCMapToUnicodeinstance.
-
Method Details
-
addRandomSubsetPrefixForFontName
Adds random subset prefix (+ and 6 upper case letters) to passed font name.- Parameters:
-
fontName- the font add prefix to - Returns:
- the font name with added prefix.
-
processToUnicode
Processes passedToUnicodeobject toCMapToUnicodeinstance.- Parameters:
-
toUnicode- theToUnicodeobject - Returns:
-
parsed
CMapToUnicodeinstance
-
convertCompositeWidthsArray
Converts passedWarray to integer table.- Parameters:
-
widthsArray- theWarray to convert - Returns:
-
converted
Warray as an integer table
-
getToUnicodeStream
Gets aToUnicodePdfStreamfrom passed glyphs.- Parameters:
-
glyphs- the glyphsToUnicodewill be based on - Returns:
-
the created
ToUnicodePdfStream
-