Skip to content

Commit 4b927c2

Browse files
committed
[2.3.1] add support of Material Icons font
1 parent ed91ad9 commit 4b927c2

File tree

5 files changed

+26
-17
lines changed

5 files changed

+26
-17
lines changed

CHANGELOG.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
## 2.3.0 (2019-11-11)
1+
## 2.3.1 (2019-11-13)
22

3-
Added: Support of Google fonts unicode-range subsets
4-
Fixed: refactoring the plugin script
3+
Added: Support of Material Icons font
54
Updated: google-fonts-complete dependency
65
Updated: dev dependecies
76
Updated: package.json
8-
Updated: eslint rules
97

108

119
## 2.2.2 (2019-06-13)

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ body {
3232
```
3333

3434
* Want to use **[Google Fonts](#foundries)**? I’ll add them for you.
35+
* Want to use **Material Icons**?
36+
```css
37+
body {
38+
font-family: "Material Icons";
39+
}
40+
```
3541
* Want to use the visitor’s **local** copy of a font? Done.
3642
* Want to **[host](#hosted)** your own fonts? Just tell me where they are, and I’ll do the rest.
3743
* Want to load a font **[async](#async)** and only use it after it has been loaded? I can do that too.

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "postcss-font-magician",
3-
"version": "2.3.0",
3+
"version": "2.3.1",
44
"description": "PostCSS plugin that magically generates all the @font-face rules",
55
"author": "Jonathan Neal <[email protected]>",
66
"contributors": [
@@ -29,7 +29,7 @@
2929
"dependencies": {
3030
"bootstrap-fonts-complete": "^1.0.0",
3131
"directory-fonts-complete": "^1.2.0",
32-
"google-fonts-complete": "^2.0.0",
32+
"google-fonts-complete": "^2.1.0",
3333
"postcss": "^7.0.21"
3434
},
3535
"devDependencies": {
@@ -39,8 +39,7 @@
3939
"eslint-plugin-prettier": "^3.1.1",
4040
"husky": "^3.0.9",
4141
"lint-staged": "^9.4.2",
42-
"mocha": "^6.2.2",
43-
"prettier": "^1.18.2"
42+
"mocha": "^6.2.2"
4443
},
4544
"keywords": [
4645
"postcss",

test/index.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,4 +364,15 @@ describe('postcss-font-magician', function() {
364364
done
365365
);
366366
});
367+
368+
it('supports Material Icons', function(done) {
369+
test(
370+
'a{font-family:"Material Icons"}b{}',
371+
372+
'@font-face{font-family:"Material Icons";font-style:normal;font-weight:400;src:url(//fonts.gstatic.com/s/materialicons/v48/flUhRq6tzZclQEJ-Vdg-IuiaDsNY.eot?#) format("eot"),url(//fonts.gstatic.com/s/materialicons/v48/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2) format("woff2"),url(//fonts.gstatic.com/s/materialicons/v48/flUhRq6tzZclQEJ-Vdg-IuiaDsNa.woff) format("woff")}a{font-family:"Material Icons"}b{}',
373+
374+
{},
375+
done
376+
);
377+
});
367378
});

yarn.lock

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -918,10 +918,10 @@ globby@^10.0.1:
918918
merge2 "^1.2.3"
919919
slash "^3.0.0"
920920

921-
google-fonts-complete@^2.0.0:
922-
version "2.0.0"
923-
resolved "https://registry.yarnpkg.com/google-fonts-complete/-/google-fonts-complete-2.0.0.tgz#d5c764fa9999e95edade159447ca13abf69c1d0e"
924-
integrity sha512-OEvi5aC9ypmg8Nahtl3kh5EeCgzVsW3RLJxuP27/irkmE3KozqN/uNzIA8JAAg/yTr5194i/8q6iN/ibbcNhDA==
921+
google-fonts-complete@^2.1.0:
922+
version "2.1.0"
923+
resolved "https://registry.yarnpkg.com/google-fonts-complete/-/google-fonts-complete-2.1.0.tgz#bb22d446290e2cda54b6fe56add406b0b17914ef"
924+
integrity sha512-VRTGBvWdYE7NJuv/KbKp4hakK8QgsV9Z7LRAPdXmQ+cDqjZYZAMEKpBUYeO+uWsnTvMNaAtxTrFVCZrTGyb8VQ==
925925
dependencies:
926926
postcss "^7.0.18"
927927

@@ -1749,11 +1749,6 @@ prettier-linter-helpers@^1.0.0:
17491749
dependencies:
17501750
fast-diff "^1.1.2"
17511751

1752-
prettier@^1.18.2:
1753-
version "1.18.2"
1754-
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.18.2.tgz#6823e7c5900017b4bd3acf46fe9ac4b4d7bda9ea"
1755-
integrity sha512-OeHeMc0JhFE9idD4ZdtNibzY0+TPHSpSSb9h8FqtP+YnoZZ1sl8Vc9b1sasjfymH3SonAF4QcA2+mzHPhMvIiw==
1756-
17571752
progress@^2.0.0:
17581753
version "2.0.3"
17591754
resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.3.tgz#7e8cf8d8f5b8f239c1bc68beb4eb78567d572ef8"

0 commit comments

Comments
 (0)