## IFontEncoding.Encode method

Encodes the glyph. For TTF Fonts the charCode is unicode.

```csharp
public void Encode(uint gid, uint charCode)
```

| Parameter | Type | Description |
| --- | --- | --- |
| gid | UInt32 | Glyph id. |
| charCode | UInt32 | Character code associated with the glyph id. |

### See Also

* interface [IFontEncoding](../)
* namespace [Aspose.Font](../../../aspose.font/)
* assembly [Aspose.Font](../../../)


