## IFont class


Declares common functionality for all font formats. Implemented by [Font](../font/) classes.

```cpp
class IFont : public virtual System::Object
```

## Methods

| Method | Description |
| --- | --- |
| virtual [Convert](./convert/)(Aspose::Font::FontType) | Converts the [Font](../font/) into another format. |
| virtual [get_Encoding](./get_encoding/)() | Gets [Font](../font/) encoding. |
| virtual [get_FontDefinition](./get_fontdefinition/)() | Gets [Font](../font/) definition. |
| virtual [get_FontFamily](./get_fontfamily/)() | Gets [Font](../font/) family. |
| virtual [get_FontName](./get_fontname/)() | Gets [Font](../font/) face name. |
| virtual [get_FontNames](./get_fontnames/)() | Gets [Font](../font/) names. |
| virtual [get_FontSaver](./get_fontsaver/)() | Gets [Font](../font/) save functionality. |
| virtual [get_FontStyle](./get_fontstyle/)() | Gets [Font](../font/) style. This is a value computed and represented in generalized type. |
| virtual [get_FontType](./get_fonttype/)() | Gets [Font](../font/) type. |
| virtual [get_GlyphAccessor](./get_glyphaccessor/)() | Gets [Font](../font/) glyph accessor. Retrieves glyphs and glyph identifiers. |
| virtual [get_Metrics](./get_metrics/)() | Gets [Font](../font/) metrics. |
| virtual [get_NumGlyphs](./get_numglyphs/)() | Gets number of glyphs in the [Font](../font/). |
| virtual [get_PostscriptNames](./get_postscriptnames/)() | Gets postscript [Font](../font/) names. |
| virtual [get_Style](./get_style/)() | Gets [Font](../font/) style. This is a raw string value provided by [Font](../font/) file. |
| virtual [set_FontFamily](./set_fontfamily/)(System::String) | Sets [Font](../font/) family. |
| virtual [set_FontName](./set_fontname/)(System::String) | Sets [Font](../font/) face name. |
| virtual [set_Style](./set_style/)(System::String) | Sets [Font](../font/) style. This is a raw string value provided by [Font](../font/) file. |
## See Also

* Class [Object](../../system/object/)
* Namespace [Aspose::Font](../)
* Library [Aspose.Font for C++](../../)
