Skip to content

Releases: Dan503/font-face-generator

v1.1.4 - Fix for folder name not having dashes in it

09 Sep 13:34
Compare
Choose a tag to compare

#13 Bugfix: Src path contains spaces in font family name by @Vincentdevreede

v1.1.3 - Added support for .otf (OpenType) file types

06 Mar 09:50
34ff815
Compare
Choose a tag to compare

v1.1.2 - ttf support added

14 Feb 12:09
Compare
Choose a tag to compare

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

22 Dec 01:12
Compare
Choose a tag to compare
  • Readme improvements.
  • Added a deprecation warning to the generator.scss file
  • set mixin.scss as the "main" file in package.json

v1.1.0 - Introduced the new mixin format

22 Dec 00:46
Compare
Choose a tag to compare

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;
};

v1.0.3

22 Dec 00:56
Compare
Choose a tag to compare

Readme fixes

v1.0.1

22 Dec 01:01
Compare
Choose a tag to compare

Name change to font-face-generator from font-face-scss in package.json. I unpublished font-face-scss from npm.