|
1 | 1 | # @capsizecss/metrics
|
2 | 2 |
|
| 3 | +## 3.0.0 |
| 4 | + |
| 5 | +### Major Changes |
| 6 | + |
| 7 | +- [#191](https://github.com/seek-oss/capsize/pull/191) [`d0086a6`](https://github.com/seek-oss/capsize/commit/d0086a6006272f7b7f1e488883d1cf7863642300) Thanks [@michaeltaranto](https://github.com/michaeltaranto)! - metrics: Prefer public family name to internal `familyName` metrics |
| 8 | + |
| 9 | + Ensure metrics are available using the public family name as seen on Google Fonts as opposed to the internal family name metric. |
| 10 | + This makes sense as consumers are looking to import the metrics relevant to a specific system font or from Google Fonts (also aligns with the names Google use in their font declarations generated in the hosted stylesheets). |
| 11 | + |
| 12 | + ### BREAKING CHANGES: |
| 13 | + |
| 14 | + #### Google Fonts |
| 15 | + |
| 16 | + Previously, the metrics were imported with a path that used the internal family name, now they align with the font as seen on Google Fonts. |
| 17 | + |
| 18 | + ```diff |
| 19 | + -import metrics from '@capsizecss/metrics/roundedMplus1c'; |
| 20 | + +import metrics from '@capsizecss/metrics/mPLUSRounded1c'; |
| 21 | + ``` |
| 22 | + |
| 23 | + With only a small number of Google Fonts affected, this is only a break for the following fonts: |
| 24 | + |
| 25 | + - Ballet |
| 26 | + - Bodoni Moda |
| 27 | + - Buda |
| 28 | + - Bungee Spice |
| 29 | + - Fjord One |
| 30 | + - Geologica |
| 31 | + - Imbue |
| 32 | + - M PLUS Rounded 1c |
| 33 | + - Material Symbols Outlined |
| 34 | + - Material Symbols Rounded |
| 35 | + - Material Symbols Sharp |
| 36 | + - Montagu Slab |
| 37 | + - Nanum Pen Script |
| 38 | + - Newsreader |
| 39 | + - Nunito Sans |
| 40 | + - Pathway Extreme |
| 41 | + - Sono |
| 42 | + - Sunflower |
| 43 | + - Supermercado One |
| 44 | + - Texturina |
| 45 | + |
| 46 | + #### System fonts |
| 47 | + |
| 48 | + The system fonts only had one example where the names diverged: |
| 49 | + |
| 50 | + ```diff |
| 51 | + -import metrics from '@capsizecss/metrics/brushScriptMT'; |
| 52 | + +import metrics from '@capsizecss/metrics/brushScript'; |
| 53 | + ``` |
| 54 | + |
| 55 | + This now aligns with the name consumers use to reference the font on their system. |
| 56 | + |
| 57 | +### Minor Changes |
| 58 | + |
| 59 | +- [#190](https://github.com/seek-oss/capsize/pull/190) [`75233b1`](https://github.com/seek-oss/capsize/commit/75233b16c613525420b1383698bcf114fa41b70f) Thanks [@michaeltaranto](https://github.com/michaeltaranto)! - Update Google Fonts to latest |
| 60 | + |
| 61 | +### Patch Changes |
| 62 | + |
| 63 | +- [#193](https://github.com/seek-oss/capsize/pull/193) [`121eb42`](https://github.com/seek-oss/capsize/commit/121eb4201598c09793ff741a51baf85869c7e5c1) Thanks [@michaeltaranto](https://github.com/michaeltaranto)! - metrics: Update apple system font metrics |
| 64 | + |
| 65 | + Previously the metrics provided for `-apple-system` and `BlinkMacSystemFont` were extracted from the `SF Pro` font, with a custom override to correct the `descent` metric. |
| 66 | + |
| 67 | + Through work to support metrics for different font weights and styles, it was identified that MacOS uses the `SFNS` font. |
| 68 | + Extracting the metrics from this font means no more custom overrides, and will now enable using this font as a fallback via postscript name soon too. |
| 69 | + |
3 | 70 | ## 2.2.0
|
4 | 71 |
|
5 | 72 | ### Minor Changes
|
|
0 commit comments