Style Intelligence v12.0

inetsoft.report.pdf
Class FontManager

java.lang.Object
  extended by inetsoft.report.pdf.FontManager

public class FontManager
extends Object

Font manager loads font information from TrueType or AFM files. It can be used to get FontMetrics for a font. The truetype fonts are retrieved from the path specified in the "font.truetype.path" property. The AFM fonts are retrieved from the path specified in the "font.afm.path" property.


Method Summary
 boolean exists(String fontin)
          Check whether the font exists in the FontManager.
static FontManager getFontManager()
          Get a FontManager instance.
 FontMetrics getFontMetrics(Font font)
          Get the font metrics for the specified font.
protected  inetsoft.report.pdf.FontInfo loadFontInfo(String font)
          Load font information.
 void putFontName(String javaName, String psFontName)
          Add the mapping for the pdf font name corresponding to the Java font name.
 void refresh()
          Refresh the font manager.
 boolean shouldRefresh()
          Test if should refresh the font manager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getFontManager

public static FontManager getFontManager()
Get a FontManager instance.


shouldRefresh

public boolean shouldRefresh()
Test if should refresh the font manager.

Returns:
true if should, false otherwise

refresh

public void refresh()
Refresh the font manager.


getFontMetrics

public FontMetrics getFontMetrics(Font font)
Get the font metrics for the specified font.


putFontName

public void putFontName(String javaName,
                        String psFontName)
Add the mapping for the pdf font name corresponding to the Java font name.

Parameters:
javaName - Java font name.
psFontName - mapped to font name.

exists

public boolean exists(String fontin)
Check whether the font exists in the FontManager.


loadFontInfo

protected inetsoft.report.pdf.FontInfo loadFontInfo(String font)
                                             throws IOException
Load font information.

Throws:
IOException

Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.