---
title: "Type1Encoding.DecodeToGid"
url: "https://reference.aspose.com/font/net/aspose.font.type1/type1encoding/decodetogid/"
product: "Aspose.Font for .NET API Reference"
description: "Type1Encoding method. Decodes Gid to unicode. Glyph id is a unique number for a glyph which is font type dependent. For example Type1s id is a glyph name instance of GlyphStringId class. TTFs id is an int index instance of GlyphUInt32Id class"
---

## Type1Encoding.DecodeToGid method

Decodes Gid to unicode. Glyph id is a unique number for a glyph, which is font type dependent. For example: Type1's id is a glyph name, instance of ([`GlyphStringId`](../../../aspose.font.glyphs/glyphstringid/)) class. TTF's id is an int index, instance of ([`GlyphUInt32Id`](../../../aspose.font.glyphs/glyphuint32id/)) class.

```csharp
public GlyphId DecodeToGid(uint charCode)
```

| Parameter | Type | Description |
| --- | --- | --- |
| charCode | UInt32 | Character code to get glyph identifier for. |

### Return Value

Glyph identifier related to character code passed.

### See Also

* class [GlyphId](../../../aspose.font.glyphs/glyphid/)
* class [Type1Encoding](../)
* namespace [Aspose.Font.Type1](../../../aspose.font.type1/)
* assembly [Aspose.Font](../../../)


