public class FontEnvironment
extends java.lang.Object
Constructor and Description |
---|
FontEnvironment() |
Modifier and Type | Method and Description |
---|---|
static FontEnvironment |
get() |
java.lang.ClassLoader[] |
getFontClassLoaders() |
java.io.File[] |
getFontDirectories() |
java.io.File[] |
getFontFiles() |
java.io.File[] |
getSystemFontDirectories()
This method determines the system's font directories.
|
protected void |
loadFontClassLoader(de.intarsys.cwt.freetype.Library library,
java.lang.ClassLoader loader) |
protected void |
loadFontDirectory(de.intarsys.cwt.freetype.Library library,
java.io.File directory) |
protected void |
loadFontFile(de.intarsys.cwt.freetype.Library library,
java.io.File file) |
protected void |
loadFontMapClassLoader(de.intarsys.cwt.freetype.Library library,
java.lang.ClassLoader loader) |
protected IFont |
loadFontUnchecked(de.intarsys.cwt.freetype.Library library,
java.lang.String filepath) |
protected void |
loadSystemFonts(de.intarsys.cwt.freetype.Library library) |
protected void |
loadUserFonts(de.intarsys.cwt.freetype.Library library) |
protected void |
parseMaps(de.intarsys.cwt.freetype.Library library,
java.lang.ClassLoader loader,
java.io.InputStream is) |
protected void |
processFontFile(de.intarsys.cwt.freetype.Library library,
java.io.File file) |
protected void |
processFontMap(de.intarsys.cwt.freetype.Library library,
java.lang.ClassLoader loader,
java.lang.String map) |
void |
registerFontClassLoader(java.lang.ClassLoader loader) |
void |
registerFontDirectory(java.io.File directory) |
void |
registerFontFile(java.io.File file) |
boolean |
registerSystemFonts() |
boolean |
registerUserFonts() |
static void |
set(FontEnvironment environment) |
public static FontEnvironment get()
public static void set(FontEnvironment environment)
public java.lang.ClassLoader[] getFontClassLoaders()
public java.io.File[] getFontDirectories()
public java.io.File[] getFontFiles()
public java.io.File[] getSystemFontDirectories()
protected void loadFontClassLoader(de.intarsys.cwt.freetype.Library library, java.lang.ClassLoader loader)
protected void loadFontDirectory(de.intarsys.cwt.freetype.Library library, java.io.File directory)
protected void loadFontFile(de.intarsys.cwt.freetype.Library library, java.io.File file)
protected void loadFontMapClassLoader(de.intarsys.cwt.freetype.Library library, java.lang.ClassLoader loader)
protected IFont loadFontUnchecked(de.intarsys.cwt.freetype.Library library, java.lang.String filepath)
protected void loadSystemFonts(de.intarsys.cwt.freetype.Library library)
protected void loadUserFonts(de.intarsys.cwt.freetype.Library library)
protected void parseMaps(de.intarsys.cwt.freetype.Library library, java.lang.ClassLoader loader, java.io.InputStream is) throws java.io.IOException
java.io.IOException
protected void processFontFile(de.intarsys.cwt.freetype.Library library, java.io.File file) throws java.io.IOException
java.io.IOException
protected void processFontMap(de.intarsys.cwt.freetype.Library library, java.lang.ClassLoader loader, java.lang.String map) throws java.io.IOException
java.io.IOException
public void registerFontClassLoader(java.lang.ClassLoader loader)
public void registerFontDirectory(java.io.File directory)
public void registerFontFile(java.io.File file)
public boolean registerSystemFonts()
public boolean registerUserFonts()