Access average character width by subset
masterThe xWidthAvg metric represents the average character width. While the top-level xWidthAvg property defaults to the latin subset, you can access specific language subsets via the subsets field.
Supported Subsets:
latin: English (based on Wikinews data)thai: Thai (based on Wikinews data)
import arial from '@capsizecss/metrics/arial';
const xWidthAvgDefault = arial.xWidthAvg;
const xWidthAvgLatin = arial.subsets.latin.xWidthAvg; // Same as above
const xWidthAvgThai = arial.subsets.thai.xWidthAvg;