Fork me on GitHub


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.


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

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