Method Summary |
|
final public boolean | equals(Font object) |
public double | getAscent(double size) Gets the vertical offset from the baseline to the ascender line (ascent). |
public double | getDescent(double size) Gets the vertical offset from the baseline to the descender line (descent). |
public EnumSet<FlagsEnum> | getFlags() Gets the font descriptor flags. |
final public double | getKernedWidth(String text, double size) Gets the width (kerning inclusive) of the given text, scaled to the given font size. |
abstract public int | getKerning(char textChar1, char textChar2) Gets the unscaled kerning width between two given characters. |
abstract public int | getKerning(String text) Gets the unscaled kerning width inside the given text. |
final public double | getKerning(String text, double size) Gets the kerning width inside the given text, scaled to the given font size. |
public double | getLineHeight(double size) Gets the actual line height. |
final public String | getName() Gets the PostScript name of the font. |
final public static double | getScalingFactor(double size) Gets the scaling factor to be applied to unscaled metrics to get actual measures. |
final public String | getType() Gets the font type. |
abstract public int | getWidth(char textChar) Gets the unscaled width of the given character. |
abstract public int | getWidth(String text) Gets the unscaled width (kerning exclusive) of the given text. |
final public double | getWidth(String text, double size) Gets the width (kerning exclusive) of the given text, scaled to the given font size. |
final public static Font | wrap(PdfReference reference) Wraps a font reference into a font object.
Parameters: reference - Reference to a font object. |