seek-oss-ci
released this
19 Feb 21:46
·
57 commits
to master
since this release
Minor Changes
-
#129
9507530
Thanks @michaeltaranto! - fontFamilyToCamelCase: Expose utility to convert family name to import nameA helper function to support tooling that needs to convert the font family name to the correct casing for the relevant metrics import.
import { fontFamilyToCamelCase } from '@capsizecss/metrics'; const familyName = fontFamilyToCamelCase('--apple-system'); // => `appleSystem` const metrics = await import(`@capsizecss/metrics/${familyName}`);
-
#129
9507530
Thanks @michaeltaranto! - entireMetricsCollection: Expose all metrics indexed by family nameProvides the entire metrics collection as a JSON object, keyed by font family name.
⚠️ CAUTION: Importing this will result in a large JSON structure being pulled into your project!It is not recommended to use this client side.
import { entireMetricsCollection } from '@capsizecss/metrics/entireMetricsCollection'; const metrics = entireMetricsCollection['arial'];