Class FontEnvironment


  • public class FontEnvironment
    extends java.lang.Object
    • Constructor Detail

      • FontEnvironment

        public FontEnvironment()
    • Method Detail

      • getFontClassLoaders

        public java.lang.ClassLoader[] getFontClassLoaders()
      • getFontDirectories

        public java.io.File[] getFontDirectories()
      • getFontFiles

        public java.io.File[] getFontFiles()
      • getSystemFontDirectories

        public java.io.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,
                                           java.lang.ClassLoader loader)
      • loadFontDirectory

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

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

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

        protected IFont loadFontUnchecked​(de.intarsys.cwt.freetype.Library library,
                                          java.lang.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,
                                 java.lang.ClassLoader loader,
                                 java.io.InputStream is)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • processFontFile

        protected void processFontFile​(de.intarsys.cwt.freetype.Library library,
                                       java.io.File file)
                                throws java.io.IOException
        Throws:
        java.io.IOException
      • processFontMap

        protected void processFontMap​(de.intarsys.cwt.freetype.Library library,
                                      java.lang.ClassLoader loader,
                                      java.lang.String map)
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • registerFontClassLoader

        public void registerFontClassLoader​(java.lang.ClassLoader loader)
      • registerFontDirectory

        public void registerFontDirectory​(java.io.File directory)
      • registerFontFile

        public void registerFontFile​(java.io.File file)
      • registerSystemFonts

        public boolean registerSystemFonts()
      • registerUserFonts

        public boolean registerUserFonts()