com.levigo.jadice.document.fontmgr
Class FontManagerFactory
java.lang.Object
com.levigo.jadice.document.fontmgr.FontManagerFactory
public class FontManagerFactory
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.