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 Detail

      • generate

        PDFCanvas generate​(java.lang.String svg,
                           int em,
                           int ax,
                           int ay,
                           java.awt.Color currentColor,
                           java.awt.geom.Rectangle2D bounds,
                           OpenTypeFont.Palette palette)
                    throws java.io.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 font
        em - the unitsPerEm from the font, typically 1000 or 2048
        ax - the horizontal advance
        ay - the vertical advance
        bounds - the bounds of the glyph
        palette - if not null, the palette that should be used for var() colors
        Returns:
        a PDFCanvas
        Throws:
        java.io.IOException