---
Product: Aspose.Words
Platform: python
Page Type: reference
Canonical URL: https://reference.aspose.org/words/python/fontresolver
---

# FontResolver

## Overview

`FontResolver` is a class in Aspose.Words FOSS for Python.

Compose a fully cascaded :class:`ldm.Font`.

This class declares 3 methods for FontResolver objects in Python programs.
Available methods include: `__init__`, `merge`, `resolve`.
Public members are accessible to any Python application after installing the Aspose.Words FOSS for Python package.

## Methods

| Signature | Description |
|-----------|-------------|
| `__init__(ctx: ReaderContext, fonts: FontBuilder, chains: StyleChainResolver)` | Calls __init__(ctx, fonts, chains) on this FontResolver instance. |
| `resolve(rPr: Optional[ET.Element], style_id: str)` → `ldm.Font` | Compose a Font, walking docDefaults, table style, *style_id* chain, then *rPr*. |
| `merge(base: ldm.Font, override: ldm.Font)` | Merge *override* into *base* using Pydantic ``model_fields_set``. |

## See Also

- [Aspose.Words for Python — Enterprise API Reference](https://reference.aspose.com/words/python-net/)