Package com.jogamp.graph.font
Interface Font.Glyph
-
- Enclosing interface:
- Font
public static interface Font.Glyph
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
-
-
Field Summary
Fields Modifier and Type Field Description static int
ID_UNKNOWN
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
fullString()
Return all glyph details as string.float
getAdvance()
Return advance in font em-size [0..1], sourced from `hmtx` table.int
getAdvanceFU()
Return advance in font units, sourced from `hmtx` table.AABBox
getBounds()
Return the AABBox in font em-size [0..1], creating a new copy.AABBox
getBounds(AABBox dest)
Return the AABBox in font em-size [0..1], copying into given dest.AABBox
getBoundsFU()
Return the AABBox in font-units, borrowing internal instance.AABBox
getBoundsFU(AABBox dest)
Return the AABBox in font-units, copying into given dest.Font
getFont()
Return theFont
owning thisFont.Glyph
.int
getID()
Return this glyph's IDfloat
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].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.int
getKerningPairCount()
Return the number of kerning values stored for this glyph, associated to a right hand glyph.float
getLeftSideBearings()
Return leftSideBearings in font em-size [0..1], sourced from `hmtx` table.int
getLeftSideBearingsFU()
Return leftSideBearings in font units, sourced from `hmtx` table.String
getName()
Return the glyph's name, source from `post` tableOutlineShape
getShape()
int
hashCode()
boolean
isKerningCrossstream()
True if kerning values are perpendicular to text flow, otherwise along with flowboolean
isKerningHorizontal()
True if kerning values are horizontal, otherwise verticalboolean
isUndefined()
Return true if the Glyph denotes an undefinedgetID()
symbol, i.e.boolean
isWhiteSpace()
Return true if the underlyinggetShape()
is a whitespace, otherwise false.String
toString()
-
-
-
Field Detail
-
ID_UNKNOWN
static final int ID_UNKNOWN
- See Also:
- Constant Field Values
-
-
Method Detail
-
getFont
Font getFont()
Return theFont
owning 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.
-
-