FontStrategy

Overview

FontStrategy is a class in Aspose.Cells FOSS for Python.

Resolves effective font families and fallback chains for text measurement.

This class declares 3 methods for FontStrategy objects in Python programs. Available methods include: __init__, choose_family_for_text, resolve. Public members are accessible to any Python application after installing the Aspose.Cells FOSS for Python package. Properties: default_fallbacks.

Properties

NameTypeAccessDescription
default_fallbacks-Read/WriteGets or sets the default fallbacks.

Methods

SignatureDescription
__init__(default_fallbacks)Calls init(default_fallbacks) on this FontStrategy instance.
resolve(font)Calls resolve(font) on this FontStrategy instance.
choose_family_for_text(text, resolution)Calls choose_family_for_text(text, resolution) on this FontStrategy instance.

See Also