# OfficeMathFontConstants

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

Class 

`OfficeIMO.Drawing`

**Namespace**

`OfficeIMO.Drawing`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`3b680b1b6fb1` with working tree changes

**Source**

[OfficeMathFontConstants.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Core/Math/OfficeMathFontConstants.cs#L17)

**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.

### Returned or exposed by 2

- Property [IOfficeMathFontProgram.MathConstants](/api/core/officeimo-drawing-iofficemathfontprogram/#property-mathconstants)
- Property [OfficeTrueTypeFont.MathConstants](/api/core/officeimo-drawing-officetruetypefont/#property-mathconstants)

Filter members 

Show inherited

## Constructors

`public OfficeMathFontConstants(int unitsPerEm, IReadOnlyDictionary<OfficeMathConstant, int> values)` [#](#constructor-ctor-int32-collections-generic-ireadonlydictionary-officeimo-drawing-officemathconstant-system-int32)

[OfficeMathFontConstants.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Core/Math/OfficeMathFontConstants.cs#L17)

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)` [#](#method-getvalue-officeimo-drawing-officemathconstant)

[OfficeMathFontConstants.cs:49](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Core/Math/OfficeMathFontConstants.cs#L49)

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

Parameters

**constant OfficeIMO.Drawing.OfficeMathConstant required**

Returns

`int`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public int UnitsPerEm { get; }` [#](#property-unitsperem)

[OfficeMathFontConstants.cs:42](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Core/Math/OfficeMathFontConstants.cs#L42)

Design units per em used by the constants.

<!-- PowerForge markdown artifact sha256:9E95AD0229D9213C3D8445BE05D4D44C2D9DC41E82922EFD4C6CDE13B72AD6AD -->
