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.
| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| private static class | |
| private static class | |
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private String[] | |
| private Font[] | |
| private ArrayList | |
| protected static final int | |
| private CompositeFont[] | |
| private ConcurrentHashMap | |
| private Hashtable | |
| private Hashtable | |
| private int | |
| private String | |
| private String | |
| private PhysicalFont | |
| private final ConcurrentHashMap | |
| private boolean | |
| private HashMap | |
| pack-priv Thread | |
| private static Font2DHandle | |
| private FontConfiguration | |
| protected FileFont[] | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| private ConcurrentHashMap | |
| protected String | |
| private boolean | |
| private HashMap | |
| private HashMap | |
| protected ConcurrentHashMap | |
| private static boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| private final ConcurrentHashMap | |
| private static HashSet | |
| public static String | |
| public static String | |
| pack-priv String[] | |
| private Locale | |
| private int | |
| private boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| private HashMap | |
| pack-priv static boolean | |
| private int | |
| private static int | |
| private static HashSet | |
| pack-priv boolean | |
| public static boolean | |
| private String[] | |
| private ConcurrentHashMap | |
| pack-priv static volatile HashMap | |
| private static final Object | |
| protected HashSet | |
| private ConcurrentHashMap | |
| private static String[] | |
| private static Locale | systemLocale
Default locale can be changed but we need to know the initial locale as that is what is used by native code. |
| private static final FilenameFilter | |
| pack-priv Vector | |
| private static final FilenameFilter |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | addDirFonts(String dirName, File dirFile, FilenameFilter filter, int fontFormat, boolean useJavaRasterizer, int fontRank, boolean defer, boolean resolveSymLinks)
|
| protected void | addFontToPlatformFontPath(String platformFontName)
Notifies graphics environment that the logical font configuration uses the given platform font name. |
| protected void | |
| protected PhysicalFont | |
| protected void | |
| pack-priv void | |
| private synchronized void | checkForUnreferencedFontFiles()
In some cases windows may have fonts in the fonts folder that don't show up in the registry or in the GDI calls to enumerate fonts. |
| public void | createCompositeFonts(ConcurrentHashMap<String, Font2D> altNameCache, boolean preferLocale, boolean preferProportional)
|
| public Font2D[] | createFont2D(File fontFile, int fontFormat, boolean all, boolean isCopy)
Implements sun. Creates a Font2D for the specified font file, that is expected to be in the specified font format (according to the constants in java.awt.Font). |
| protected abstract FontConfiguration | |
| public abstract FontConfiguration | |
| public synchronized void | |
| private static String | |
| private PhysicalFont | |
| public Font2D | findFont2D(String name, int style, int fallback)
Implements sun. The client supplies a name and a style. |
| private Font2D | |
| private Font2D | |
| pack-priv Font2D | |
| pack-priv PhysicalFont | |
| private PhysicalFont | |
| private static boolean | |
| public Font[] | getAllInstalledFonts()
Implements sun. Returns all fonts installed in this environment. |
| public TreeMap | getCreatedFontFamilyNames()
Implements sun. Similar to getCreatedFonts, but returns a TreeMap of fonts by family name. |
| public Font[] | getCreatedFonts()
Implements sun. Return an array of created Fonts, or null, if no fonts were created yet. |
| 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 Font2D | |
| public PhysicalFont | |
| protected abstract String[] | |
| public TrueTypeFont | |
| public boolean | |
| public String | |
| protected String | getFileNameFromPlatformName(String platformFontName)
Returns a file name for the physical font represented by this platform font name. |
| protected FontUIResource | |
| public FontConfiguration | getFontConfiguration()
Implements sun. Return the default font configuration. |
| private String[] | |
| protected String[] | |
| protected abstract String | |
| public synchronized String | |
| private synchronized HashMap | |
| public String[] | Returns: list of installed fonts in the system.Implements sun. Get a list of installed fonts in the requested |
| private static HashSet | |
| public static SunFontManager | |
| public static final String | getJDKFontDir()
If the module image layout changes the location of JDK fonts, this will be updated to reflect that. |
| protected void | |
| protected String[] | |
| public Font2DHandle | getNewComposite(String family, int style, Font2DHandle handle)
Implements sun. Creates a derived composite font from the specified font (handle). |
| public int | |
| private String | |
| protected PhysicalFont[] | |
| protected String[] | |
| public String | |
| public PhysicalFont | |
| public Font2D[] | |
| private static Locale | |
| public FilenameFilter | |
| public FilenameFilter | |
| public boolean | |
| private void | |
| public synchronized PhysicalFont | |
| protected synchronized void | |
| private static native void | |
| private static void | |
| public boolean | |
| private boolean | |
| public boolean | |
| public void | |
| protected void | |
| private synchronized void | |
| private void | |
| protected void | |
| public HashMap | |
| public synchronized void | preferLocaleFonts()
Implements sun. Indicates a preference for locale-specific fonts in the mapping of logical fonts to physical fonts. |
| public synchronized void | preferProportionalFonts()
Implements sun. preferLocaleFonts() and preferProportionalFonts() are called to inform that the application could be using an alternate set of composite fonts, and so the implementation should try to create a CompositeFonts with this directive in mind. |
| public void | |
| 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 | |
| public boolean | |
| protected void | |
| protected void | |
| public PhysicalFont | registerFontFile(String fileName, String[] nativeNames, int fontFormat, boolean useJavaRasterizer, int fontRank)
|
| private PhysicalFont | |
| protected void | |
| public void | registerFonts(String[] fileNames, String[][] nativeNames, int fontCount, int fontFormat, boolean useJavaRasterizer, int fontRank, boolean defer)
|
| public void | |
| protected void | registerFontsInDir(String dirName, boolean useJavaRasterizer, int fontRank, boolean defer, boolean resolveSymLinks)
|
| private void | registerFontsOnPath(String pathName, boolean useJavaRasterizer, int fontRank, boolean defer, boolean resolveSymLinks)
|
| protected void | |
| protected void | |
| private void | |
| public synchronized void | |
| private void | |
| private void | |
| protected boolean | |
| public synchronized void | |
| public boolean | |
| public boolean |