Skip to content

ExtendedMetrics

Unofficial

Font metrics used by MathJax for scaling and positioning math output.

Import:

import type { ExtendedMetrics } from '@obsidian-typings/obsidian-catalyst-latest';

Signature:

export interface ExtendedMetrics

Properties

PropertyTypeDescription
containerWidthnumberWidth of the container element in pixels.
emnumberSize of 1em in pixels for the current font.
exnumberSize of 1ex in pixels for the current font.
familystringCSS font family string.
lineWidthnumberAvailable line width for the math output in pixels.
scalenumberScale factor for the math output relative to the surrounding text.

Links to this page: