Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: locally host webfonts for is-icon-ligature test #3105

Merged
merged 2 commits into from
Aug 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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