## IFontEncoding::Encode method


Encodes the glyph. For TTF Fonts the charCode is unicode.

```cpp
virtual void Aspose::Font::IFontEncoding::Encode(uint32_t gid, uint32_t charCode)=0
```


| Parameter | Type | Description |
| --- | --- | --- |
| gid | uint32_t | Glyph id. |
| charCode | uint32_t | Character code associated with the glyph id. |

## See Also

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