Class AWTSVGFont
- java.lang.Object
-
- com.github.weisj.jsvg.attributes.font.AWTSVGFont
-
-
Field Summary
Fields Modifier and Type Field Description private float[]
baselineOffsets
private float
exHeight
private @NotNull java.awt.Font
font
private java.awt.font.FontRenderContext
frc
private java.util.HashMap<java.lang.Character,Glyph>
glyphCache
private @Nullable java.awt.font.LineMetrics
lineMetrics
private float
mathBaseline
-
Constructor Summary
Constructors Constructor Description AWTSVGFont(@NotNull java.awt.Font font)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private float[]
baselineOffsets()
float
centerBaseline()
@NotNull Glyph
codepointGlyph(char codepoint)
private @NotNull Glyph
createGlyph(char codepoint)
float
effectiveEmHeight()
float
effectiveExHeight()
@NotNull java.lang.String
family()
float
hangingBaseline()
private @NotNull java.awt.font.LineMetrics
lineMetrics()
float
mathematicalBaseline()
float
middleBaseline()
float
romanBaseline()
int
size()
float
textOverBaseline()
float
textUnderBaseline()
-
-
-
Field Detail
-
font
@NotNull private final @NotNull java.awt.Font font
-
frc
private final java.awt.font.FontRenderContext frc
-
glyphCache
private final java.util.HashMap<java.lang.Character,Glyph> glyphCache
-
lineMetrics
@Nullable private @Nullable java.awt.font.LineMetrics lineMetrics
-
baselineOffsets
private float[] baselineOffsets
-
exHeight
private float exHeight
-
mathBaseline
private float mathBaseline
-
-
Method Detail
-
codepointGlyph
@NotNull public @NotNull Glyph codepointGlyph(char codepoint)
- Specified by:
codepointGlyph
in interfaceSVGFont
-
lineMetrics
@NotNull private @NotNull java.awt.font.LineMetrics lineMetrics()
-
effectiveExHeight
public float effectiveExHeight()
- Specified by:
effectiveExHeight
in interfaceSVGFont
-
effectiveEmHeight
public float effectiveEmHeight()
- Specified by:
effectiveEmHeight
in interfaceSVGFont
-
mathematicalBaseline
public float mathematicalBaseline()
- Specified by:
mathematicalBaseline
in interfaceSVGFont
-
baselineOffsets
private float[] baselineOffsets()
-
hangingBaseline
public float hangingBaseline()
- Specified by:
hangingBaseline
in interfaceSVGFont
-
romanBaseline
public float romanBaseline()
- Specified by:
romanBaseline
in interfaceSVGFont
-
centerBaseline
public float centerBaseline()
- Specified by:
centerBaseline
in interfaceSVGFont
-
middleBaseline
public float middleBaseline()
- Specified by:
middleBaseline
in interfaceSVGFont
-
textUnderBaseline
public float textUnderBaseline()
- Specified by:
textUnderBaseline
in interfaceSVGFont
-
textOverBaseline
public float textOverBaseline()
- Specified by:
textOverBaseline
in interfaceSVGFont
-
createGlyph
@NotNull private @NotNull Glyph createGlyph(char codepoint)
-
-