---
title: "Aspose::Font::FontMetrics::GetKerningValue method"
url: "https://reference.aspose.com/font/cpp/aspose.font/fontmetrics/getkerningvalue/"
product: "Aspose.Font for C++"
description: "Aspose::Font::FontMetrics::GetKerningValue method. Returns kerning value for the glyph pair in C++."
---

## FontMetrics::GetKerningValue method


Returns kerning value for the glyph pair.

```cpp
double Aspose::Font::FontMetrics::GetKerningValue(System::SharedPtr<Glyphs::GlyphId> prevGlyphId, System::SharedPtr<Glyphs::GlyphId> nextGlyphId) override
```


| Parameter | Type | Description |
| --- | --- | --- |
| prevGlyphId | System::SharedPtr\<Glyphs::GlyphId\> | First glyph in pair. |
| nextGlyphId | System::SharedPtr\<Glyphs::GlyphId\> | [Font](../../font/) size. |

### ReturnValue

Kerning value.

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [GlyphId](../../../aspose.font.glyphs/glyphid/)
* Class [FontMetrics](../)
* Namespace [Aspose::Font](../../)
* Library [Aspose.Font for C++](../../../)
