Package org.faceless.pdf2
Interface OpenTypeFont.SVG
-
- Enclosing class:
- OpenTypeFont
public static interface OpenTypeFont.SVG
A system interface to provide an SVG parser for SVG-format fonts. Not for public use
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PDFCanvas
generate(String svg, int em, int ax, int ay, Color currentColor, Rectangle2D bounds, OpenTypeFont.Palette palette)
Generate a PDFCanvas from the supplied SVG.
-
-
-
Method Detail
-
generate
PDFCanvas generate(String svg, int em, int ax, int ay, Color currentColor, Rectangle2D bounds, OpenTypeFont.Palette palette) throws IOException
Generate a PDFCanvas from the supplied SVG. The canvas should be on a scale of (1000,1000) and begin with a "d0" operator- Parameters:
svg
- the SVG text from the fontem
- the unitsPerEm from the font, typically 1000 or 2048ax
- the horizontal advanceay
- the vertical advancebounds
- the bounds of the glyphpalette
- if not null, the palette that should be used for var() colors- Returns:
- a PDFCanvas
- Throws:
IOException
-
-