org.docx4j.org.xhtmlrenderer.pdf
Class TrueTypeUtil

java.lang.Object
  extended by org.docx4j.org.xhtmlrenderer.pdf.TrueTypeUtil

public class TrueTypeUtil
extends Object

Uses code from iText's DefaultFontMapper and TrueTypeFont classes. See http://sourceforge.net/projects/itext/ for license information.


Constructor Summary
TrueTypeUtil()
           
 
Method Summary
static String[] getFamilyNames(com.lowagie.text.pdf.BaseFont font)
           
static void populateDescription(String path, com.lowagie.text.pdf.BaseFont font, ITextFontResolver.FontDescription descr)
           
static void populateDescription(String path, byte[] contents, com.lowagie.text.pdf.BaseFont font, ITextFontResolver.FontDescription descr)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrueTypeUtil

public TrueTypeUtil()
Method Detail

getFamilyNames

public static String[] getFamilyNames(com.lowagie.text.pdf.BaseFont font)

populateDescription

public static void populateDescription(String path,
                                       com.lowagie.text.pdf.BaseFont font,
                                       ITextFontResolver.FontDescription descr)
                                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,
                                       ITextFontResolver.FontDescription descr)
                                throws IOException,
                                       NoSuchFieldException,
                                       IllegalAccessException,
                                       com.lowagie.text.DocumentException
Throws:
IOException
NoSuchFieldException
IllegalAccessException
com.lowagie.text.DocumentException


Copyright © 2011-2012. All Rights Reserved.