Class SVGAltGlyphHandler

    • Constructor Detail

      • SVGAltGlyphHandler

        public SVGAltGlyphHandler​(BridgeContext ctx,
                                  org.w3c.dom.Element textElement)
        Constructs an SVGAltGlyphHandler.
        Parameters:
        ctx - The bridge context, this is needed during rendering to find any referenced glyph elements.
        textElement - The element that contains text to be replaced by the alternate glyphs. This should be an altGlyph element.
    • Method Detail

      • createGlyphVector

        public GVTGlyphVector createGlyphVector​(java.awt.font.FontRenderContext frc,
                                                float fontSize,
                                                java.text.AttributedCharacterIterator aci)
        Creates a glyph vector containing the alternate glyphs.
        Specified by:
        createGlyphVector in interface AltGlyphHandler
        Parameters:
        frc - The current font render context.
        fontSize - The required font size.
        Returns:
        The GVTGlyphVector containing the alternate glyphs, or null if the alternate glyphs could not be found.