Skip to content

Commit

Permalink
Version Packages (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
seek-oss-ci authored May 8, 2024
1 parent 6238501 commit b8e709f
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 17 deletions.
14 changes: 0 additions & 14 deletions .changeset/wicked-apricots-dress.md

This file was deleted.

15 changes: 15 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# @capsizecss/core

## 4.1.2

### Patch Changes

- [#200](https://github.com/seek-oss/capsize/pull/200) [`6238501`](https://github.com/seek-oss/capsize/commit/6238501ebd67419017af6928ede67738ebedf110) Thanks [@michaeltaranto](https://github.com/michaeltaranto)! - createFontStack: Prefer `postscriptName` or `fullName` for fallback source

The `@font-face` declaration aliases generated by `createFontStack` now favour `postscriptName` and `fullName` over `familyName` from the provided metrics when selecting a local font face as a fallback.

MDN recommends using either `fullName` and `postscriptName` when accessing local fonts to ensure the best matching across platforms, while also enabling selection of a single font face within a larger family, e.g. `Arial Bold` or `Arial-BoldMT` within `Arial`.
For details see [MDN].

> ⚠️ Note: Falling back to `familyName` (original behaviour) makes this work backwards compatible with older versions of font metrics.
[MDN]: https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/src#localfont-face-name

## 4.1.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@capsizecss/core",
"version": "4.1.1",
"version": "4.1.2",
"description": "Flipping how we define typography",
"keywords": [
"capsize",
Expand Down
2 changes: 1 addition & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"directory": "site"
},
"dependencies": {
"@capsizecss/core": "^4.1.1",
"@capsizecss/core": "^4.1.2",
"@capsizecss/metrics": "^3.1.0",
"@capsizecss/unpack": "^2.2.0",
"@chakra-ui/icons": "^2.1.1",
Expand Down

0 comments on commit b8e709f

Please sign in to comment.