encode_Literal_cost

encode_Literal_cost

Overview

encode_Literal_cost is a class in Aspose.Font FOSS for Python.

This class provides 5 methods for working with encode_Literal_cost objects in Python programs. Available methods include: DecideMultiByteStatsLevel, EstimateBitCostsForLiterals, EstimateBitCostsForLiteralsUTF8, UTF8Position, __init__. All public members are accessible to any Python application after installing the Aspose.Font FOSS for Python package.

Methods

SignatureDescription
__init__()Calls init on this encode_Literal_cost instance.
UTF8Position(last, c, clamp)Computes the next UTF-8 byte position from last, character and clamp flag
DecideMultiByteStatsLevel(pos, _hx_len, mask, data)Decides the statistics level for multibyte literals using position, length, mask and data
EstimateBitCostsForLiteralsUTF8(pos, _hx_len, mask, cost_mask, data, cost)Estimates bit costs of UTF-8 literals given position, length, masks, data and output array
EstimateBitCostsForLiterals(pos, _hx_len, mask, cost_mask, data, cost)Estimates bit costs of generic literals using position, length, masks, data and output array

See Also