|
JOGL v2.6.0-rc-20250712
JOGL, High-Performance Graphics Binding for Java (public API).
|
Public Member Functions | |
| Font | getFont () |
Returns the Font owning this Glyph. More... | |
| char | getCodepoint () |
Returns this glyph's mapped (unicode) codepoint symbol. More... | |
| int | getID () |
| Returns this glyph's ID. More... | |
| String | getName () |
Returns the glyph's name, source from post table. More... | |
| boolean | isUndefined () |
Returns true if the Glyph denotes an undefined getID() symbol, determined as follows. More... | |
| boolean | isWhitespace () |
| Returns true if the Glyph denotes a whitespace, determined as follows. More... | |
| boolean | isNonContour () |
Returns true if isWhitespace() or isUndefined(). More... | |
| AABBox | getBoundsFU () |
| Returns the AABBox in font-units, borrowing internal instance. More... | |
| AABBox | getBoundsFU (final AABBox dest) |
| Returns the AABBox in font-units, copying into given dest. More... | |
| AABBox | getBounds (final AABBox dest) |
| Returns the AABBox in font em-size [0..1], copying into given dest. More... | |
| AABBox | getBounds () |
| Returns the AABBox in font em-size [0..1], creating a new copy. More... | |
| int | getAdvanceWidthFU () |
Returns advance in font units, sourced from hmtx table. More... | |
| float | getAdvanceWidth () |
Returns advance in font em-size [0..1], sourced from hmtx table. More... | |
| int | getLeftSideBearingsFU () |
Returns leftSideBearings in font units, sourced from hmtx table. More... | |
| float | getLeftSideBearings () |
Returns leftSideBearings in font em-size [0..1], sourced from hmtx table. More... | |
| boolean | isKerningHorizontal () |
| True if kerning values are horizontal, otherwise vertical. More... | |
| boolean | isKerningCrossstream () |
| True if kerning values are perpendicular to text flow, otherwise along with flow. More... | |
| int | getKerningPairCount () |
| Returns the number of kerning values stored for this glyph, associated to a right hand glyph. More... | |
| int | getKerningFU (final int right_glyphid) |
| Returns the optional kerning inter-glyph distance within words between this glyph and the given right glyph_id in font-units. More... | |
| float | getKerning (final int right_glyphid) |
| Returns the optional kerning inter-glyph distance within words between this glyph and the given right glyph_id in fractional font em-size [0..1]. More... | |
| OutlineShape | getShape () |
| int | hashCode () |
| String | toString () |
| String | fullString () |
| Returns all glyph details as string. More... | |
Static Public Attributes | |
| static final int | ID_UNKNOWN = 0 |
Glyph for font.
http://developer.apple.com/textfonts/TTRefMan/RM06/Chap6cmap.html http://developer.apple.com/textfonts/TTRefMan/RM06/Chap6glyf.html http://www.microsoft.com/typography/otspec/glyf.htm
| String com.jogamp.graph.font.Font.Glyph.fullString | ( | ) |
Returns all glyph details as string.
| float com.jogamp.graph.font.Font.Glyph.getAdvanceWidth | ( | ) |
Returns advance in font em-size [0..1], sourced from hmtx table.
| int com.jogamp.graph.font.Font.Glyph.getAdvanceWidthFU | ( | ) |
Returns advance in font units, sourced from hmtx table.
| AABBox com.jogamp.graph.font.Font.Glyph.getBounds | ( | ) |
Returns the AABBox in font em-size [0..1], creating a new copy.
Returns the AABBox in font em-size [0..1], copying into given dest.
| dest | AABBox instance set to this metrics boundary in font em-size [0..1] |
| AABBox com.jogamp.graph.font.Font.Glyph.getBoundsFU | ( | ) |
Returns the AABBox in font-units, borrowing internal instance.
Returns the AABBox in font-units, copying into given dest.
| dest | AABBox instance set to this metrics boundary in font-units |
| char com.jogamp.graph.font.Font.Glyph.getCodepoint | ( | ) |
Returns this glyph's mapped (unicode) codepoint symbol.
| Font com.jogamp.graph.font.Font.Glyph.getFont | ( | ) |
| int com.jogamp.graph.font.Font.Glyph.getID | ( | ) |
Returns this glyph's ID.
| float com.jogamp.graph.font.Font.Glyph.getKerning | ( | final int | right_glyphid | ) |
Returns the optional kerning inter-glyph distance within words between this glyph and the given right glyph_id in fractional font em-size [0..1].
| right_glyphid | right glyph code id |
| int com.jogamp.graph.font.Font.Glyph.getKerningFU | ( | final int | right_glyphid | ) |
Returns the optional kerning inter-glyph distance within words between this glyph and the given right glyph_id in font-units.
| right_glyphid | right glyph code id |
| int com.jogamp.graph.font.Font.Glyph.getKerningPairCount | ( | ) |
Returns the number of kerning values stored for this glyph, associated to a right hand glyph.
| float com.jogamp.graph.font.Font.Glyph.getLeftSideBearings | ( | ) |
Returns leftSideBearings in font em-size [0..1], sourced from hmtx table.
| int com.jogamp.graph.font.Font.Glyph.getLeftSideBearingsFU | ( | ) |
Returns leftSideBearings in font units, sourced from hmtx table.
| String com.jogamp.graph.font.Font.Glyph.getName | ( | ) |
Returns the glyph's name, source from post table.
| OutlineShape com.jogamp.graph.font.Font.Glyph.getShape | ( | ) |
| int com.jogamp.graph.font.Font.Glyph.hashCode | ( | ) |
| boolean com.jogamp.graph.font.Font.Glyph.isKerningCrossstream | ( | ) |
True if kerning values are perpendicular to text flow, otherwise along with flow.
| boolean com.jogamp.graph.font.Font.Glyph.isKerningHorizontal | ( | ) |
True if kerning values are horizontal, otherwise vertical.
| boolean com.jogamp.graph.font.Font.Glyph.isNonContour | ( | ) |
Returns true if isWhitespace() or isUndefined().
| boolean com.jogamp.graph.font.Font.Glyph.isUndefined | ( | ) |
Returns true if the Glyph denotes an undefined getID() symbol, determined as follows.
ID_UNKNOWN, i.e. 0x00 name .notdef, NULL, null or .null An undefined glyph has no getShape() if glyph index is not ID_UNKNOWN.
An undefined glyph has a default getBounds() and getAdvanceWidth().
Being an undefined shape excludes isWhitespace().
| boolean com.jogamp.graph.font.Font.Glyph.isWhitespace | ( | ) |
Returns true if the Glyph denotes a whitespace, determined as follows.
isUndefined() A whitespace glyph has no getShape(), but a valid getBounds() and getAdvanceWidth().
Being a whitespace glyph excludes isUndefined().
| String com.jogamp.graph.font.Font.Glyph.toString | ( | ) |
|
static |