Closed michaeltaranto closed 8 months ago
Latest commit: 08826770fdb2a9175d7c3ac5f95003ebe0f2950c
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
Two improvements to
createFontStack
API:createFontStack: Append original fallback font name to the font stack
The
fontFamily
returned fromcreateFontStack
now includes the original fallback font name(s). These are appended to the end of the font stack in the case the preferred font and generated fallbacks are not available.Where
fontFamily
is now:createFontStack: Quote
font-family
in@font-face
declaration if neededPreviously, when using
fontFaceFormat: 'styleObject'
, the generated fallback name was not quoted as necessary within the@font-face
declaration. This could cause issues if the font family name contained spaces or other characters that required quoting.