Package com.openhtmltopdf.svgsupport
Class PDFTranscoder.OpenHtmlFontResolver
java.lang.Object
com.openhtmltopdf.svgsupport.PDFTranscoder.OpenHtmlFontResolver
- All Implemented Interfaces:
org.apache.batik.bridge.FontFamilyResolver
- Enclosing class:
PDFTranscoder
public static class PDFTranscoder.OpenHtmlFontResolver
extends Object
implements org.apache.batik.bridge.FontFamilyResolver
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
addFontFaceFont
(String fontFamilyNameOverride, IdentValue fontWeightOverride, IdentValue fontStyleOverride, String uri, byte[] font1) void
addFontFile
(File fontFile, String family, Integer weight, BaseRendererBuilder.FontStyle style) org.apache.batik.gvt.font.GVTFontFamily
org.apache.batik.gvt.font.GVTFontFamily
getFamilyThatCanDisplay
(char arg0) private Float
getStyle
(IdentValue fontStyle) private Float
private Float
getWeight
(IdentValue weight) private Float
void
importFontFaces
(List<FontFaceRule> fontFaces, SharedContext ctx) org.apache.batik.gvt.font.GVTFontFamily
loadFont
(InputStream arg0, org.apache.batik.bridge.FontFace arg1) org.apache.batik.gvt.font.GVTFontFamily
org.apache.batik.gvt.font.GVTFontFamily
-
Field Details
-
families
-
-
Constructor Details
-
OpenHtmlFontResolver
public OpenHtmlFontResolver()
-
-
Method Details
-
resolve
public org.apache.batik.gvt.font.GVTFontFamily resolve(String arg0, org.apache.batik.bridge.FontFace arg1) - Specified by:
resolve
in interfaceorg.apache.batik.bridge.FontFamilyResolver
-
resolve
- Specified by:
resolve
in interfaceorg.apache.batik.bridge.FontFamilyResolver
-
loadFont
public org.apache.batik.gvt.font.GVTFontFamily loadFont(InputStream arg0, org.apache.batik.bridge.FontFace arg1) throws Exception - Specified by:
loadFont
in interfaceorg.apache.batik.bridge.FontFamilyResolver
- Throws:
Exception
-
getFamilyThatCanDisplay
public org.apache.batik.gvt.font.GVTFontFamily getFamilyThatCanDisplay(char arg0) - Specified by:
getFamilyThatCanDisplay
in interfaceorg.apache.batik.bridge.FontFamilyResolver
-
getDefault
public org.apache.batik.gvt.font.GVTFontFamily getDefault()- Specified by:
getDefault
in interfaceorg.apache.batik.bridge.FontFamilyResolver
-
getStyle
-
getStyle
-
getWeight
-
getWeight
-
addFontFaceFont
private void addFontFaceFont(String fontFamilyNameOverride, IdentValue fontWeightOverride, IdentValue fontStyleOverride, String uri, byte[] font1) throws FontFormatException - Throws:
FontFormatException
-
addFontFile
public void addFontFile(File fontFile, String family, Integer weight, BaseRendererBuilder.FontStyle style) throws IOException, FontFormatException - Throws:
IOException
FontFormatException
-