com.stimulsoft.base.utils
Class StiFontHelper

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

public class StiFontHelper
extends Object

Font helper class Copyright Stimulsoft


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

Constructor Detail

StiFontHelper

public StiFontHelper()
Method Detail

getFontData

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

Parameters:
font - Font
Returns:
Byte array font file
Throws:
IOException
IllegalArgumentException
SecurityException
IllegalAccessException
NoSuchFieldException

getFontFile

public static File getFontFile(Font font)
                        throws IllegalArgumentException,
                               IllegalAccessException,
                               SecurityException,
                               NoSuchFieldException
Get fon File

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


Copyright © 2017 Stimulsoft. All Rights Reserved.