---
Product: Aspose.Font
Platform: python
Page Type: reference
Canonical URL: https://reference.aspose.org/font/python/webfontoptimizer
---

# WebFontOptimizer

## Overview

`WebFontOptimizer` is a class in Aspose.Font FOSS for Python.
Inherits from: `WebFontOptimizerBase`.

Extended WebFontOptimizer with interactive playground generation.

This class declares 1 method for WebFontOptimizer objects in Python programs.
Available methods include: `build_interactive_playground`.
Public members are accessible to any Python application after installing the Aspose.Font FOSS for Python package.

## Methods

| Signature | Description |
|-----------|-------------|
| `build_interactive_playground(font: Font, family: str, style: str, preview_text: str, specimen_template: str, export_mode: str, export_note: str \| None, dark_mode: bool, include_font_controls: bool)` → `str` | Calls build_interactive_playground(font, family, style, preview_text, specimen_template, export_mode, export_note, dark_mode, include_font_controls) on this WebFontOptimizer instance. |

## See Also

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