Class GVTFontFace

  • All Implemented Interfaces:
    XMLConstants, CSSConstants, SVGConstants
    Direct Known Subclasses:
    FontFace

    public class GVTFontFace
    extends java.lang.Object
    implements SVGConstants
    One line Class Desc Complete Class Desc
    Version:
    $Id: GVTFontFace.java 1733416 2016-03-03 07:07:13Z gadams $
    • Field Detail

      • familyName

        protected java.lang.String familyName
      • unitsPerEm

        protected float unitsPerEm
      • fontWeight

        protected java.lang.String fontWeight
      • fontStyle

        protected java.lang.String fontStyle
      • fontVariant

        protected java.lang.String fontVariant
      • fontStretch

        protected java.lang.String fontStretch
      • slope

        protected float slope
      • panose1

        protected java.lang.String panose1
      • ascent

        protected float ascent
      • descent

        protected float descent
      • strikethroughPosition

        protected float strikethroughPosition
      • strikethroughThickness

        protected float strikethroughThickness
      • underlinePosition

        protected float underlinePosition
      • underlineThickness

        protected float underlineThickness
      • overlinePosition

        protected float overlinePosition
      • overlineThickness

        protected float overlineThickness
    • Constructor Detail

      • GVTFontFace

        public GVTFontFace​(java.lang.String familyName,
                           float unitsPerEm,
                           java.lang.String fontWeight,
                           java.lang.String fontStyle,
                           java.lang.String fontVariant,
                           java.lang.String fontStretch,
                           float slope,
                           java.lang.String panose1,
                           float ascent,
                           float descent,
                           float strikethroughPosition,
                           float strikethroughThickness,
                           float underlinePosition,
                           float underlineThickness,
                           float overlinePosition,
                           float overlineThickness)
        Constructes an GVTFontFace with the specfied font-face attributes.
      • GVTFontFace

        public GVTFontFace​(java.lang.String familyName)
        Constructs an SVGFontFace with default values for all the font-face attributes other than familyName
    • Method Detail

      • getFamilyName

        public java.lang.String getFamilyName()
        Returns the family name of this font, it may contain more than one.
      • hasFamilyName

        public boolean hasFamilyName​(java.lang.String family)
      • getFontWeight

        public java.lang.String getFontWeight()
        Returns the font-weight.
      • getFontStyle

        public java.lang.String getFontStyle()
        Returns the font-style.
      • getUnitsPerEm

        public float getUnitsPerEm()
        The number of coordinate units on the em square for this font.
      • getAscent

        public float getAscent()
        Returns the maximum unaccented height of the font within the font coordinate system.
      • getDescent

        public float getDescent()
        Returns the maximum unaccented depth of the font within the font coordinate system.
      • getStrikethroughPosition

        public float getStrikethroughPosition()
        Returns the position of the strikethrough decoration.
      • getStrikethroughThickness

        public float getStrikethroughThickness()
        Returns the stroke thickness to use when drawing a strikethrough.
      • getUnderlinePosition

        public float getUnderlinePosition()
        Returns the position of the underline decoration.
      • getUnderlineThickness

        public float getUnderlineThickness()
        Returns the stroke thickness to use when drawing a underline.
      • getOverlinePosition

        public float getOverlinePosition()
        Returns the position of the overline decoration.
      • getOverlineThickness

        public float getOverlineThickness()
        Returns the stroke thickness to use when drawing a overline.