Fork me on GitHub

core/fontMetrics

This module contains metrics regarding fonts and individual symbols. The sigma and xi variables, as well as the metricMap map contain data extracted from TeX, TeX font metrics, and the TTF files. These data are then exposed via the metrics variable and the getCharacterMetrics function.

Members

metricsinnerconstant

This is just a mapping from common names to real metrics

Methods

convertDimenToEm(value: number | string, unit: string, precision: number)inner

value : number | string

If value is a string, it may be suffixed with a unit, which will override the unit paramter

unit : string
precision : number