Releases: Dan503/font-face-generator
Releases · Dan503/font-face-generator
v1.1.4 - Fix for folder name not having dashes in it
#13 Bugfix: Src path contains spaces in font family name by @Vincentdevreede
v1.1.3 - Added support for .otf (OpenType) file types
v1.1.2 - ttf support added
Thanks to @burdulixda for fixing the ttf font output format in his PR: #6
I've also added a contributing section to readme.md
v1.1.1
v1.1.0 - Introduced the new mixin format
Old syntax
$fonts: (
'Open Sans' : (
300 : 'open-sans-light',
400 : (
normal : 'open-sans-normal',
italic : 'open-sans-normal-italic'
),
600 : 'open-sans-semibold',
700 : 'open-sans-bold'
)
);
@import '../node_modules/font-face-generator/generator';
New syntax
@import '../node_modules/font-face-generator/mixin';
@include font-face((
'Open Sans' : (
300 : 'open-sans-light',
400 : (
normal : 'open-sans-normal',
italic : 'open-sans-normal-italic'
),
600 : 'open-sans-semibold',
700 : 'open-sans-bold'
)
));
The new syntax allows for all new possibilities like this:
$font-file-types: 'woff2' 'woff';
@include font-face(
$fonts: (
'Open Sans' : (
300 : 'open-sans-light'
)
)
);
@include font-face(
$fonts: (
'Another Font' : (
400 : 'other-normal'
)
),
$types: 'woff'
);
And this:
@include font-face((
'Open Sans' : (
300 : 'open-sans-light',
400 : (
normal : 'open-sans-normal',
italic : 'open-sans-normal-italic'
),
600 : 'open-sans-semibold',
700 : 'open-sans-bold'
)
)){
unicode-range: U+0025-00FF;
};