Skip to content

Commit

Permalink
[2.3.1] add support of Material Icons font
Browse files Browse the repository at this point in the history
  • Loading branch information
rajdee committed Nov 13, 2019
1 parent ed91ad9 commit 4b927c2
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 17 deletions.
6 changes: 2 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
## 2.3.0 (2019-11-11)
## 2.3.1 (2019-11-13)

Added: Support of Google fonts unicode-range subsets
Fixed: refactoring the plugin script
Added: Support of Material Icons font
Updated: google-fonts-complete dependency
Updated: dev dependecies
Updated: package.json
Updated: eslint rules


## 2.2.2 (2019-06-13)
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ body {
```

* Want to use **[Google Fonts](#foundries)**? I’ll add them for you.
* Want to use **Material Icons**?
```css
body {
font-family: "Material Icons";
}
```
* Want to use the visitor’s **local** copy of a font? Done.
* Want to **[host](#hosted)** your own fonts? Just tell me where they are, and I’ll do the rest.
* Want to load a font **[async](#async)** and only use it after it has been loaded? I can do that too.
Expand Down
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "postcss-font-magician",
"version": "2.3.0",
"version": "2.3.1",
"description": "PostCSS plugin that magically generates all the @font-face rules",
"author": "Jonathan Neal <jonathantneal@hotmail.com>",
"contributors": [
Expand Down Expand Up @@ -29,7 +29,7 @@
"dependencies": {
"bootstrap-fonts-complete": "^1.0.0",
"directory-fonts-complete": "^1.2.0",
"google-fonts-complete": "^2.0.0",
"google-fonts-complete": "^2.1.0",
"postcss": "^7.0.21"
},
"devDependencies": {
Expand All @@ -39,8 +39,7 @@
"eslint-plugin-prettier": "^3.1.1",
"husky": "^3.0.9",
"lint-staged": "^9.4.2",
"mocha": "^6.2.2",
"prettier": "^1.18.2"
"mocha": "^6.2.2"
},
"keywords": [
"postcss",
Expand Down
11 changes: 11 additions & 0 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -364,4 +364,15 @@ describe('postcss-font-magician', function() {
done
);
});

it('supports Material Icons', function(done) {
test(
'a{font-family:"Material Icons"}b{}',

'@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{}',

{},
done
);
});
});
13 changes: 4 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -918,10 +918,10 @@ globby@^10.0.1:
merge2 "^1.2.3"
slash "^3.0.0"

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

Expand Down Expand Up @@ -1749,11 +1749,6 @@ prettier-linter-helpers@^1.0.0:
dependencies:
fast-diff "^1.1.2"

prettier@^1.18.2:
version "1.18.2"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.18.2.tgz#6823e7c5900017b4bd3acf46fe9ac4b4d7bda9ea"
integrity sha512-OeHeMc0JhFE9idD4ZdtNibzY0+TPHSpSSb9h8FqtP+YnoZZ1sl8Vc9b1sasjfymH3SonAF4QcA2+mzHPhMvIiw==

progress@^2.0.0:
version "2.0.3"
resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.3.tgz#7e8cf8d8f5b8f239c1bc68beb4eb78567d572ef8"
Expand Down

0 comments on commit 4b927c2

Please sign in to comment.