Package de.intarsys.cwt.font
Class FontEnvironment
java.lang.Object
de.intarsys.cwt.font.FontEnvironment
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FontEnvironmentget()File[]File[]File[]This method determines the system's font directories.protected voidloadFontClassLoader(de.intarsys.cwt.freetype.Library library, ClassLoader loader) protected voidloadFontDirectory(de.intarsys.cwt.freetype.Library library, File directory) protected voidloadFontFile(de.intarsys.cwt.freetype.Library library, File file) protected voidloadFontMapClassLoader(de.intarsys.cwt.freetype.Library library, ClassLoader loader) protected IFontloadFontUnchecked(de.intarsys.cwt.freetype.Library library, String filepath) protected voidloadSystemFonts(de.intarsys.cwt.freetype.Library library) protected voidloadUserFonts(de.intarsys.cwt.freetype.Library library) protected voidparseMaps(de.intarsys.cwt.freetype.Library library, ClassLoader loader, InputStream is) protected voidprocessFontFile(de.intarsys.cwt.freetype.Library library, File file) protected voidprocessFontMap(de.intarsys.cwt.freetype.Library library, ClassLoader loader, String map) voidregisterFontClassLoader(ClassLoader loader) voidregisterFontDirectory(File directory) voidregisterFontFile(File file) booleanbooleanstatic voidset(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()
-