Class FontEnvironment

java.lang.Object
de.intarsys.cwt.font.FontEnvironment

public class FontEnvironment extends Object
  • Constructor Details

    • FontEnvironment

      public FontEnvironment()
  • Method Details

    • get

      public static FontEnvironment get()
    • set

      public static void set(FontEnvironment environment)
    • getFontClassLoaders

      public ClassLoader[] getFontClassLoaders()
    • getFontDirectories

      public File[] getFontDirectories()
    • getFontFiles

      public File[] getFontFiles()
    • getSystemFontDirectories

      public File[] getSystemFontDirectories()
      This method determines the system's font directories.
      Returns:
      an array containing the font directory paths found on the local system
    • loadFontClassLoader

      protected void loadFontClassLoader(de.intarsys.cwt.freetype.Library library, ClassLoader loader)
    • loadFontDirectory

      protected void loadFontDirectory(de.intarsys.cwt.freetype.Library library, File directory)
    • loadFontFile

      protected void loadFontFile(de.intarsys.cwt.freetype.Library library, File file)
    • loadFontMapClassLoader

      protected void loadFontMapClassLoader(de.intarsys.cwt.freetype.Library library, ClassLoader loader)
    • loadFontUnchecked

      protected IFont loadFontUnchecked(de.intarsys.cwt.freetype.Library library, String filepath)
    • 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

      public void registerFontClassLoader(ClassLoader loader)
    • registerFontDirectory

      public void registerFontDirectory(File directory)
    • registerFontFile

      public void registerFontFile(File file)
    • registerSystemFonts

      public boolean registerSystemFonts()
    • registerUserFonts

      public boolean registerUserFonts()