com.levigo.jadice.document.fontmgr
Class FontManagerFactory

java.lang.Object
  extended by com.levigo.jadice.document.fontmgr.FontManagerFactory

public class FontManagerFactory
extends Object


Method Summary
protected static boolean addIfExists(List<File> directories, String p)
           
static FontManagerHandle create(File... directories)
           
static FontManagerHandle create(File[] directories, boolean forceCacheRebuild)
           
static FontManagerHandle create(File[] directories, boolean forceCacheRebuild, boolean runAsync)
           
static FontManagerHandle getDefaultInstance()
           
static File[] getMacOSXFontDirectories()
           
static File[] getWindowsFontDirectories()
           
static File[] parseFontconfig(File fontConfigFile)
          Parses a fontconfig configuration file (XML based).
static File[] parseFontconfig(URL fontConfigURL)
           
static void setDefaultInstance(FontManagerHandle defaultInstance)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDefaultInstance

public static FontManagerHandle getDefaultInstance()

setDefaultInstance

public static void setDefaultInstance(FontManagerHandle defaultInstance)

create

public static FontManagerHandle create(File... directories)

create

public static FontManagerHandle create(File[] directories,
                                       boolean forceCacheRebuild)

create

public static FontManagerHandle create(File[] directories,
                                       boolean forceCacheRebuild,
                                       boolean runAsync)

getWindowsFontDirectories

public static File[] getWindowsFontDirectories()

getMacOSXFontDirectories

public static File[] getMacOSXFontDirectories()

parseFontconfig

public static File[] parseFontconfig(File fontConfigFile)
                              throws IOException,
                                     IllegalArgumentException
Parses a fontconfig configuration file (XML based). The implementation follows the rules defined at: http://www.freedesktop.org/software/fontconfig/fontconfig-user.html

Parameters:
fontConfigFile - the path to the fontconfig configuration xml file.
Returns:
a list of configured directories.
Throws:
IOException - when failing to read the configuration file
IllegalArgumentException - when fontConfigFile is null

parseFontconfig

public static File[] parseFontconfig(URL fontConfigURL)
                              throws IOException,
                                     IllegalArgumentException
Throws:
IOException
IllegalArgumentException

addIfExists

protected static boolean addIfExists(List<File> directories,
                                     String p)


Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.