Package com.stimulsoft.base.utils
Class StiFontHelper
java.lang.Object
com.stimulsoft.base.utils.StiFontHelper
Font helper class
Copyright Stimulsoft
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringstatic byte[]getFontData(Font font, Map<Font, byte[]> customFonts) Get font file in byte arraystatic FilegetFontFile(Font font) Get fonFile
-
Constructor Details
-
StiFontHelper
public StiFontHelper()
-
-
Method Details
-
getFontData
public static byte[] getFontData(Font font, Map<Font, byte[]> customFonts) throws IOException, IllegalArgumentException, SecurityException, IllegalAccessException, NoSuchFieldException, ClassNotFoundException, InvocationTargetException, NoSuchMethodExceptionGet font file in byte array- Parameters:
font-Font- Returns:
- Byte array font file
- Throws:
IOExceptionIllegalArgumentExceptionSecurityExceptionIllegalAccessExceptionNoSuchFieldExceptionClassNotFoundExceptionNoSuchMethodExceptionInvocationTargetException
-
getFontFile
public static File getFontFile(Font font) throws IllegalArgumentException, IllegalAccessException, SecurityException, NoSuchFieldException, ClassNotFoundException, InvocationTargetException, NoSuchMethodException Get fonFile- Parameters:
font-Font- Returns:
- Font
File - Throws:
IllegalArgumentExceptionIllegalAccessExceptionSecurityExceptionNoSuchFieldExceptionClassNotFoundExceptionNoSuchMethodExceptionInvocationTargetException
-
getCustomFonts
-
getCustomFontsPath
-