Package org.xhtmlrenderer.pdf
Class TrueTypeUtil
java.lang.Object
org.xhtmlrenderer.pdf.TrueTypeUtil
Uses code from iText's DefaultFontMapper and TrueTypeFont classes. See
http://sourceforge.net/projects/itext/ for license information.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionextractTables
(com.lowagie.text.pdf.BaseFont font) static Collection
<String> getFamilyNames
(com.lowagie.text.pdf.BaseFont font) private static String
getTTCName
(String name) private static IdentValue
guessStyle
(com.lowagie.text.pdf.BaseFont font) static void
populateDescription
(String path, byte[] contents, com.lowagie.text.pdf.BaseFont font, FontDescription description) static void
populateDescription
(String path, com.lowagie.text.pdf.BaseFont font, FontDescription description) private static void
populateDescription0
(String path, com.lowagie.text.pdf.BaseFont font, FontDescription description, com.lowagie.text.pdf.RandomAccessFileOrArray rf)
-
Constructor Details
-
TrueTypeUtil
public TrueTypeUtil()
-
-
Method Details
-
guessStyle
-
getFamilyNames
-
extractTables
private static Map<String,int[]> extractTables(com.lowagie.text.pdf.BaseFont font) throws SecurityException, NoSuchFieldException, IllegalArgumentException, IllegalAccessException -
getTTCName
-
populateDescription
public static void populateDescription(String path, com.lowagie.text.pdf.BaseFont font, FontDescription description) throws IOException, NoSuchFieldException, IllegalAccessException, com.lowagie.text.DocumentException - Throws:
IOException
NoSuchFieldException
IllegalAccessException
com.lowagie.text.DocumentException
-
populateDescription
public static void populateDescription(String path, byte[] contents, com.lowagie.text.pdf.BaseFont font, FontDescription description) throws IOException, NoSuchFieldException, IllegalAccessException, com.lowagie.text.DocumentException - Throws:
IOException
NoSuchFieldException
IllegalAccessException
com.lowagie.text.DocumentException
-
populateDescription0
private static void populateDescription0(String path, com.lowagie.text.pdf.BaseFont font, FontDescription description, com.lowagie.text.pdf.RandomAccessFileOrArray rf) throws NoSuchFieldException, IllegalAccessException, com.lowagie.text.DocumentException, IOException - Throws:
NoSuchFieldException
IllegalAccessException
com.lowagie.text.DocumentException
IOException
-