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