Closed renovate[bot] closed 6 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 53.67%. Comparing base (
6247487
) to head (8b9d491
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
This PR contains the following updates:
2.1.1
->2.2.0
Release Notes
seek-oss/capsize (@capsizecss/metrics)
### [`v2.2.0`](https://togithub.com/seek-oss/capsize/blob/HEAD/packages/metrics/CHANGELOG.md#220) [Compare Source](https://togithub.com/seek-oss/capsize/compare/@capsizecss/metrics@2.1.1...@capsizecss/metrics@2.2.0) ##### Minor Changes - [#177](https://togithub.com/seek-oss/capsize/pull/177) [`879208b`](https://togithub.com/seek-oss/capsize/commit/879208bd08372be246ecd30a1be42f44883ca650) Thanks [@michaeltaranto](https://togithub.com/michaeltaranto)! - xWidthAvg: Add `subset` support for non-latin character sets Previously the `xWidthAvg` metric was calculated based on the character frequency as measured from English text only. This resulted in the `xWidthAvg` metric being incorrect for languages that use a different unicode subset range, e.g. Thai. Supporting Thai now enables adding support for other unicode ranges in the future. ##### What's changed? ##### `@capsizecss/metrics` The `subsets` field has been added to the metrics object, providing the `xWidthAvg` metric for each subset — calculated against the relevant character frequency data. ```diff { "familyName": "Abril Fatface", ... + "subsets": { + "latin": { + "xWidthAvg": 512 + }, + "thai": { + "xWidthAvg": 200 + } + } } ``` There are no changes to any of the other existing metrics. ##### `@capsizecss/core` Fallback font stacks can now be generated per subset, allowing the correct `xWidthAvg` metric to be used for the relevant subset. The `createFontStack` API now accepts `subset` as an option: ```ts const { fontFamily, fontFaces } = createFontStack([lobster, arial], { subset: 'thai', }); ```Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - "before 4am on Monday" (UTC).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.