Synced
TextMetrics.Constructor
Section titled “TextMetrics.Constructor”
- Describes scalable metrics for one font face and logical size.
Required contracts
Section titled “Required contracts”API: scripting
Project: Inno.Text
Scope: Runtime
Declaration
Section titled “Declaration”public InnoEngine.Text.TextMetrics.TextMetrics(float ascender, float descender, float lineHeight, float underlinePosition, float underlineThickness)Parameters
Section titled “Parameters”Parameter ascender: The scaled face ascender in logical pixels, using the backend’s coordinate convention.
Parameter descender: The scaled face descender in logical pixels, using the backend’s coordinate convention.
Parameter lineHeight: The recommended line spacing in logical pixels for the selected face and size.
Parameter underlinePosition: The scaled underline position relative to the baseline in logical pixels.
Parameter underlineThickness: The scaled underline thickness in logical pixels.