Created
September 2, 2015 02:35
-
-
Save oli/fecf74ed53aa055234ba to your computer and use it in GitHub Desktop.
@font-face and serif for Japanese
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
/** | |
* @font-face and serif for Japanese | |
*/ | |
body {font-face: serif;} | |
.test {font-face: "test", serif;} |
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
<p>Some text that will inherit the default Serif font. | |
Japanese text displays in the default serif-equivalent Mincho font:<br /> | |
日本語:明朝フォント</p> | |
<p class="test">As the font “test” is not available, this text should inherit the default Serif font. | |
However in Safari 8.0.8 Japanese text displays in the default sans-equivalent Gothic font:<br /> | |
日本語:ゴシックフォント</p> | |
<p>Chrome and Firefox use a Mincho font as expected</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
// alert('Hello world!'); |
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
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment