Package com.jogamp.graph.font
Interface Font.Glyph
-
- Enclosing interface:
- Font
public static interface Font.GlyphGlyph 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
-
-
Field Summary
Fields Modifier and Type Field Description static intID_UNKNOWN
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringfullString()Return all glyph details as string.floatgetAdvance()Return advance in font em-size [0..1], sourced from `hmtx` table.intgetAdvanceFU()Return advance in font units, sourced from `hmtx` table.AABBoxgetBounds()Return the AABBox in font em-size [0..1], creating a new copy.AABBoxgetBounds(AABBox dest)Return the AABBox in font em-size [0..1], copying into given dest.AABBoxgetBoundsFU()Return the AABBox in font-units, borrowing internal instance.AABBoxgetBoundsFU(AABBox dest)Return the AABBox in font-units, copying into given dest.FontgetFont()Return theFontowning thisFont.Glyph.intgetID()Return this glyph's IDfloatgetKerning(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].intgetKerningFU(int right_glyphid)Returns the optional kerning inter-glyph distance within words between this glyph and the given right glyph_id in font-units.intgetKerningPairCount()Return the number of kerning values stored for this glyph, associated to a right hand glyph.floatgetLeftSideBearings()Return leftSideBearings in font em-size [0..1], sourced from `hmtx` table.intgetLeftSideBearingsFU()Return leftSideBearings in font units, sourced from `hmtx` table.StringgetName()Return the glyph's name, source from `post` tableOutlineShapegetShape()inthashCode()booleanisKerningCrossstream()True if kerning values are perpendicular to text flow, otherwise along with flowbooleanisKerningHorizontal()True if kerning values are horizontal, otherwise verticalbooleanisUndefined()Return true if the Glyph denotes an undefinedgetID()symbol, i.e.booleanisWhiteSpace()Return true if the underlyinggetShape()is a whitespace, otherwise false.StringtoString()
-
-
-
Field Detail
-
ID_UNKNOWN
static final int ID_UNKNOWN
- See Also:
- Constant Field Values
-
-
Method Detail
-
getFont
Font getFont()
Return theFontowning thisFont.Glyph.
-
getID
int getID()
Return this glyph's ID
-
getName
String getName()
Return the glyph's name, source from `post` table
-
isWhiteSpace
boolean isWhiteSpace()
Return true if the underlyinggetShape()is a whitespace, otherwise false.
-
isUndefined
boolean isUndefined()
-
getBoundsFU
AABBox getBoundsFU()
Return the AABBox in font-units, borrowing internal instance.
-
getBoundsFU
AABBox getBoundsFU(AABBox dest)
Return the AABBox in font-units, copying into given dest.- Parameters:
dest- AABBox instance set to this metrics boundary in font-units- Returns:
- the given and set AABBox 'dest' in font-units
-
getBounds
AABBox getBounds(AABBox dest)
Return the AABBox in font em-size [0..1], copying into given dest.- Parameters:
dest- AABBox instance set to this metrics boundary in font em-size [0..1]- Returns:
- the given and set AABBox 'dest' in font em-size [0..1]
-
getBounds
AABBox getBounds()
Return the AABBox in font em-size [0..1], creating a new copy.
-
getAdvanceFU
int getAdvanceFU()
Return advance in font units, sourced from `hmtx` table.
-
getAdvance
float getAdvance()
Return advance in font em-size [0..1], sourced from `hmtx` table.
-
getLeftSideBearingsFU
int getLeftSideBearingsFU()
Return leftSideBearings in font units, sourced from `hmtx` table.
-
getLeftSideBearings
float getLeftSideBearings()
Return leftSideBearings in font em-size [0..1], sourced from `hmtx` table.
-
isKerningHorizontal
boolean isKerningHorizontal()
True if kerning values are horizontal, otherwise vertical
-
isKerningCrossstream
boolean isKerningCrossstream()
True if kerning values are perpendicular to text flow, otherwise along with flow
-
getKerningPairCount
int getKerningPairCount()
Return the number of kerning values stored for this glyph, associated to a right hand glyph.
-
getKerningFU
int getKerningFU(int right_glyphid)
Returns the optional kerning inter-glyph distance within words between this glyph and the given right glyph_id in font-units.- Parameters:
right_glyphid- right glyph code id- Returns:
- font-units
-
getKerning
float getKerning(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].- Parameters:
right_glyphid- right glyph code id- Returns:
- fractional font em-size distance [0..1]
-
getShape
OutlineShape getShape()
-
fullString
String fullString()
Return all glyph details as string.
-
-