---
Product: Aspose.Slides
Platform: python
Page Type: reference
Canonical URL: https://reference.aspose.org/slides/python/FontData
---

# FontData

## Overview

`FontData` is a class in Aspose.Slides FOSS for Python.
Inherits from: `IFontData`.

Represents a font definition.

This class provides 2 methods for working with FontData objects in Python programs.
Available methods include: `__init__`, `get_font_name`.
All public members are accessible to any Python application after installing the Aspose.Slides FOSS for Python package.
Properties: `font_name`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `font_name` | `str` | Read | Returns the font name. |

## Methods

| Signature | Description |
|-----------|-------------|
| `__init__(font_name)` |  |
| `get_font_name(theme)` → `str` | Returns the font name associated with the given theme |

## See Also

- [Aspose.Slides — Enterprise API Reference](https://reference.aspose.com/slides/)