Class Font

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    FontSystem

    public class Font
    extends SVGElement
    Implements an embedded font. SVG specification: http://www.w3.org/TR/SVG/fonts.html
    See Also:
    Serialized Form
    • Field Detail

      • horizOriginX

        int horizOriginX
      • horizOriginY

        int horizOriginY
      • horizAdvX

        int horizAdvX
      • vertOriginX

        int vertOriginX
      • vertOriginY

        int vertOriginY
      • vertAdvY

        int vertAdvY
      • glyphs

        final java.util.HashMap<java.lang.String,​SVGElement> glyphs
    • Constructor Detail

      • Font

        public Font()
        Creates a new instance of Font
    • Method Detail

      • build

        protected void build()
                      throws SVGException
        Description copied from class: SVGElement
        Called by internal processes to rebuild the geometry of this node from it's presentation attributes, style attributes and animated tracks.
        Overrides:
        build in class SVGElement
        Throws:
        SVGException
      • getFontFace

        public FontFace getFontFace()
      • setFontFace

        public void setFontFace​(FontFace face)
      • getGlyph

        public MissingGlyph getGlyph​(java.lang.String unicode)
      • getHorizOriginX

        public int getHorizOriginX()
      • getHorizOriginY

        public int getHorizOriginY()
      • getHorizAdvX

        public int getHorizAdvX()
      • getVertOriginX

        public int getVertOriginX()
      • getVertOriginY

        public int getVertOriginY()
      • getVertAdvY

        public int getVertAdvY()
      • updateTime

        public boolean updateTime​(double curTime)
                           throws SVGException
        Updates all attributes in this diagram associated with a time event. Ie, all attributes with track information.
        Specified by:
        updateTime in class SVGElement
        Returns:
        - true if this node has changed state as a result of the time update
        Throws:
        SVGException