Powerful font-importing controls…
Compared against 3.1.0 -
for incremental changes,
see the 3.2 beta changelogs…
- BREAKING: Change
$font-pathdefault to''(empty string)
so that no path is prepended to fonts without explicit settings. - BREAKING: Remove
$font-formatsglobal,
in favor offormatskey inside font-maps.font-face()mixin no longer has$formatsparameter.import-webfonts()mixin no longer has$formatsparameter.
- BREAKING: We no longer accept
regularas a font-variant.
Use the CSS-friendlynormalinstead. - BREAKING/NEW: We now sort font-face src into the proper order for importing,
based on the fontsquirrel generated syntax. - BUGFIX:
font-familyfunction/mixin return proper font-name
when given an alias keys. - NEW: Allow sub-maps for each font variant (in addition to strings),
optionally containing any or all of the following keys:path: generic path to font-files for the given variant,
the same as providing a string instead of a map.svgid{string}: the proper fragment ID for svg fonts, as needed.local{list}: list of font-names to include aslocal()src
for the given variant.<format>{string}: optionally provide different paths per font-format,
Base64 font data, or additional formats for importing.
- NEW: Allow either string or number values
for font-weights (e.g.200or'200'). - New: Supports
unicode-rangeCSS property in font maps,
as described on MDN.