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 @Nullable SWTFSFont
resolveFont
(SharedContext ctx, String font, float size, @Nullable IdentValue weight, @Nullable IdentValue style, @Nullable IdentValue variant) @Nullable FSFont
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)
-