Skip to content

Commit

Permalink
tests: locally host webfonts for is-icon-ligature test (#3105)
Browse files Browse the repository at this point in the history
* tests: locally host webfonts for is-icon-ligature test

* license
  • Loading branch information
straker authored Aug 3, 2021
1 parent 87cfc0b commit b494d09
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 7 deletions.
Binary file added test/assets/FiraCode-Regular.woff
Binary file not shown.
Binary file added test/assets/LigatureSymbols.woff
Binary file not shown.
Binary file added test/assets/MaterialIcons.woff2
Binary file not shown.
Binary file added test/assets/Roboto.woff2
Binary file not shown.
21 changes: 21 additions & 0 deletions test/assets/webfont-attribution-license.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Webfont Attribution and Licenses

## FiraCode-Regular:

https://github.com/tonsky/FiraCode
License: SIL Open Font License 1.1

## Ligature Symbols

https://github.com/kudakurage/LigatureSymbols
License: SIL Open Font License 1.1

## Material Icons

https://google.github.io/material-design-icons
License: Apache License Version 2.0

## Roboto

https://fonts.google.com/specimen/Roboto
License: Apache License, Version 2.0
11 changes: 4 additions & 7 deletions test/commons/text/is-icon-ligature.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,17 @@ describe('text.isIconLigature', function() {

var firaFont = new FontFace(
'Fira Code',
'url(https://cdn.jsdelivr.net/gh/tonsky/[email protected]/distr/woff/FiraCode-Regular.woff)'
'url(/test/assets/FiraCode-Regular.woff)'
);
var ligatureFont = new FontFace(
'LigatureSymbols',
'url(https://cdn.jsdelivr.net/gh/kudakurage/LigatureSymbols/LigatureSymbols-2.11.woff)'
'url(/test/assets/LigatureSymbols.woff)'
);
var materialFont = new FontFace(
'Material Icons',
'url(https://fonts.gstatic.com/s/materialicons/v48/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff2)'
);
var robotoFont = new FontFace(
'Roboto',
'url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu4mxKKTU1Kg.woff2)'
'url(/test/assets/MaterialIcons.woff2)'
);
var robotoFont = new FontFace('Roboto', 'url(/test/assets/Roboto.woff2)');

window.Promise.all([
firaFont.load(),
Expand Down

0 comments on commit b494d09

Please sign in to comment.