Class AWTSVGFont

java.lang.Object
com.github.weisj.jsvg.attributes.font.AWTSVGFont
All Implemented Interfaces:
SVGFont

public final class AWTSVGFont extends Object implements SVGFont
  • Field Details

    • font

      @NotNull private final @NotNull Font font
    • frc

      private final FontRenderContext frc
    • glyphCache

      private final HashMap<Character,Glyph> glyphCache
    • lineMetrics

      @Nullable private @Nullable LineMetrics lineMetrics
    • baselineOffsets

      private float[] baselineOffsets
    • exHeight

      private float exHeight
    • mathBaseline

      private float mathBaseline
  • Constructor Details

    • AWTSVGFont

      public AWTSVGFont(@NotNull @NotNull Font font)
  • Method Details

    • codepointGlyph

      @NotNull public @NotNull Glyph codepointGlyph(char codepoint)
      Specified by:
      codepointGlyph in interface SVGFont
    • family

      @NotNull public @NotNull String family()
      Specified by:
      family in interface SVGFont
    • size

      public int size()
      Specified by:
      size in interface SVGFont
    • lineMetrics

      @NotNull private @NotNull LineMetrics lineMetrics()
    • effectiveExHeight

      public float effectiveExHeight()
      Specified by:
      effectiveExHeight in interface SVGFont
    • effectiveEmHeight

      public float effectiveEmHeight()
      Specified by:
      effectiveEmHeight in interface SVGFont
    • mathematicalBaseline

      public float mathematicalBaseline()
      Specified by:
      mathematicalBaseline in interface SVGFont
    • baselineOffsets

      private float[] baselineOffsets()
    • hangingBaseline

      public float hangingBaseline()
      Specified by:
      hangingBaseline in interface SVGFont
    • romanBaseline

      public float romanBaseline()
      Specified by:
      romanBaseline in interface SVGFont
    • centerBaseline

      public float centerBaseline()
      Specified by:
      centerBaseline in interface SVGFont
    • middleBaseline

      public float middleBaseline()
      Specified by:
      middleBaseline in interface SVGFont
    • textUnderBaseline

      public float textUnderBaseline()
      Specified by:
      textUnderBaseline in interface SVGFont
    • textOverBaseline

      public float textOverBaseline()
      Specified by:
      textOverBaseline in interface SVGFont
    • createGlyph

      @NotNull private @NotNull Glyph createGlyph(char codepoint)