Skip to content

Instantly share code, notes, and snippets.

@oli
Last active October 22, 2015 07:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oli/26359c9c096ac8138903 to your computer and use it in GitHub Desktop.
Save oli/26359c9c096ac8138903 to your computer and use it in GitHub Desktop.
@font-face and serif for Japanese
/**
* @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;}
<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>
// alert('Hello world!');
{"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