**Inheritance:**
java.lang.Object
```
public class GlyphData
```

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

| Constructor | Description |
| --- | --- |
| [GlyphData()](#GlyphData--) | Creates new instance. |
## Methods

| Method | Description |
| --- | --- |
| [getNaturalWidth()](#getNaturalWidth--) | Gets glyph width defined by font. |
| [setNaturalWidth(float value)](#setNaturalWidth-float-) | Sets glyph width defined by font. |
| [getAdvanceWidth()](#getAdvanceWidth--) | Gets glyph width taking into account kerns. |
| [setAdvanceWidth(float value)](#setAdvanceWidth-float-) | Sets glyph width taking into account kerns. |
| [getUOffset()](#getUOffset--) | Gets horizontal offset. |
| [setUOffset(float value)](#setUOffset-float-) | Sets horizontal offset. |
| [getVOffset()](#getVOffset--) | Gets vertical offset. |
| [setVOffset(float value)](#setVOffset-float-) | Sets vertical offset. |
### GlyphData() {#GlyphData--}
```
public GlyphData()
```


Creates new instance.

### getNaturalWidth() {#getNaturalWidth--}
```
public float getNaturalWidth()
```


Gets glyph width defined by font.

**Returns:**
float - Glyph width defined by font.
### setNaturalWidth(float value) {#setNaturalWidth-float-}
```
public void setNaturalWidth(float value)
```


Sets glyph width defined by font.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | float | Glyph width defined by font. |

### getAdvanceWidth() {#getAdvanceWidth--}
```
public float getAdvanceWidth()
```


Gets glyph width taking into account kerns.

**Returns:**
float - Glyph width taking into account kerns.
### setAdvanceWidth(float value) {#setAdvanceWidth-float-}
```
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() {#getUOffset--}
```
public float getUOffset()
```


Gets horizontal offset.

**Returns:**
float - Horizontal offset.
### setUOffset(float value) {#setUOffset-float-}
```
public void setUOffset(float value)
```


Sets horizontal offset.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | float | Horizontal offset. |

### getVOffset() {#getVOffset--}
```
public float getVOffset()
```


Gets vertical offset.

**Returns:**
float - Vertical offset.
### setVOffset(float value) {#setVOffset-float-}
```
public void setVOffset(float value)
```


Sets vertical offset.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | float | Vertical offset. |

