Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

OfficeMathFontConstants

Namespace OfficeIMO.Drawing
Assembly OfficeIMO.Core
Modifiers sealed

Immutable OpenType MATH constants. Device pixel corrections are deliberately omitted so outline geometry scales consistently between screen and print. Variable math metrics are not qualified.

Inheritance

  • Object
  • OfficeMathFontConstants

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Constructors

public OfficeMathFontConstants(Int32 unitsPerEm, IReadOnlyDictionary<OfficeMathConstant, Int32> values) #

Creates a detached snapshot for a font provider. Supply every named constant in design units.

Parameters

unitsPerEm System.Int32 requiredposition: 0
values System.Collections.Generic.IReadOnlyDictionary{OfficeIMO.Drawing.OfficeMathConstant,System.Int32} requiredposition: 1

Methods

public Int32 GetValue(OfficeMathConstant constant) #
Returns: Int32

Returns the unscaled design-unit value. ScriptPercentScaleDown, ScriptScriptPercentScaleDown and RadicalDegreeBottomRaisePercent are percentages.

Parameters

constant OfficeIMO.Drawing.OfficeMathConstant requiredposition: 0

Properties

public Int32 UnitsPerEm { get; } #

Design units per em used by the constants.