Package de.intarsys.cwt.font
Class FontEnvironment
java.lang.Object
de.intarsys.cwt.font.FontEnvironment
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FontEnvironment
get()
File[]
File[]
File[]
This method determines the system's font directories.protected void
loadFontClassLoader
(de.intarsys.cwt.freetype.Library library, ClassLoader loader) protected void
loadFontDirectory
(de.intarsys.cwt.freetype.Library library, File directory) protected void
loadFontFile
(de.intarsys.cwt.freetype.Library library, File file) protected void
loadFontMapClassLoader
(de.intarsys.cwt.freetype.Library library, ClassLoader loader) protected IFont
loadFontUnchecked
(de.intarsys.cwt.freetype.Library library, 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, ClassLoader loader, InputStream is) protected void
processFontFile
(de.intarsys.cwt.freetype.Library library, File file) protected void
processFontMap
(de.intarsys.cwt.freetype.Library library, ClassLoader loader, String map) void
registerFontClassLoader
(ClassLoader loader) void
registerFontDirectory
(File directory) void
registerFontFile
(File file) boolean
boolean
static void
set
(FontEnvironment environment)
-
Constructor Details
-
FontEnvironment
public FontEnvironment()
-
-
Method Details
-
get
-
set
-
getFontClassLoaders
-
getFontDirectories
-
getFontFiles
-
getSystemFontDirectories
This method determines the system's font directories.- Returns:
- an array containing the font directory paths found on the local system
-
loadFontClassLoader
-
loadFontDirectory
-
loadFontFile
-
loadFontMapClassLoader
-
loadFontUnchecked
-
loadSystemFonts
protected void loadSystemFonts(de.intarsys.cwt.freetype.Library library) -
loadUserFonts
protected void loadUserFonts(de.intarsys.cwt.freetype.Library library) -
parseMaps
protected void parseMaps(de.intarsys.cwt.freetype.Library library, ClassLoader loader, InputStream is) throws IOException - Throws:
IOException
-
processFontFile
protected void processFontFile(de.intarsys.cwt.freetype.Library library, File file) throws IOException - Throws:
IOException
-
processFontMap
protected void processFontMap(de.intarsys.cwt.freetype.Library library, ClassLoader loader, String map) throws IOException - Throws:
IOException
-
registerFontClassLoader
-
registerFontDirectory
-
registerFontFile
-
registerSystemFonts
public boolean registerSystemFonts() -
registerUserFonts
public boolean registerUserFonts()
-