Class SVGFontElementBridge

java.lang.Object
org.apache.batik.bridge.AbstractSVGBridge
org.apache.batik.bridge.SVGFontElementBridge
All Implemented Interfaces:
Bridge, XMLConstants, CSSConstants, SVGConstants

public class SVGFontElementBridge extends AbstractSVGBridge
Bridge class for the <font> element.
Version:
$Id: SVGFontElementBridge.java 1805408 2017-08-18 12:21:52Z ssteiner $
  • Constructor Details

    • SVGFontElementBridge

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

    • getLocalName

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

      public SVGGVTFont createFont(BridgeContext ctx, Element fontElement, 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.