API Reference
Class
OfficeMathFontConstants
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.
Returned or exposed by
- Property IOfficeMathFontProgram.MathConstants
- Property OfficeTrueTypeFont.MathConstants
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
- values System.Collections.Generic.IReadOnlyDictionary{OfficeIMO.Drawing.OfficeMathConstant,System.Int32}
Methods
public Int32 GetValue(OfficeMathConstant constant) #Returns:
Int32Returns the unscaled design-unit value. ScriptPercentScaleDown, ScriptScriptPercentScaleDown and RadicalDegreeBottomRaisePercent are percentages.
Parameters
- constant OfficeIMO.Drawing.OfficeMathConstant
Inherited Methods
Properties
public Int32 UnitsPerEm { get; } #Design units per em used by the constants.