---
title: "Aspose::Font::Type1::Type1Font::GetGlyphById method"
url: "https://reference.aspose.com/font/cpp/aspose.font.type1/type1font/getglyphbyid/"
product: "Aspose.Font for C++"
description: "Aspose::Font::Type1::Type1Font::GetGlyphById method. Returns glyph by glyph id. Glyph id is a unique number for a glyph, which is font type dependent. Type1Font glyph id can be instance of (GlyphStringId) class or (GlyphUInt32Id) class in C++."
---

## Type1Font::GetGlyphById(System::SharedPtr\<Glyphs::GlyphId\>) method


Returns glyph by glyph id. Glyph id is a unique number for a glyph, which is font type dependent. [Type1](../../)[Font](../../../aspose.font/font/) glyph id can be instance of ([GlyphStringId](../)) class or ([GlyphUInt32Id](../)) class.

```cpp
System::SharedPtr<Glyphs::Glyph> Aspose::Font::Type1::Type1Font::GetGlyphById(System::SharedPtr<Glyphs::GlyphId> id) override
```


| Parameter | Type | Description |
| --- | --- | --- |
| id | System::SharedPtr\<Glyphs::GlyphId\> | Glyph id. |

### ReturnValue

Glyph.

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Glyph](../../../aspose.font.glyphs/glyph/)
* Class [GlyphId](../../../aspose.font.glyphs/glyphid/)
* Class [Type1Font](../)
* Namespace [Aspose::Font::Type1](../../)
* Library [Aspose.Font for C++](../../../)
## Type1Font::GetGlyphById(System::String) method


Returns glyph by glyph id.

```cpp
virtual System::SharedPtr<Glyphs::Glyph> Aspose::Font::Type1::Type1Font::GetGlyphById(System::String id)
```


| Parameter | Type | Description |
| --- | --- | --- |
| id | System::String | Glyph id. |

### ReturnValue

Glyph.

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Glyph](../../../aspose.font.glyphs/glyph/)
* Class [String](../../../system/string/)
* Class [Type1Font](../)
* Namespace [Aspose::Font::Type1](../../)
* Library [Aspose.Font for C++](../../../)
## Type1Font::GetGlyphById(uint32_t) method


Returns glyph by glyph id.

```cpp
System::SharedPtr<Glyphs::Glyph> Aspose::Font::Type1::Type1Font::GetGlyphById(uint32_t id)
```


| Parameter | Type | Description |
| --- | --- | --- |
| id | uint32_t | Glyph id. |

### ReturnValue

Glyph.

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Glyph](../../../aspose.font.glyphs/glyph/)
* Class [Type1Font](../)
* Namespace [Aspose::Font::Type1](../../)
* Library [Aspose.Font for C++](../../../)
