This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to master, this PR will be updated.
These values are particularly useful when constructing CSS @font-face declarations, as they can be used to specify local(\<font-face-name>) sources.
MDN recommends using both “to assure proper matching across platforms”.
These values are particularly useful when constructing CSS @font-face declarations, as they can be used to specify local(\<font-face-name>) sources.
MDN recommends using both “to assure proper matching across platforms”.
#198f55acae Thanks @michaeltaranto! - createFontStack: Apply line-gap-override with no lineGap in preferred font
Ensure that the line-gap-override property is applied correctly when overriding a fallback font with a web font that has no lineGap.
Previously if the override was zero it would be omitted from the declaration, rather than the correct behaviour of overriding the fallback metric to zero.
#199630a5fe Thanks @michaeltaranto! - createFontStack: Ensure provided `size-adjust` is factored into metric overrides
Ensures a custom size-adjust value provided via the fontFaceProperties option is factored into the calculations for the metric overrides.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to master, this PR will be updated.
Releases
@capsizecss/metrics@3.1.0
Minor Changes
#195
aa77cb2
Thanks @michaeltaranto! - Extract and exposepostscriptName
andfullName
from font metricsThe font metrics returned now include the
postscriptName
andfullName
properties as authored by the font creator.For example:
These values are particularly useful when constructing CSS
@font-face
declarations, as they can be used to specify local(\<font-face-name>) sources. MDN recommends using both “to assure proper matching across platforms”.@capsizecss/unpack@2.2.0
Minor Changes
#195
aa77cb2
Thanks @michaeltaranto! - Extract and exposepostscriptName
andfullName
from font metricsThe font metrics returned now include the
postscriptName
andfullName
properties as authored by the font creator.For example:
These values are particularly useful when constructing CSS
@font-face
declarations, as they can be used to specify local(\<font-face-name>) sources. MDN recommends using both “to assure proper matching across platforms”.@capsizecss/core@4.1.1
Patch Changes
#198
f55acae
Thanks @michaeltaranto! - createFontStack: Applyline-gap-override
with nolineGap
in preferred fontEnsure that the
line-gap-override
property is applied correctly when overriding a fallback font with a web font that has nolineGap
. Previously if the override was zero it would be omitted from the declaration, rather than the correct behaviour of overriding the fallback metric to zero.#199
630a5fe
Thanks @michaeltaranto! - createFontStack: Ensure provided `size-adjust` is factored into metric overridesEnsures a custom
size-adjust
value provided via thefontFaceProperties
option is factored into the calculations for the metric overrides.Example
If a custom
size-adjust
value is provided:The resulting metric overrides are now adjusted accordingly: