Class FontFace

  • All Implemented Interfaces:
    java.io.Serializable

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

      • fontFamily

        java.lang.String fontFamily
      • unitsPerEm

        private int unitsPerEm
        Em size of coordinate system font is defined in
      • ascent

        private int ascent
      • descent

        private int descent
      • accentHeight

        private int accentHeight
      • underlinePosition

        private int underlinePosition
      • underlineThickness

        private int underlineThickness
      • strikethroughPosition

        private int strikethroughPosition
      • strikethroughThickness

        private int strikethroughThickness
      • overlinePosition

        private int overlinePosition
      • overlineThickness

        private int overlineThickness
    • Constructor Detail

      • FontFace

        public FontFace()
        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
      • getFontFamily

        public java.lang.String getFontFamily()
      • getUnitsPerEm

        public int getUnitsPerEm()
      • getAscent

        public int getAscent()
      • getDescent

        public int getDescent()
      • getAccentHeight

        public int getAccentHeight()
      • getUnderlinePosition

        public int getUnderlinePosition()
      • getUnderlineThickness

        public int getUnderlineThickness()
      • getStrikethroughPosition

        public int getStrikethroughPosition()
      • getStrikethroughThickness

        public int getStrikethroughThickness()
      • getOverlinePosition

        public int getOverlinePosition()
      • getOverlineThickness

        public int getOverlineThickness()
      • updateTime

        public boolean updateTime​(double curTime)
        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
      • setUnitsPerEm

        public void setUnitsPerEm​(int unitsPerEm)
        Parameters:
        unitsPerEm - the unitsPerEm to set
      • setAscent

        public void setAscent​(int ascent)
        Parameters:
        ascent - the ascent to set
      • setDescent

        public void setDescent​(int descent)
        Parameters:
        descent - the descent to set
      • setAccentHeight

        public void setAccentHeight​(int accentHeight)
        Parameters:
        accentHeight - the accentHeight to set
      • setUnderlinePosition

        public void setUnderlinePosition​(int underlinePosition)
        Parameters:
        underlinePosition - the underlinePosition to set
      • setUnderlineThickness

        public void setUnderlineThickness​(int underlineThickness)
        Parameters:
        underlineThickness - the underlineThickness to set
      • setStrikethroughPosition

        public void setStrikethroughPosition​(int strikethroughPosition)
        Parameters:
        strikethroughPosition - the strikethroughPosition to set
      • setStrikethroughThickness

        public void setStrikethroughThickness​(int strikethroughThickness)
        Parameters:
        strikethroughThickness - the strikethroughThickness to set
      • setOverlinePosition

        public void setOverlinePosition​(int overlinePosition)
        Parameters:
        overlinePosition - the overlinePosition to set
      • setOverlineThickness

        public void setOverlineThickness​(int overlineThickness)
        Parameters:
        overlineThickness - the overlineThickness to set