Skip to content

Commit

Permalink
serve only woff2 fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasf committed Mar 28, 2020
1 parent b82df15 commit 3705af1
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 423 deletions.
4 changes: 2 additions & 2 deletions COPYING.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ Exceptions (free)

Files | Author(s) | License
--- | --- | ---
public/font/lichess.{sfd,woff,woff2} | [Dave Gandy](http://fontawesome.io/), [GitHub](https://github.com/primer/octicons), [Webalys](http://www.webalys.com/), [Zurb](http://zurb.com/playground/foundation-icon-fonts-3), [Daniel Bruce](http://www.entypo.com/), [Shapemade](http://steadysets.com/), [Sergey Shmidt](http://designmodo.com/linecons-free/) and the lichess authors | [OFL](http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL), [MIT](https://github.com/primer/octicons/blob/master/LICENSE), [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/), AGPLv3+
public/font/lichess.chess.{sfd,woff,woff2} | the [pgn4web](http://pgn4web.casaschi.net/home.html) authors | [GPLv2+](https://www.gnu.org/licenses/gpl-2.0.txt)
public/font/lichess.{sfd,woff2} | [Dave Gandy](http://fontawesome.io/), [GitHub](https://github.com/primer/octicons), [Webalys](http://www.webalys.com/), [Zurb](http://zurb.com/playground/foundation-icon-fonts-3), [Daniel Bruce](http://www.entypo.com/), [Shapemade](http://steadysets.com/), [Sergey Shmidt](http://designmodo.com/linecons-free/) and the lichess authors | [OFL](http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL), [MIT](https://github.com/primer/octicons/blob/master/LICENSE), [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/), AGPLv3+
public/font/lichess.chess.{sfd,woff2} | the [pgn4web](http://pgn4web.casaschi.net/home.html) authors | [GPLv2+](https://www.gnu.org/licenses/gpl-2.0.txt)
Noto Sans in public/font | [Google](https://fonts.google.com/specimen/Noto+Sans) | [Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0)
Roboto in public/font | [Christian Robertson](https://fonts.google.com/specimen/Roboto) | [Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0)
public/images/staunton | [James Clarke](https://github.com/clarkerubber/Staunton-Pieces) | [MIT](https://github.com/clarkerubber/Staunton-Pieces/blob/master/LICENSE)
Expand Down
4 changes: 2 additions & 2 deletions doc/edit-font.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ To edit the icon font https://lichess1.org/assets/oops/font.html
find SVG icon somewhere
`fontforge lila/public/font/lichess.sfd`
click first empty icon
file > import
file > import
right click > glyph info
set unicode
generate font woff+woff2
generate woff2 font
save sfd font
Binary file removed public/font/lichess.chess.woff
Binary file not shown.
416 changes: 0 additions & 416 deletions public/font/lichess.svg

This file was deleted.

Binary file removed public/font/lichess.woff
Binary file not shown.
2 changes: 1 addition & 1 deletion public/oops/font.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<style>
@font-face {
font-family: "lichess";
src: url("../_qFOQpH/font/lichess.woff") format("woff");
src: url("../_qFOQpH/font/lichess.woff2") format("woff2");
font-display: block;
font-weight: normal;
font-style: normal;
Expand Down
4 changes: 2 additions & 2 deletions ui/common/css/base/_fonts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
}
@font-face {
font-family: "lichess";
src: local-font("lichess.woff2") format("woff2"), local-font("lichess.woff") format("woff");
src: local-font("lichess.woff2") format("woff2");
font-display: block;
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'Noto Chess';
src: local-font("lichess.chess.woff2") format("woff2"), local-font("lichess.chess.woff") format("woff");
src: local-font("lichess.chess.woff2") format("woff2");
}
/* cyrillic-ext */
@font-face {
Expand Down

0 comments on commit 3705af1

Please sign in to comment.