Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OfficeMathFontConstants

OfficeIMO.Drawing

Namespace
OfficeIMO.Drawing
Assembly
OfficeIMO.Core
Source revision
3b680b1b6fb1 with working tree changes
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

Explore 2 API references to this type

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

Constructors

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

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

Parameters

unitsPerEm int required
values System.Collections.Generic.IReadOnlyDictionary<OfficeIMO.Drawing.OfficeMathConstant, int> required

Methods

public int GetValue(OfficeMathConstant constant) #

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

Parameters

constant OfficeIMO.Drawing.OfficeMathConstant required

Returns

int

Properties

public int UnitsPerEm { get; } #

Design units per em used by the constants.