Save This Page
Home » openjdk-7 » sun » font » [javadoc | source]
sun.font
abstract public class: SunFontManager [javadoc | source]
java.lang.Object
   sun.font.SunFontManager

All Implemented Interfaces:
    FontManagerForSGE, FontSupport

Direct Known Subclasses:
    X11FontManager, Win32FontManager

The base implementation of the FontManager interface. It implements the platform independent, shared parts of OpenJDK's FontManager implementations. The platform specific parts are declared as abstract methods that have to be implemented by specific implementations.
Nested Class Summary:
public static class  SunFontManager.FamilyDescription   
Field Summary
public static final  int FONTFORMAT_NONE     
public static final  int FONTFORMAT_TRUETYPE     
public static final  int FONTFORMAT_TYPE1     
public static final  int FONTFORMAT_T2K     
public static final  int FONTFORMAT_TTC     
public static final  int FONTFORMAT_COMPOSITE     
public static final  int FONTFORMAT_NATIVE     
static  boolean longAddresses     
 boolean loadedAllFonts     
 boolean loadedAllFontFiles     
 HashMap<String, String> jreFontMap     
 HashSet<String> jreLucidaFontFiles     
 String[] jreOtherFontFiles     
 boolean noOtherJREFontFiles     
public static final  String lucidaFontName     
public static  String jreLibDirName     
public static  String jreFontDirName     
protected  HashSet registeredFontFiles     
protected  String fontPath     
public static  boolean noType1Font     
static  HashMap<String, FamilyDescription> platformFontMap     
 Vector<File> tmpFontFiles     
Constructor:
 protected SunFontManager() 
