GlyphData

Inheritance: java.lang.Object

public class GlyphData

Container class for glyph data required for precise typesetting of a text string.

Constructors

ConstructorDescription
GlyphData()Creates new instance.

Methods

MethodDescription
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:

ParameterTypeDescription
valuefloatGlyph 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:

ParameterTypeDescription
valuefloatGlyph 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:

ParameterTypeDescription
valuefloatHorizontal offset.

getVOffset()

public float getVOffset()

Gets vertical offset.

Returns: float - Vertical offset.

setVOffset(float value)

public void setVOffset(float value)

Sets vertical offset.

Parameters:

ParameterTypeDescription
valuefloatVertical offset.