sferyx.administration.renderers.pdfexport
Class FontProperties

java.lang.Object
  extended by sferyx.administration.renderers.pdfexport.FontProperties

public class FontProperties
extends java.lang.Object


Field Summary
static java.util.Hashtable charUTFGlyphs
           
 
Constructor Summary
FontProperties()
          Creates a new instance of FontProperties
 
Method Summary
static java.awt.Font getFontForFontFile(java.lang.String fileName)
           
static byte[] getFontSubset(java.io.File fileName, java.util.Map glyphsUsed)
           
static byte[] getFontSubsetFromFont(java.awt.Font font, java.lang.String text)
           
static java.lang.String getFontSubstitutionName(javax.swing.text.View view)
           
static double getStringWidth(java.lang.String string, java.lang.String pdfFontName, float fontSize)
           
static void loadFileSpecs(java.io.InputStream stream)
           
static void putFontFileToFontEntry(java.lang.String fileName, java.lang.String fontName)
           
protected static java.lang.String readStandardString(int length, java.io.RandomAccessFile rf)
           
static void saveFileSpecs(java.io.OutputStream stream, java.lang.String header)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

charUTFGlyphs

public static java.util.Hashtable charUTFGlyphs
Constructor Detail

FontProperties

public FontProperties()
Creates a new instance of FontProperties

Method Detail

loadFileSpecs

public static void loadFileSpecs(java.io.InputStream stream)

putFontFileToFontEntry

public static void putFontFileToFontEntry(java.lang.String fileName,
                                          java.lang.String fontName)

saveFileSpecs

public static void saveFileSpecs(java.io.OutputStream stream,
                                 java.lang.String header)
                          throws java.lang.Exception
Throws:
java.lang.Exception

getFontForFontFile

public static java.awt.Font getFontForFontFile(java.lang.String fileName)

getStringWidth

public static double getStringWidth(java.lang.String string,
                                    java.lang.String pdfFontName,
                                    float fontSize)

getFontSubstitutionName

public static java.lang.String getFontSubstitutionName(javax.swing.text.View view)

getFontSubsetFromFont

public static byte[] getFontSubsetFromFont(java.awt.Font font,
                                           java.lang.String text)

getFontSubset

public static byte[] getFontSubset(java.io.File fileName,
                                   java.util.Map glyphsUsed)

readStandardString

protected static java.lang.String readStandardString(int length,
                                                     java.io.RandomAccessFile rf)
                                              throws java.io.IOException
Throws:
java.io.IOException