public class BaseFontFontMetrics extends Object implements FontMetrics
Constructor and Description |
---|
BaseFontFontMetrics(FontNativeContext record,
com.lowagie.text.pdf.BaseFont baseFont,
float size) |
Modifier and Type | Method and Description |
---|---|
long |
getAscent()
The font ascent is the distance from the font's baseline to the top of most alphanumeric characters.
|
com.lowagie.text.pdf.BaseFont |
getBaseFont() |
BaselineInfo |
getBaselines(int c,
BaselineInfo info)
Baselines are defined for scripts, not glyphs.
|
long |
getCharWidth(int character) |
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 |
isTrueTypeFont() |
boolean |
isUniformFontMetrics()
Is it guaranteed that the font always returns the same baseline info objct?
|
public BaseFontFontMetrics(FontNativeContext record, com.lowagie.text.pdf.BaseFont baseFont, float size)
public boolean isTrueTypeFont()
public long getAscent()
FontMetrics
getAscent
in interface FontMetrics
public long getDescent()
FontMetrics
getDescent
in interface FontMetrics
public long getLeading()
FontMetrics
getLeading
in interface FontMetrics
public long getXHeight()
FontMetrics
getXHeight
in interface FontMetrics
public long getOverlinePosition()
getOverlinePosition
in interface FontMetrics
public long getUnderlinePosition()
getUnderlinePosition
in interface FontMetrics
public long getStrikeThroughPosition()
getStrikeThroughPosition
in interface FontMetrics
public long getItalicAngle()
getItalicAngle
in interface FontMetrics
public long getMaxAscent()
getMaxAscent
in interface FontMetrics
public long getMaxDescent()
getMaxDescent
in interface FontMetrics
public long getMaxHeight()
getMaxHeight
in interface FontMetrics
public long getMaxCharAdvance()
getMaxCharAdvance
in interface FontMetrics
public long getCharWidth(int character)
getCharWidth
in interface FontMetrics
public long getKerning(int previous, int codePoint)
getKerning
in interface FontMetrics
public boolean isUniformFontMetrics()
isUniformFontMetrics
in interface FontMetrics
public BaselineInfo getBaselines(int c, BaselineInfo info)
FontMetrics
getBaselines
in interface FontMetrics
public com.lowagie.text.pdf.BaseFont getBaseFont()
public FontNativeContext getNativeContext()
getNativeContext
in interface FontMetrics
Copyright © 2019 Hitachi Vantara. All rights reserved.