Class SVGFontElementBridge

    • Constructor Detail

      • SVGFontElementBridge

        public SVGFontElementBridge()
        Constructs a new bridge for the <font> element.
    • Method Detail

      • getLocalName

        public java.lang.String getLocalName()
        Returns 'font'.
      • createFont

        public SVGGVTFont createFont​(BridgeContext ctx,
                                     org.w3c.dom.Element fontElement,
                                     org.w3c.dom.Element textElement,
                                     float size,
                                     GVTFontFace fontFace)
        Constructs a new SVGGVTFont that represents the specified <font> element at the requested size.
        Parameters:
        ctx - The current bridge context.
        fontElement - The font element to base the SVGGVTFont construction on.
        textElement - The text element that will use the new font.
        size - The size of the new font.
        fontFace - The font face object that contains the font attributes.
        Returns:
        The new SVGGVTFont.