com.stimulsoft.base.utils
Class StiFontHelper

java.lang.Object
  extended by com.stimulsoft.base.utils.StiFontHelper

public class StiFontHelper
extends java.lang.Object

Font helper class Copyright Stimulsoft


Constructor Summary
StiFontHelper()
           
 
Method Summary
static byte[] getFontData(java.awt.Font font)
          Get font file in byte array
static java.io.File getFontFile(java.awt.Font font)
          Get fon File
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StiFontHelper

public StiFontHelper()
Method Detail

getFontData

public static byte[] getFontData(java.awt.Font font)
                          throws java.io.IOException,
                                 java.lang.IllegalArgumentException,
                                 java.lang.SecurityException,
                                 java.lang.IllegalAccessException,
                                 java.lang.NoSuchFieldException
Get font file in byte array

Parameters:
font - Font
Returns:
Byte array font file
Throws:
java.io.IOException
java.lang.IllegalArgumentException
java.lang.SecurityException
java.lang.IllegalAccessException
java.lang.NoSuchFieldException

getFontFile

public static java.io.File getFontFile(java.awt.Font font)
                                throws java.lang.IllegalArgumentException,
                                       java.lang.IllegalAccessException,
                                       java.lang.SecurityException,
                                       java.lang.NoSuchFieldException
Get fon File

Parameters:
font - Font
Returns:
Font File
Throws:
java.lang.IllegalArgumentException
java.lang.IllegalAccessException
java.lang.SecurityException
java.lang.NoSuchFieldException