|
JOGL v2.6.0-rc-20250712
JOGL, High-Performance Graphics Binding for Java (public API).
|
Public Member Functions | |
| int | getAscentFU () |
| Distance from baseline of highest ascender, a positive value. More... | |
| float | getAscent () |
| Distance from baseline of highest ascender, a positive value. More... | |
| int | getDescentFU () |
| Distance from baseline of lowest descender, a negative value. More... | |
| float | getDescent () |
| Distance from baseline of lowest descender, a negative value. More... | |
| int | getLineGapFU () |
| Typographic line gap, a positive value. More... | |
| float | getLineGap () |
| Typographic line gap, a positive value. More... | |
| int | getMaxExtendFU () |
| max(lsb + (xMax-xMin)), a positive value. More... | |
| float | getMaxExtend () |
| max(lsb + (xMax-xMin)), a positive value. More... | |
| int | getUnitsPerEM () |
| Returns the font's units per EM from the 'head' table. More... | |
| float | getScale (final int funits) |
| Returns fractional font em-size [0..1], i.e. More... | |
| AABBox | getBoundsFU (final AABBox dest) |
| AABBox | getBounds (final AABBox dest) |
Metrics for font.
Depending on the font's direction, horizontal or vertical, the following tables shall be used:
Vertical https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6vhea.html Horizontal https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6hhea.html
| float com.jogamp.graph.font.Font.Metrics.getAscent | ( | ) |
Distance from baseline of highest ascender, a positive value.
| int com.jogamp.graph.font.Font.Metrics.getAscentFU | ( | ) |
Distance from baseline of highest ascender, a positive value.
| dest | AABBox instance set to this metrics boundary in font em-size [0..1] |
| dest | AABBox instance set to this metrics boundary in font-units |
| float com.jogamp.graph.font.Font.Metrics.getDescent | ( | ) |
Distance from baseline of lowest descender, a negative value.
| int com.jogamp.graph.font.Font.Metrics.getDescentFU | ( | ) |
Distance from baseline of lowest descender, a negative value.
| float com.jogamp.graph.font.Font.Metrics.getLineGap | ( | ) |
Typographic line gap, a positive value.
| int com.jogamp.graph.font.Font.Metrics.getLineGapFU | ( | ) |
Typographic line gap, a positive value.
| float com.jogamp.graph.font.Font.Metrics.getMaxExtend | ( | ) |
max(lsb + (xMax-xMin)), a positive value.
| int com.jogamp.graph.font.Font.Metrics.getMaxExtendFU | ( | ) |
max(lsb + (xMax-xMin)), a positive value.
| float com.jogamp.graph.font.Font.Metrics.getScale | ( | final int | funits | ) |
Returns fractional font em-size [0..1], i.e.
funits divided by getUnitsPerEM(), i.e.
return funits / head.unitsPerEM;
| funits | smallest font unit, where getUnitsPerEM() square covers whole glyph |
| int com.jogamp.graph.font.Font.Metrics.getUnitsPerEM | ( | ) |
Returns the font's units per EM from the 'head' table.
One em square covers one glyph.