Skip to content

Commit

Permalink
Icon Fonts: switch to a new dependency to build fonts (#117)
Browse files Browse the repository at this point in the history
Co-authored-by: Matthias Pfefferle <[email protected]>
  • Loading branch information
jeherve and pfefferle authored Jun 15, 2023
1 parent 97829b1 commit 0a1e961
Show file tree
Hide file tree
Showing 22 changed files with 4,566 additions and 3,917 deletions.
10 changes: 7 additions & 3 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ module.exports = function( grunt ) {
// Loads all tasks from `grunt-tasks/`
grunt.loadTasks( 'grunt-tasks' );

// Load webfont tooling.
grunt.loadNpmTasks( 'grunt-webfonts' );

// Loads all `grunt-*`` tasks listed in package.json --> `devDependencies`
require( 'load-grunt-tasks' )( grunt );

Expand Down Expand Up @@ -89,9 +92,10 @@ module.exports = function( grunt ) {
'autoHint': false,
'normalize': true,
'optimize': false,
'syntax': 'bootstrap',
'font': 'social-logos',
'types': 'eot,woff2,woff,ttf',
'order': 'eot,woff,ttf',
'types': 'woff2,woff,ttf',
'order': 'woff,ttf',
'embed': true,
'descent': 0,
'htmlDemoTemplate': 'sources/icon-font/demo-template.html',
Expand Down Expand Up @@ -200,8 +204,8 @@ module.exports = function( grunt ) {
'svg-to-react',
'babel',
'svg-transform-add-square',
'svg-to-pdf',
'webfont',
'svg-to-pdf',
'clean'
]);
};
4 changes: 3 additions & 1 deletion codepoints.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,7 @@
"patreon": 61701,
"medium-alt": 61702,
"tiktok-alt": 61703,
"tiktok": 61704
"tiktok": 61704,
"link": 61705,
"mastodon": 61706
}
2 changes: 1 addition & 1 deletion docs/social-logos.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
105 changes: 90 additions & 15 deletions icon-font/social-logos.css

Large diffs are not rendered by default.

Binary file removed icon-font/social-logos.eot
Binary file not shown.
117 changes: 102 additions & 15 deletions icon-font/social-logos.html

Large diffs are not rendered by default.

Binary file modified icon-font/social-logos.ttf
Binary file not shown.
Binary file modified icon-font/social-logos.woff2
Binary file not shown.
Loading

0 comments on commit 0a1e961

Please sign in to comment.