Class GVTFontFace

java.lang.Object
org.apache.batik.gvt.font.GVTFontFace
All Implemented Interfaces:
XMLConstants, CSSConstants, SVGConstants
Direct Known Subclasses:
FontFace

public class GVTFontFace extends Object implements SVGConstants
One line Class Desc Complete Class Desc
  • Field Details

    • familyName

      protected String familyName
    • unitsPerEm

      protected float unitsPerEm
    • fontWeight

      protected String fontWeight
    • fontStyle

      protected String fontStyle
    • fontVariant

      protected String fontVariant
    • fontStretch

      protected String fontStretch
    • slope

      protected float slope
    • panose1

      protected 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 Details

    • GVTFontFace

      public GVTFontFace(String familyName, float unitsPerEm, String fontWeight, String fontStyle, String fontVariant, String fontStretch, float slope, 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(String familyName)
      Constructs an SVGFontFace with default values for all the font-face attributes other than familyName
  • Method Details

    • getFamilyName

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

      public boolean hasFamilyName(String family)
    • getFontWeight

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

      public 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.