-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit aeadf2d
Showing
13 changed files
with
3,873 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"extends": "eslint:recommended", | ||
"env": { | ||
"browser": true, | ||
"node": true, | ||
"es6": true | ||
}, | ||
"rules": { | ||
"semi": 2, | ||
"constructor-super": 2, | ||
"no-class-assign": 2, | ||
"no-const-assign": 2, | ||
"no-console": 0, | ||
"no-dupe-class-members": 2, | ||
"no-empty-pattern": 2, | ||
"no-this-before-super": 2, | ||
"prefer-const": 2, | ||
"prefer-reflect": 2, | ||
"require-yield": 2 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules/ | ||
*.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
node_modules/ | ||
test/ | ||
.editorconfig | ||
.eslintrc | ||
.gitignore | ||
circle.yml | ||
CANDIDATE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
COPYRIGHT (c) 2016 orleika | ||
|
||
MIT License | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining | ||
a copy of this software and associated documentation files (the | ||
"Software"), to deal in the Software without restriction, including | ||
without limitation the rights to use, copy, modify, merge, publish, | ||
distribute, sublicense, and/or sell copies of the Software, and to | ||
permit persons to whom the Software is furnished to do so, subject to | ||
the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be | ||
included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE | ||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION | ||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | ||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](LICENSE) | ||
[![CircleCI](https://circleci.com/gh/orleika/available-fonts.svg?style=shield&circle-token=e0f2f8002596ebddcb6e53da80ebfce4d7d9b03c)](https://circleci.com/gh/orleika/available-fonts) | ||
|
||
# Available Fonts | ||
|
||
Getting available fonts on browser without flash | ||
see [Demo Page](https://orleika.github.io/available-fonts/) | ||
|
||
This methods based on http://www.lalit.org/lab/javascript-css-font-detect/ | ||
|
||
|
||
## Usage | ||
|
||
simple | ||
``` | ||
var testFonts = ['font family...']; | ||
var availableFontsList = availableFonts(testFonts); | ||
``` | ||
|
||
if you use our test fonts list, try below code. | ||
``` | ||
(function() { | ||
var xhr = new XMLHttpRequest(); | ||
xhr.onreadystatechange = function() { | ||
if (xhr.readyState === 4 && xhr.status === 200) { | ||
var testFonts = JSON.parse(xhr.responseText).testfonts; | ||
var availableFontsList = availableFonts(testFonts); | ||
document.body.appendChild(document.createTextNode(availableFontsList.join(', '))); | ||
} | ||
}; | ||
xhr.open('GET', 'testfonts.json'); | ||
xhr.send(); | ||
}()) | ||
``` | ||
|
||
## Feature Works | ||
|
||
* Optimize test fonts list for Browser Fingerprinting | ||
|
||
## License | ||
|
||
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,217 @@ | ||
A-OTF UD新ゴ Pro B | ||
A-OTF UD新丸ゴ Pro B | ||
A-OTF じゅん Pro 101 | ||
A-OTF リュウミン Pro L-KL | ||
A-OTF 中ゴシックBBB Pro Medium | ||
A-OTF 太ゴB101 Pro Bold | ||
A-OTF 太ミンA101 Pro Bold | ||
A-OTF 見出ゴMB31 Pro MB31 | ||
A-OTF 見出ミンMA31 Pro MA31 | ||
Arial | ||
Arial Black | ||
Arial Narrow | ||
Book Antiqua | ||
Bookman Old Style | ||
Bookshelf Symbol 7 | ||
Bradley Hand ITC | ||
Calibri | ||
Calibri Light | ||
Cambria | ||
Cambria Math | ||
Candara | ||
Century | ||
Century Gothic | ||
Comic Sans MS | ||
Consolas | ||
Constantia | ||
Corbel | ||
Courier New | ||
Ebrima | ||
Franklin Gothic Medium | ||
Freestyle Script | ||
French Script MT | ||
Gabriola | ||
Gadugi | ||
Garamond | ||
Georgia | ||
HGP創英角ゴシックUB | ||
HGP創英角ポップ体 | ||
HGP創英プレゼンスEB | ||
HGP教科書体 | ||
HGP明朝B | ||
HGP明朝E | ||
HGP行書体 | ||
HGPゴシックE | ||
HGPゴシックM | ||
HGS創英角ゴシックUB | ||
HGS創英角ポップ体 | ||
HGS創英プレゼンスEB | ||
HGS教科書体 | ||
HGS明朝B | ||
HGS明朝E | ||
HGS行書体 | ||
HGSゴシックE | ||
HGSゴシックM | ||
HG丸ゴシックM-PRO | ||
HG創英角ゴシックUB | ||
HG創英角ポップ体 | ||
HG創英プレゼンスEB | ||
HG教科書体 | ||
HG明朝B | ||
HG明朝E | ||
HG正楷書体-PRO | ||
HG行書体 | ||
HGゴシックE | ||
HGゴシックM | ||
Impact | ||
Javanese Text | ||
Juice ITC | ||
Kristen ITC | ||
Lato | ||
Lato Black | ||
Lato Hairline | ||
Lato Light | ||
Leelawadee | ||
Leelawadee UI | ||
Leelawadee UI Semilight | ||
Lucida Console | ||
Lucida Handwriting | ||
Lucida Sans Unicode | ||
Malgun Gothic | ||
Malgun Gothic Semilight | ||
Marlett | ||
Meiryo UI | ||
Microsoft Himalaya | ||
Microsoft JhengHei | ||
Microsoft JhengHei Light | ||
Microsoft JhengHei UI | ||
Microsoft JhengHei UI Light | ||
Microsoft New Tai Lue | ||
Microsoft PhagsPa | ||
Microsoft Sans Serif | ||
Microsoft Tai Le | ||
Microsoft Uighur | ||
Microsoft YaHei | ||
Microsoft YaHei Light | ||
Microsoft YaHei UI | ||
Microsoft YaHei UI Light | ||
Microsoft Yi Baiti | ||
MigMix 1P | ||
Migu 1M | ||
Migu 2M | ||
MingLiU-ExtB | ||
MingLiU_HKSCS-ExtB | ||
Mistral | ||
Mongolian Baiti | ||
Monotype Corsiva | ||
MS Outlook | ||
MS Reference Sans Serif | ||
MS Reference Specialty | ||
MS UI Gothic | ||
MT Extra | ||
MV Boli | ||
Myanmar Text | ||
Myriad Pro | ||
Myrica M | ||
Myrica N | ||
Myrica P | ||
MyricaM M | ||
MyricaM N | ||
MyricaM P | ||
NFモトヤアポロ Std W1 | ||
NFモトヤシーダ Std W1 | ||
NFモトヤバーチ Std W1 | ||
Nirmala UI | ||
Nirmala UI Semilight | ||
Noto Emoji | ||
Noto Sans CJK JP Black | ||
Noto Sans CJK JP Bold | ||
Noto Sans CJK JP DemiLight | ||
Noto Sans CJK JP Light | ||
Noto Sans CJK JP Medium | ||
Noto Sans CJK JP Regular | ||
Noto Sans CJK JP Thin | ||
NSimSun | ||
OCRB | ||
Palatino Linotype | ||
Papyrus | ||
PMingLiU-ExtB | ||
Pristina | ||
Ricty Diminished | ||
Ricty Diminished Discord | ||
Roboto | ||
Roboto Black | ||
Roboto Light | ||
Roboto Medium | ||
Roboto Thin | ||
Segoe MDL2 Assets | ||
Segoe Print | ||
Segoe Script | ||
Segoe UI | ||
Segoe UI Black | ||
Segoe UI Emoji | ||
Segoe UI Historic | ||
Segoe UI Light | ||
Segoe UI Semibold | ||
Segoe UI Semilight | ||
Segoe UI Symbol | ||
SimSun | ||
SimSun-ExtB | ||
Sitka Banner | ||
Sitka Display | ||
Sitka Heading | ||
Sitka Small | ||
Sitka Subheading | ||
Sitka Text | ||
Sylfaen | ||
Symbol | ||
Tahoma | ||
Tempus Sans ITC | ||
Times New Roman | ||
Trebuchet MS | ||
Verdana | ||
Webdings | ||
Wingdings | ||
Wingdings 2 | ||
Wingdings 3 | ||
Yu Gothic UI | ||
Yu Gothic UI Light | ||
Yu Gothic UI Semibold | ||
Yu Gothic UI Semilight | ||
まるもゴジック | ||
ピグモ 01 | ||
マキナス | ||
メイリオ | ||
小塚ゴシック Pr6N M | ||
小塚明朝 Pr6N R | ||
游ゴシック | ||
游ゴシック Light | ||
游ゴシック Medium | ||
游明朝 | ||
游明朝 Demibold | ||
游明朝 Light | ||
源柔ゴシック Bold | ||
源柔ゴシック ExtraLight | ||
源柔ゴシック Heavy | ||
源柔ゴシック Light | ||
源柔ゴシック Medium | ||
源柔ゴシック Normal | ||
源柔ゴシック Regular | ||
源柔ゴシックP Bold | ||
源柔ゴシックP ExtraLight | ||
源柔ゴシックP Heavy | ||
源柔ゴシックP Light | ||
源柔ゴシックP Medium | ||
源柔ゴシックP Normal | ||
源柔ゴシックP Regular | ||
源柔ゴシック等幅 Bold | ||
源柔ゴシック等幅 ExtraLight | ||
源柔ゴシック等幅 Heavy | ||
源柔ゴシック等幅 Light | ||
源柔ゴシック等幅 Medium | ||
源柔ゴシック等幅 Normal | ||
源柔ゴシック等幅 Regular | ||
MS ゴシック | ||
MS 明朝 | ||
MS Pゴシック | ||
MS P明朝 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
machine: | ||
node: | ||
version: 6.1.0 | ||
|
||
dependencies: | ||
post: | ||
- wget http://selenium-release.storage.googleapis.com/2.53/selenium-server-standalone-2.53.1.jar | ||
- java -jar selenium-server-standalone-2.53.1.jar: | ||
background: true | ||
|
||
test: | ||
pre: | ||
- node_modules/.bin/http-server: | ||
background: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Available Fonts</title> | ||
</head> | ||
|
||
<body> | ||
<script src="src/available-fonts.js"></script> | ||
<script> | ||
(function() { | ||
var xhr = new XMLHttpRequest(); | ||
xhr.onreadystatechange = function() { | ||
if (xhr.readyState === 4 && xhr.status === 200) { | ||
var testFonts = JSON.parse(xhr.responseText).testFonts; | ||
document.body.appendChild(document.createTextNode(availableFonts(testFonts).join(', '))); | ||
} | ||
}; | ||
xhr.open('GET', 'test-fonts.json'); | ||
xhr.send(); | ||
}()) | ||
</script> | ||
</body> | ||
|
||
</html> |
Oops, something went wrong.