From: Joe Wreschnig Date: Thu, 2 Oct 2014 00:48:25 +0000 (+0200) Subject: Use Font Standard instead of Font Awesome. X-Git-Url: https://git.yukkurigames.com/?p=yuu.git;a=commitdiff_plain;h=6bd81f79de7d4120ba8b4c4d0dc8c98689a00da8 Use Font Standard instead of Font Awesome. (https://korewanetadesu.com/pages/fontstandard.html) Conflicts: BUGS.org src/index.html --- diff --git a/src/ext/font-awesome.woff b/src/ext/font-awesome.woff deleted file mode 100644 index 9eaecb3..0000000 Binary files a/src/ext/font-awesome.woff and /dev/null differ diff --git a/src/ext/fontstandard.woff b/src/ext/fontstandard.woff new file mode 100644 index 0000000..a15f369 Binary files /dev/null and b/src/ext/fontstandard.woff differ diff --git a/src/yuu/data/yuu.css b/src/yuu/data/yuu.css index 86b933f..4e2eb23 100644 --- a/src/yuu/data/yuu.css +++ b/src/yuu/data/yuu.css @@ -5,77 +5,77 @@ */ @font-face { - font-family: 'FontAwesome'; - src: url('../../ext/font-awesome.woff') format('woff'); - font-weight: normal; - font-style: normal; + font-family: 'Icons'; + src: url('../../ext/fontstandard.woff') format('woff'); + font-weight: normal; + font-style: normal; } @font-face { - font-family: 'Fira Sans'; + font-family: 'Sans'; src: url('../../ext/FiraSans-UltraLight.woff'); font-weight: 200; font-style: normal; } @font-face { - font-family: 'Fira Sans'; + font-family: 'Sans'; src: url('../../ext/FiraSans-UltraLightItalic.woff'); font-weight: 200; font-style: italic; } @font-face { - font-family: 'Fira Sans'; + font-family: 'Sans'; src: url('../../ext/FiraSans-Regular.woff'); font-weight: 400; font-style: normal; } @font-face { - font-family: 'Fira Sans'; + font-family: 'Sans'; src: url('../../ext/FiraSans-Italic.woff'); font-weight: 400; font-style: italic; } @font-face { - font-family: 'Fira Sans'; + font-family: 'Sans'; src: url('../../ext/FiraSans-Bold.woff'); font-weight: 700; font-style: normal; } @font-face { - font-family: 'Fira Sans'; + font-family: 'Sans'; src: url('../../ext/FiraSans-BoldItalic.woff'); font-weight: 700; font-style: italic; } @font-face { - font-family: 'Fira Mono'; + font-family: 'Mono'; src: url('../../ext/FiraMono-Regular.woff'); font-weight: 400; font-style: normal; } @font-face { - font-family: 'Fira Mono'; + font-family: 'Mono'; src: url('../../ext/FiraMono-Bold.woff'); font-weight: 700; font-style: normal; } pre, tt, code, kbd { - font-family: 'Fira Mono', FontAwesome, monospace; + font-family: Mono, Icons, monospace; } body { overflow: hidden; margin: 0; padding: 0; - font-family: 'Fira Sans', FontAwesome, sans-serif; + font-family: Sans, Icons, sans-serif; } #yuu-canvas { @@ -235,7 +235,7 @@ div[data-yuu-command=dismiss] { } div[data-yuu-command=dismiss]:after { - content: "\f00d"; + content: "\274c"; } /* Table layout for options screens. In general, two or three columns, @@ -279,11 +279,11 @@ input[type=checkbox][data-yuu-command] + label[for]:before { } input[type=checkbox][data-yuu-command] + label[for]:before { - content: "\f096"; + content: "\2610"; } input[type=checkbox][data-yuu-command]:checked + label[for]:before { - content: "\f046"; + content: "\2611"; } input[type=checkbox][data-yuu-command]:focus + label[for] { @@ -319,11 +319,11 @@ input[type=range][data-yuu-command]::-moz-range-thumb { /* Special-case icons for the mute checkbox. */ input[type=checkbox][data-yuu-command=mute]:checked + label[for]:before { - content: "\f026"; + content: "\1f508"; } input[type=checkbox][data-yuu-command=mute] + label[for]:before { - content: "\f028"; + content: "\1f50a"; } @-moz-keyframes spin { @@ -342,7 +342,7 @@ input[type=checkbox][data-yuu-command=mute] + label[for]:before { } .yuu-spinner:after { - content: "◔"; + content: "\1f501"; -webkit-animation: spin 1s linear infinite; -moz-animation: spin 1s linear infinite; animation: spin 1s linear infinite; diff --git a/src/yuu/director.js b/src/yuu/director.js index 42d891b..7f90fd4 100644 --- a/src/yuu/director.js +++ b/src/yuu/director.js @@ -369,7 +369,7 @@ yuu.downloadURL( yuu.canvas.toDataURL("image/png"), document.title + " (" + date + ").png"); - this.toast("\uf030", 0.5, "screenshot"); + this.toast("📷", 0.5, "screenshot"); } catch (exc) { var dialog = yuu.showError(exc); if (dialog) @@ -674,7 +674,7 @@ yuu.defaultKeybinds.bind("f11", "++fullscreen"); yuu.defaultKeybinds.bind("f12", "screenshot"); yuu.defaultKeybinds.bind( - "control+s", "++mute && toast \uf026 1 mute || toast \uf028 1 mute"); + "control+s", "++mute && toast 🔈 1 mute || toast 🔊 1 mute"); var director = yuu.director = new yuu.Director(); /** The standard director */