Renaming font files

This commit is contained in:
Julien Deswaef 2018-02-05 21:14:27 -05:00
parent 17603cb101
commit 3a619289fe
21 changed files with 2715 additions and 42 deletions

10
css/font-awesome.css vendored
View File

@ -5,15 +5,15 @@
/* FONT PATH
* -------------------------- */
@font-face {
font-family: 'FontAwesome';
src: url('../fonts/fontawesome-webfont.eot?v=4.7.0');
src: url('../fonts/fontawesome-webfont.eot?#iefix&v=4.7.0') format('embedded-opentype'), url('../fonts/fontawesome-webfont.woff2?v=4.7.0') format('woff2'), url('../fonts/fontawesome-webfont.woff?v=4.7.0') format('woff'), url('../fonts/fontawesome-webfont.ttf?v=4.7.0') format('truetype'), url('../fonts/fontawesome-webfont.svg?v=4.7.0#fontawesomeregular') format('svg');
font-family: 'ForkAwesome';
src: url('../fonts/forkawesome-webfont.eot?v=0.4.7');
src: url('../fonts/forkawesome-webfont.eot?#iefix&v=0.4.7') format('embedded-opentype'), url('../fonts/forkawesome-webfont.woff2?v=0.4.7') format('woff2'), url('../fonts/forkawesome-webfont.woff?v=0.4.7') format('woff'), url('../fonts/forkawesome-webfont.ttf?v=0.4.7') format('truetype'), url('../fonts/forkawesome-webfont.svg?v=0.4.7#forkawesomeregular') format('svg');
font-weight: normal;
font-style: normal;
}
.fa {
display: inline-block;
font: normal normal normal 14px/1 FontAwesome;
font: normal normal normal 14px/1 ForkAwesome;
font-size: inherit;
text-rendering: auto;
-webkit-font-smoothing: antialiased;
@ -178,7 +178,7 @@
.fa-inverse {
color: #fff;
}
/* Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen
/* Fork Awesome uses the Unicode Private Use Area (PUA) to ensure screen
readers do not read off random characters that represent icons */
.fa-glass:before {
content: "\f000";

File diff suppressed because one or more lines are too long

View File

Before

Width:  |  Height:  |  Size: 151 KiB

After

Width:  |  Height:  |  Size: 151 KiB

View File

@ -7,9 +7,9 @@ Created by FontForge 20120731 at Mon Oct 24 17:37:40 2016
Copyright Dave Gandy 2016. All rights reserved.
</metadata>
<defs>
<font id="FontAwesome" horiz-adv-x="1536" >
<font id="ForkAwesome" horiz-adv-x="1536" >
<font-face
font-family="FontAwesome"
font-family="ForkAwesome"
font-weight="400"
font-stretch="normal"
units-per-em="1792"

Before

Width:  |  Height:  |  Size: 435 KiB

After

Width:  |  Height:  |  Size: 435 KiB

View File

@ -1,4 +1,4 @@
/* Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen
/* Fork Awesome uses the Unicode Private Use Area (PUA) to ensure screen
readers do not read off random characters that represent icons */
.@{fa-css-prefix}-glass:before { content: @fa-var-glass; }

View File

@ -3,13 +3,13 @@
@font-face {
font-family: '@{fa-font-family}';
src: url('@{fa-font-path}/fontawesome-webfont.eot?v=@{fa-version}');
src: url('@{fa-font-path}/fontawesome-webfont.eot?#iefix&v=@{fa-version}') format('embedded-opentype'),
url('@{fa-font-path}/fontawesome-webfont.woff2?v=@{fa-version}') format('woff2'),
url('@{fa-font-path}/fontawesome-webfont.woff?v=@{fa-version}') format('woff'),
url('@{fa-font-path}/fontawesome-webfont.ttf?v=@{fa-version}') format('truetype'),
url('@{fa-font-path}/fontawesome-webfont.svg?v=@{fa-version}#fontawesomeregular') format('svg');
// src: url('@{fa-font-path}/FontAwesome.otf') format('opentype'); // used when developing fonts
src: url('@{fa-font-path}/forkawesome-webfont.eot?v=@{fa-version}');
src: url('@{fa-font-path}/forkawesome-webfont.eot?#iefix&v=@{fa-version}') format('embedded-opentype'),
url('@{fa-font-path}/forkawesome-webfont.woff2?v=@{fa-version}') format('woff2'),
url('@{fa-font-path}/forkawesome-webfont.woff?v=@{fa-version}') format('woff'),
url('@{fa-font-path}/forkawesome-webfont.ttf?v=@{fa-version}') format('truetype'),
url('@{fa-font-path}/forkawesome-webfont.svg?v=@{fa-version}#forkawesomeregular') format('svg');
// src: url('@{fa-font-path}/ForkAwesome.otf') format('opentype'); // used when developing fonts
font-weight: normal;
font-style: normal;
}

View File

@ -4,10 +4,9 @@
@fa-font-path: "../fonts";
@fa-font-size-base: 14px;
@fa-line-height-base: 1;
//@fa-font-path: "//netdna.bootstrapcdn.com/font-awesome/4.7.0/fonts"; // for referencing Bootstrap CDN font files directly
@fa-css-prefix: fa;
@fa-font-family: FontAwesome;
@fa-version: "4.7.0";
@fa-font-family: ForkAwesome;
@fa-version: "0.4.7";
@fa-border-color: #eee;
@fa-inverse: #fff;
@fa-li-width: (30em / 14);

View File

@ -2,16 +2,16 @@
---
PATH := ../node_modules/.bin:$(PATH)
FA_ROOT_DIRECTORY = assets/font-awesome
FA_LESS_DIRECTORY = assets/font-awesome/less
FA_SCSS_DIRECTORY = assets/font-awesome/scss
FA_CSS_DIRECTORY = assets/font-awesome/css
FA_ROOT_DIRECTORY = assets/fork-awesome
FA_LESS_DIRECTORY = assets/fork-awesome/less
FA_SCSS_DIRECTORY = assets/fork-awesome/scss
FA_CSS_DIRECTORY = assets/fork-awesome/css
FA_LESS_MODERN = ${FA_LESS_DIRECTORY}/font-awesome.less
FA_SCSS_MODERN = ${FA_SCSS_DIRECTORY}/font-awesome.scss
FA_LESS_MODERN = ${FA_LESS_DIRECTORY}/fork-awesome.less
FA_SCSS_MODERN = ${FA_SCSS_DIRECTORY}/fork-awesome.scss
FA_CSS_MODERN = ${FA_CSS_DIRECTORY}/font-awesome.css
FA_CSS_MODERN_MIN = ${FA_CSS_DIRECTORY}/font-awesome.min.css
FA_CSS_MODERN = ${FA_CSS_DIRECTORY}/fork-awesome.css
FA_CSS_MODERN_MIN = ${FA_CSS_DIRECTORY}/fork-awesome.min.css
SITE_LESS_DIRECTORY = assets/less
SITE_CSS_DIRECTORY = assets/css
@ -24,13 +24,13 @@ build:
@mkdir -p ${FA_CSS_DIRECTORY}
bundle exec lessc ${FA_LESS_MODERN} > ${FA_CSS_MODERN}
bundle exec lessc --compress ${FA_LESS_MODERN} > ${FA_CSS_MODERN_MIN}
bundle exec lessc ${FA_LESS_MODERN} > ${FA_CSS_MODERN_MIN}
# sass ${FA_SCSS_MODERN} ${FA_CSS_MODERN}
bundle exec lessc --compress ${SITE_LESS} > ${SITE_CSS}
bundle exec lessc ${SITE_LESS} > ${SITE_CSS}
cp -r ${FA_ROOT_DIRECTORY}/* ../
mv README.md-nobuild ../README.md
cd assets && mv font-awesome font-awesome-{{ site.fontawesome.version }} && zip -r9 font-awesome-{{ site.fontawesome.version }}.zip font-awesome-{{ site.fontawesome.version }} && mv font-awesome-{{ site.fontawesome.version }} font-awesome
cd assets && mv fork-awesome fork-awesome-{{ site.forkawesome.version }} && zip -r9 fork-awesome-{{ site.forkawesome.version }}.zip fork-awesome-{{ site.forkawesome.version }} && mv fork-awesome-{{ site.forkawesome.version }} fork-awesome
find .. -type f ! -perm 644 -exec chmod 644 {} \;

Binary file not shown.

After

Width:  |  Height:  |  Size: 151 KiB

Binary file not shown.

File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 435 KiB

Binary file not shown.

Binary file not shown.

View File

@ -1,6 +1,6 @@
---
---
/* Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen
/* {{ site.forkawesome.name }} uses the Unicode Private Use Area (PUA) to ensure screen
readers do not read off random characters that represent icons */
{% for icon in icons %}{% for alias in icon.aliases %}
.@{fa-css-prefix}-{{ alias }}:before,{% endfor %}

View File

@ -3,13 +3,13 @@
@font-face {
font-family: '@{fa-font-family}';
src: url('@{fa-font-path}/fontawesome-webfont.eot?v=@{fa-version}');
src: url('@{fa-font-path}/fontawesome-webfont.eot?#iefix&v=@{fa-version}') format('embedded-opentype'),
url('@{fa-font-path}/fontawesome-webfont.woff2?v=@{fa-version}') format('woff2'),
url('@{fa-font-path}/fontawesome-webfont.woff?v=@{fa-version}') format('woff'),
url('@{fa-font-path}/fontawesome-webfont.ttf?v=@{fa-version}') format('truetype'),
url('@{fa-font-path}/fontawesome-webfont.svg?v=@{fa-version}#fontawesomeregular') format('svg');
// src: url('@{fa-font-path}/FontAwesome.otf') format('opentype'); // used when developing fonts
src: url('@{fa-font-path}/forkawesome-webfont.eot?v=@{fa-version}');
src: url('@{fa-font-path}/forkawesome-webfont.eot?#iefix&v=@{fa-version}') format('embedded-opentype'),
url('@{fa-font-path}/forkawesome-webfont.woff2?v=@{fa-version}') format('woff2'),
url('@{fa-font-path}/forkawesome-webfont.woff?v=@{fa-version}') format('woff'),
url('@{fa-font-path}/forkawesome-webfont.ttf?v=@{fa-version}') format('truetype'),
url('@{fa-font-path}/forkawesome-webfont.svg?v=@{fa-version}#forkawesomeregular') format('svg');
// src: url('@{fa-font-path}/ForkAwesome.otf') format('opentype'); // used when developing fonts
font-weight: normal;
font-style: normal;
}

View File

@ -6,10 +6,9 @@
@fa-font-path: "../fonts";
@fa-font-size-base: 14px;
@fa-line-height-base: 1;
//@fa-font-path: "//netdna.bootstrapcdn.com/font-awesome/{{site.fontawesome.version}}/fonts"; // for referencing Bootstrap CDN font files directly
@fa-css-prefix: {{ site.fontawesome.css_prefix }};
@fa-font-family: {{ site.fontawesome.font_family }};
@fa-version: "{{ site.fontawesome.version }}";
@fa-css-prefix: {{ site.forkawesome.css_prefix }};
@fa-font-family: {{ site.forkawesome.font_family }};
@fa-version: "{{ site.forkawesome.version }}";
@fa-border-color: #eee;
@fa-inverse: #fff;
@fa-li-width: (30em / 14);