Save This Page
Home » iText-src-2.1.3 » com.lowagie » text » [javadoc | source]
com.lowagie.text
public class: FontFactoryImp [javadoc | source]
java.lang.Object
   com.lowagie.text.FontFactoryImp
If you are using True Type fonts, you can declare the paths of the different ttf- and ttc-files to this class first and then create fonts in your code using one of the getFont method without having to enter a path as parameter.
Field Summary
public  String defaultEncoding    This is the default encoding to use. 
public  boolean defaultEmbedding    This is the default value of the embedded variable. 
Constructor:
 public FontFactoryImp() 
Method from com.lowagie.text.FontFactoryImp Summary:
getFont,   getFont,   getFont,   getFont,   getFont,   getFont,   getFont,   getFont,   getFont,   getFont,   getFont,   getFont,   getFont,   getFont,   getFont,   getRegisteredFamilies,   getRegisteredFonts,   isRegistered,   register,   register,   registerDirectories,   registerDirectory,   registerDirectory,   registerFamily
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.lowagie.text.FontFactoryImp Detail:
 public Font getFont(Properties attributes) 
    Constructs a Font-object.
 public Font getFont(String fontname) 
    Constructs a Font-object.
 public Font getFont(String fontname,
    String encoding) 
    Constructs a Font-object.
 public Font getFont(String fontname,
    float size) 
    Constructs a Font-object.
 public Font getFont(String fontname,
    String encoding,
    boolean embedded) 
    Constructs a Font-object.
 public Font getFont(String fontname,
    String encoding,
    float size) 
    Constructs a Font-object.
 public Font getFont(String fontname,
    float size,
    Color color) 
    Constructs a Font-object.
 public Font getFont(String fontname,
    float size,
    int style) 
    Constructs a Font-object.
 public Font getFont(String fontname,
    String encoding,
    boolean embedded,
    float size) 
    Constructs a Font-object.
 public Font getFont(String fontname,
    String encoding,
    float size,
    int style) 
    Constructs a Font-object.
 public Font getFont(String fontname,
    float size,
    int style,
    Color color) 
    Constructs a Font-object.
 public Font getFont(String fontname,
    String encoding,
    boolean embedded,
    float size,
    int style) 
    Constructs a Font-object.
 public Font getFont(String fontname,
    String encoding,
    float size,
    int style,
    Color color) 
    Constructs a Font-object.
 public Font getFont(String fontname,
    String encoding,
    boolean embedded,
    float size,
    int style,
    Color color) 
    Constructs a Font-object.
 public Font getFont(String fontname,
    String encoding,
    boolean embedded,
    float size,
    int style,
    Color color,
    boolean cached) 
    Constructs a Font-object.
 public Set getRegisteredFamilies() 
    Gets a set of registered fontnames.
 public Set getRegisteredFonts() 
    Gets a set of registered fontnames.
 public boolean isRegistered(String fontname) 
    Checks if a certain font is registered.
 public  void register(String path) 
    Register a ttf- or a ttc-file.
 public  void register(String path,
    String alias) 
    Register a font file and use an alias for the font contained in it.
 public int registerDirectories() 
    Register fonts in some probable directories. It usually works in Windows, Linux and Solaris.
 public int registerDirectory(String dir) 
    Register all the fonts in a directory.
 public int registerDirectory(String dir,
    boolean scanSubdirectories) 
    Register all the fonts in a directory and possibly its subdirectories.
 public  void registerFamily(String familyName,
    String fullName,
    String path) 
    Register a font by giving explicitly the font family and name.