---
title: "Aspose::Font::TtfCMapFormats::TtfCMapFormatBaseTable::GetGlyphIndex method"
url: "https://reference.aspose.com/font/cpp/aspose.font.ttfcmapformats/ttfcmapformatbasetable/getglyphindex/"
product: "Aspose.Font for C++"
description: "Aspose::Font::TtfCMapFormats::TtfCMapFormatBaseTable::GetGlyphIndex method. Gets a glyph index for a given character code in C++."
---

## TtfCMapFormatBaseTable::GetGlyphIndex method


Gets a glyph index for a given character code.

```cpp
virtual uint32_t Aspose::Font::TtfCMapFormats::TtfCMapFormatBaseTable::GetGlyphIndex(uint32_t charCode)
```


| Parameter | Type | Description |
| --- | --- | --- |
| charCode | uint32_t | character code |

### ReturnValue

glyph index

## See Also

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