Class SVGGlyphElementBridge

    • Constructor Detail

      • SVGGlyphElementBridge

        protected SVGGlyphElementBridge()
        Constructs a new bridge for the <glyph> element.
    • Method Detail

      • getLocalName

        public java.lang.String getLocalName()
        Returns 'glyph'.
        Specified by:
        getLocalName in interface Bridge
      • createGlyph

        public Glyph createGlyph​(BridgeContext ctx,
                                 org.w3c.dom.Element glyphElement,
                                 org.w3c.dom.Element textElement,
                                 int glyphCode,
                                 float fontSize,
                                 GVTFontFace fontFace,
                                 TextPaintInfo tpi)
        Constructs a new Glyph that represents the specified <glyph> element at the requested size.
        Parameters:
        ctx - The current bridge context.
        glyphElement - The glyph element to base the glyph construction on.
        textElement - The textElement the glyph will be used for.
        glyphCode - The unique id to give to the new glyph.
        fontSize - The font size used to determine the size of the glyph.
        fontFace - The font face object that contains the font attributes.
        Returns:
        The new Glyph.