GlyphData
Contents
[
Hide
]Inheritance: java.lang.Object
public class GlyphData
Container class for glyph data required for precise typesetting of a text string.
Constructors
Constructor | Description |
---|---|
GlyphData() | Creates new instance. |
Methods
Method | Description |
---|---|
getNaturalWidth() | Gets glyph width defined by font. |
setNaturalWidth(float value) | Sets glyph width defined by font. |
getAdvanceWidth() | Gets glyph width taking into account kerns. |
setAdvanceWidth(float value) | Sets glyph width taking into account kerns. |
getUOffset() | Gets horizontal offset. |
setUOffset(float value) | Sets horizontal offset. |
getVOffset() | Gets vertical offset. |
setVOffset(float value) | Sets vertical offset. |
GlyphData()
public GlyphData()
Creates new instance.
getNaturalWidth()
public float getNaturalWidth()
Gets glyph width defined by font.
Returns: float - Glyph width defined by font.
setNaturalWidth(float value)
public void setNaturalWidth(float value)
Sets glyph width defined by font.
Parameters:
Parameter | Type | Description |
---|---|---|
value | float | Glyph width defined by font. |
getAdvanceWidth()
public float getAdvanceWidth()
Gets glyph width taking into account kerns.
Returns: float - Glyph width taking into account kerns.
setAdvanceWidth(float value)
public void setAdvanceWidth(float value)
Sets glyph width taking into account kerns.
Parameters:
Parameter | Type | Description |
---|---|---|
value | float | Glyph width taking into account kerns. |
getUOffset()
public float getUOffset()
Gets horizontal offset.
Returns: float - Horizontal offset.
setUOffset(float value)
public void setUOffset(float value)
Sets horizontal offset.
Parameters:
Parameter | Type | Description |
---|---|---|
value | float | Horizontal offset. |
getVOffset()
public float getVOffset()
Gets vertical offset.
Returns: float - Vertical offset.
setVOffset(float value)
public void setVOffset(float value)
Sets vertical offset.
Parameters:
Parameter | Type | Description |
---|---|---|
value | float | Vertical offset. |