Last active
October 22, 2015 07:48
-
-
Save oli/26359c9c096ac8138903 to your computer and use it in GitHub Desktop.
@font-face and serif for Japanese
This file contains hidden or 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 | |
*/ | |
@import url(https://fonts.googleapis.com/css?family=Source+Sans+Pro); | |
body {font-family: serif;} | |
.test {font-family: "Source Sans Pro", serif;} |
This file contains hidden or 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 hidden or 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 hidden or 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