public class EmptyFontMetrics extends Object implements FontMetrics
| Constructor and Description |
|---|
EmptyFontMetrics(FontNativeContext record,
double baseWidth,
double baseHeight) |
EmptyFontMetrics(FontNativeContext record,
long baseWidth,
long baseHeight) |
| Modifier and Type | Method and Description |
|---|---|
long |
getAscent()
From the baseline to the
|
BaselineInfo |
getBaselines(int c,
BaselineInfo info)
Baselines are defined for scripts, not glyphs.
|
long |
getCharWidth(int codePoint) |
long |
getDescent()
The font descent is the distance from the font's baseline to the bottom of most alphanumeric characters.
|
long |
getItalicAngle() |
long |
getKerning(int previous,
int codePoint) |
long |
getLeading()
The standard leading, or interline spacing, is the logical amount of space to be reserved between the descent of
one line of text and the ascent of the next line.
|
long |
getMaxAscent() |
long |
getMaxCharAdvance() |
long |
getMaxDescent() |
long |
getMaxHeight() |
FontNativeContext |
getNativeContext() |
long |
getOverlinePosition() |
long |
getStrikeThroughPosition() |
long |
getUnderlinePosition() |
long |
getXHeight()
The height of the lowercase 'x'.
|
boolean |
isUniformFontMetrics()
Is it guaranteed that the font always returns the same baseline info objct?
|
public EmptyFontMetrics(FontNativeContext record, double baseWidth, double baseHeight)
public EmptyFontMetrics(FontNativeContext record, long baseWidth, long baseHeight)
public boolean isUniformFontMetrics()
isUniformFontMetrics in interface FontMetricspublic long getAscent()
getAscent in interface FontMetricspublic long getDescent()
FontMetricsgetDescent in interface FontMetricspublic long getLeading()
FontMetricsgetLeading in interface FontMetricspublic long getXHeight()
getXHeight in interface FontMetricspublic long getOverlinePosition()
getOverlinePosition in interface FontMetricspublic long getUnderlinePosition()
getUnderlinePosition in interface FontMetricspublic long getStrikeThroughPosition()
getStrikeThroughPosition in interface FontMetricspublic long getMaxAscent()
getMaxAscent in interface FontMetricspublic long getMaxDescent()
getMaxDescent in interface FontMetricspublic long getMaxHeight()
getMaxHeight in interface FontMetricspublic long getMaxCharAdvance()
getMaxCharAdvance in interface FontMetricspublic long getCharWidth(int codePoint)
getCharWidth in interface FontMetricspublic long getKerning(int previous,
int codePoint)
getKerning in interface FontMetricspublic BaselineInfo getBaselines(int c, BaselineInfo info)
getBaselines in interface FontMetricsc - public long getItalicAngle()
getItalicAngle in interface FontMetricspublic FontNativeContext getNativeContext()
getNativeContext in interface FontMetrics