Package org.xhtmlrenderer.swt
Class SWTFontResolver
java.lang.Object
org.xhtmlrenderer.swt.SWTFontResolver
- All Implemented Interfaces:
FontResolver
Resolve font the SWT way.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
private static String
getFontInstanceHashName
(String name, int size, IdentValue weight, IdentValue style, IdentValue variant) private SWTFSFont
resolveFont
(SharedContext ctx, String font, float size, IdentValue weight, IdentValue style, IdentValue variant) resolveFont
(SharedContext renderingContext, FontSpecification spec)
-
Field Details
-
_device
private final org.eclipse.swt.graphics.Device _device -
_pointsPerPixel
private final float _pointsPerPixel -
_instance_hash
-
_default_fonts
-
_system_font
-
_defaults_serif
-
_defaults_monospace
-
-
Constructor Details
-
SWTFontResolver
public SWTFontResolver(org.eclipse.swt.graphics.Device device)
-
-
Method Details
-
flushCache
public void flushCache()- Specified by:
flushCache
in interfaceFontResolver
-
getFontInstanceHashName
private static String getFontInstanceHashName(String name, int size, IdentValue weight, IdentValue style, IdentValue variant)
-