Method from sun.font.SunFontManager Summary:
addFontToPlatformFontPath,   addToMissingFontFileList,   addToPool,   createCompositeFonts,   createFont2D,   createFontConfiguration,   createFontConfiguration,   deRegisterBadFont,   findFont2D,   findFontFromPlatformMap,   findJREDeferredFont,   getAllInstalledFonts,   getCreatedFontFamilyNames,   getCreatedFonts,   getDefaultFontFaceName,   getDefaultFontFile,   getDefaultLogicalFont,   getDefaultPhysicalFont,   getDefaultPlatformFont,   getEUDCFont,   getFamilyNamesFromPlatform,   getFileNameForFontName,   getFileNameFromPlatformName,   getFontConfigFUIR,   getFontConfiguration,   getFontNamesFromPlatform,   getFontPath,   getFullNameByFileName,   getInstalledFontFamilyNames,   getInstance,   getJREFontFamilyNames,   getNativeNames,   getNewComposite,   getNumFonts,   getPhysicalFonts,   getPlatformFontDirs,   getPlatformFontPath,   getRegisteredFontFile,   getRegisteredFonts,   getTrueTypeFilter,   getType1Filter,   gotFontsFromPlatform,   initialiseDeferredFont,   initialiseDeferredFonts,   isDeferredFont,   isOpenJDK,   isRegisteredFontFile,   loadFontFiles,   loadFonts,   maybeUsingAlternateCompositeFonts,   populateFontFileNameMap,   populateHardcodedFileNameMap,   preferLocaleFonts,   preferProportionalFonts,   register1dot0Fonts,   registerCompositeFont,   registerCompositeFont,   registerDeferredFont,   registerDeferredJREFonts,   registerFont,   registerFontDir,   registerFontDirs,   registerFontFile,   registerFontFile,   registerFonts,   registerFontsInDir,   registerOtherFontFiles,   registerPlatformFontsUsedByFontConfiguration,   replaceFont,   useAbsoluteFontFileNames,   useAlternateFontforJALocales,   usePlatformFontMetrics,   usingAlternateCompositeFonts,   usingAlternateFontforJALocales,   usingPerAppContextComposites
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from sun.font.SunFontManager Detail:
 protected  void addFontToPlatformFontPath(String platformFontName) 
    Notifies graphics environment that the logical font configuration uses the given platform font name. The graphics environment may use this for platform specific initialization.
 protected  void addToMissingFontFileList(String fileName) 
  void addToPool(FileFont font) 
 public  void createCompositeFonts(ConcurrentHashMap<String, Font2D> altNameCache,
    boolean preferLocale,
    boolean preferProportional) 
 public Font2D createFont2D(File fontFile,
    int fontFormat,
    boolean isCopy,
    CreatedFontTracker tracker) throws FontFormatException 
 abstract protected FontConfiguration createFontConfiguration()
    Creates this environment's FontConfiguration.
 abstract public FontConfiguration createFontConfiguration(boolean preferLocaleFonts,
    boolean preferPropFonts)
 public synchronized  void deRegisterBadFont(Font2D font2D) 
 public Font2D findFont2D(String name,
    int style,
    int fallback) 
 Font2D findFontFromPlatformMap(String lcName,
    int style) 
 public PhysicalFont findJREDeferredFont(String name,
    int style) 
 public Font[] getAllInstalledFonts() 
    Returns all fonts installed in this environment.
 public TreeMap<String, String> getCreatedFontFamilyNames() 
 public Font[] getCreatedFonts() 
 public synchronized String getDefaultFontFaceName() 
    Returns face name for default font, or null if no face names are used for CompositeFontDescriptors for this platform.
 public synchronized String getDefaultFontFile() 
    Returns file name for default font, either absolute or relative as needed by registerFontFile.
 public CompositeFont getDefaultLogicalFont(int style) 
 public PhysicalFont getDefaultPhysicalFont() 
 abstract public String[] getDefaultPlatformFont()
    Returns an array of two strings. The first element is the name of the font. The second element is the file name.
 public TrueTypeFont getEUDCFont() 
 public boolean getFamilyNamesFromPlatform(TreeMap<String, String> familyNames,
    Locale requestedLocale) 
 public String getFileNameForFontName(String fontName) 
 protected String getFileNameFromPlatformName(String platformFontName) 
    Returns a file name for the physical font represented by this platform font name. The default implementation tries to obtain the file name from the font configuration. Subclasses may override to provide information from other sources.
 protected FontUIResource getFontConfigFUIR(String family,
    int style,
    int size) 
 public FontConfiguration getFontConfiguration() 
    Return the default font configuration.
 protected String[] getFontNamesFromPlatform() 
 abstract protected String getFontPath(boolean noType1Fonts)
 public synchronized String getFullNameByFileName(String fileName) 
 public String[] getInstalledFontFamilyNames(Locale requestedLocale) 
    Get a list of installed fonts in the requested Locale . The list contains the fonts Family Names. If Locale is null, the default locale is used.
 public static SunFontManager getInstance() 
    Returns the global SunFontManager instance. This is similar to FontManagerFactory#getInstance() but it returns a SunFontManager instance instead. This is only used in internal classes where we can safely assume that a SunFontManager is to be used.
 protected  void getJREFontFamilyNames(TreeMap<String, String> familyNames,
    Locale requestedLocale) 
 protected String[] getNativeNames(String fontFileName,
    String platformName) 
 public Font2DHandle getNewComposite(String family,
    int style,
    Font2DHandle handle) 
    This method is provided for internal and exclusive use by Swing.
 public int getNumFonts() 
 protected PhysicalFont[] getPhysicalFonts() 
 protected String[] getPlatformFontDirs(boolean noType1Fonts) 
 public String getPlatformFontPath(boolean noType1Font) 
 public PhysicalFont getRegisteredFontFile(String name) 
 public Font2D[] getRegisteredFonts() 
 public FilenameFilter getTrueTypeFilter() 
 public FilenameFilter getType1Filter() 
 public boolean gotFontsFromPlatform() 
 public synchronized PhysicalFont initialiseDeferredFont(String fileNameKey) 
 protected synchronized  void initialiseDeferredFonts() 
 public boolean isDeferredFont(String fileName) 
 public static boolean isOpenJDK() 
 public boolean isRegisteredFontFile(String name) 
 public  void loadFontFiles() 
 protected  void loadFonts() 
 public boolean maybeUsingAlternateCompositeFonts() 
 protected  void populateFontFileNameMap(HashMap<String, String> fontToFileMap,
    HashMap<String, String> fontToFamilyNameMap,
    HashMap<String> familyToFontListMap,
    Locale locale) 
 public HashMap<String, FamilyDescription> populateHardcodedFileNameMap() 
    default implementation does nothing.
 public synchronized  void preferLocaleFonts() 
 public synchronized  void preferProportionalFonts() 
 public  void register1dot0Fonts() 
 protected  void registerCompositeFont(String compositeName,
    String[] componentFileNames,
    String[] componentNames,
    int numMetricsSlots,
    int[] exclusionRanges,
    int[] exclusionMaxIndex,
    boolean defer) 
 protected static  void registerCompositeFont(String compositeName,
    String[] componentFileNames,
    String[] componentNames,
    int numMetricsSlots,
    int[] exclusionRanges,
    int[] exclusionMaxIndex,
    boolean defer,
    ConcurrentHashMap<String, Font2D> altNameCache) 
 public  void registerDeferredFont(String fileNameKey,
    String fullPathName,
    String[] nativeNames,
    int fontFormat,
    boolean useJavaRasterizer,
    int fontRank) 
 protected synchronized  void registerDeferredJREFonts(String jreDir) 
 public boolean registerFont(Font font) 
 protected  void registerFontDir(String path) 
 protected  void registerFontDirs(String pathName) 
 protected  void registerFontFile(String fontFileName,
    String[] nativeNames,
    int fontRank,
    boolean defer) 
 public PhysicalFont registerFontFile(String fileName,
    String[] nativeNames,
    int fontFormat,
    boolean useJavaRasterizer,
    int fontRank) 
 public  void registerFonts(String[] fileNames,
    String[][] nativeNames,
    int fontCount,
    int fontFormat,
    boolean useJavaRasterizer,
    int fontRank,
    boolean defer) 
 public  void registerFontsInDir(String dirName) 
 protected  void registerOtherFontFiles(HashSet registeredFontFiles) 
 protected  void registerPlatformFontsUsedByFontConfiguration() 
 public synchronized  void replaceFont(PhysicalFont oldFont,
    PhysicalFont newFont) 
 protected boolean useAbsoluteFontFileNames() 
    Whether registerFontFile expects absolute or relative font file names.
 public synchronized  void useAlternateFontforJALocales() 
 public boolean usePlatformFontMetrics() 
 public boolean usingAlternateCompositeFonts() 
 public boolean usingAlternateFontforJALocales() 
 public boolean usingPerAppContextComposites()