private static class FontManager.WorkArea
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.util.Map<java.lang.String,byte[]> |
customFontData
Custom font data
|
private FontDetails<?> |
defaultFixedFont
The default fixed font for this session.
|
private FontDetails<?> |
defaultFont
The default font for this session.
|
private java.util.Map<java.lang.String,FontManager.EnvironmentFontTable> |
envFontTables
A map of environment names to their associated font-table.
|
private java.util.Map<java.lang.String,FontDetails<?>> |
fontCache
A font-key to font details map, containing all the fonts loaded by this client.
|
private java.util.Map<Window<?>,java.util.Map<Widget,java.util.List<GuiFontResolver>>> |
fontResolvers
The registered font resolvers
|
private boolean |
initialized
Flag to track if the work area has been initialized.
|
private boolean |
isThreeD
Flag identifying if this session was started in 3d.
|
private java.util.Map<Widget,java.util.List<GuiFontResolver>> |
orphanFontResolvers
Collect font resolvers for those widgets that are moved to another hierarchy or
detached until they are destroyed or attached to new parent window.
|
private ServerExports |
server
The server exports.
|
private FontDetails<?>[] |
systemFonts
The system fonts for this session.
|
private java.util.Map<java.lang.String,int[]> |
textMetrics
A full text metrics from server.
|
private LRUCache<java.lang.String,int[]> |
textMetricsCache
A cache of text metrics.
|
private java.util.Map<Window<?>,FontManager.EnvironmentFontTable> |
windowFontTables
A map of window to its in-use environment, as when it was created.
|
| Constructor and Description |
|---|
WorkArea()
Create a new work-area.
|
| Modifier and Type | Method and Description |
|---|---|
FontDetails<?> |
createFont(FontDetails<?> details)
Create a new font, with the specified details.
|
void |
initialize(ServerExports server,
int textMetricsCacheSize)
Initialize this work area.
|
private final java.util.Map<java.lang.String,FontDetails<?>> fontCache
private final java.util.Map<Window<?>,FontManager.EnvironmentFontTable> windowFontTables
private final java.util.Map<java.lang.String,FontManager.EnvironmentFontTable> envFontTables
private final java.util.Map<Window<?>,java.util.Map<Widget,java.util.List<GuiFontResolver>>> fontResolvers
private final java.util.Map<Widget,java.util.List<GuiFontResolver>> orphanFontResolvers
private FontDetails<?> defaultFont
private FontDetails<?> defaultFixedFont
private FontDetails<?>[] systemFonts
private boolean isThreeD
true.private ServerExports server
private java.util.Map<java.lang.String,int[]> textMetrics
private LRUCache<java.lang.String,int[]> textMetricsCache
private boolean initialized
private java.util.Map<java.lang.String,byte[]> customFontData
public void initialize(ServerExports server, int textMetricsCacheSize)
server - Server exportstextMetricsCacheSize - TextMetrics cache size.public FontDetails<?> createFont(FontDetails<?> details)
It will access the server-side for details about the legacy metrics and/or custom definition.
details - The font specifications.FontDetails instance, with this font.