TextMeasurer

Overview

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

Backend-neutral text measurement service used by layout and rendering.

This class declares 5 methods for TextMeasurer objects in Python programs. Available methods include: __init__, derive_default_row_height, measure_mdw, measure_text, measure_unhinted_mdw. Public members are accessible to any Python application after installing the Aspose.Cells FOSS for Python package. Properties: font_strategy.

Properties

NameTypeAccessDescription
font_strategy-ReadGets the font strategy.

Methods

SignatureDescription
__init__(font_strategy)Calls init(font_strategy) on this TextMeasurer instance.
measure_text(text, font, width_points, wrap_text)Calls measure_text(text, font, width_points, wrap_text) on this TextMeasurer instance.
measure_mdw(font)Calls measure_mdw(font) on this TextMeasurer instance.
measure_unhinted_mdw(font)Measure the Normal-font digit advance without screen hinting.
derive_default_row_height(font, stored_height, is_custom)Calls derive_default_row_height(font, stored_height, is_custom) on this TextMeasurer instance.

See Also