## TtfEncoding::Encode method


Encodes the glyph. For TTF Fonts the character code is unicode.

```cpp
void Aspose::Font::Ttf::TtfEncoding::Encode(uint32_t gid, uint32_t charCode) override
```


| Parameter | Type | Description |
| --- | --- | --- |
| gid | uint32_t | Glyph identifier. |
| charCode | uint32_t | Character code. |

## See Also

* Class [TtfEncoding](../)
* Namespace [Aspose::Font::Ttf](../../)
* Library [Aspose.Font for C++](../../../)
