public class GlyphData extends Object
Container class for glyph data required for precise typesetting of a text string.
| Constructor and Description |
|---|
GlyphData()
Creates new instance.
|
| Modifier and Type | Method and Description |
|---|---|
float |
getAdvanceWidth()
Gets glyph width taking into account kerns.
|
float |
getNaturalWidth()
Gets glyph width defined by font.
|
float |
getUOffset()
Gets horizontal offset.
|
float |
getVOffset()
Gets vertical offset.
|
void |
setAdvanceWidth(float value)
Sets glyph width taking into account kerns.
|
void |
setNaturalWidth(float value)
Sets glyph width defined by font.
|
void |
setUOffset(float value)
Sets horizontal offset.
|
void |
setVOffset(float value)
Sets vertical offset.
|
public float getNaturalWidth()
Gets glyph width defined by font.
public void setNaturalWidth(float value)
Sets glyph width defined by font.
value - Glyph width defined by font.public float getAdvanceWidth()
Gets glyph width taking into account kerns.
public void setAdvanceWidth(float value)
Sets glyph width taking into account kerns.
value - Glyph width taking into account kerns.public float getUOffset()
Gets horizontal offset.
public void setUOffset(float value)
Sets horizontal offset.
value - Horizontal offset.public float getVOffset()
Gets vertical offset.
public void setVOffset(float value)
Sets vertical offset.
value - Vertical offset.Copyright © 2021 Aspose. All Rights Reserved.