Skip to content

Instantly share code, notes, and snippets.

@pyrocat101
Created April 3, 2013 12:09
Show Gist options
  • Save pyrocat101/5300641 to your computer and use it in GitHub Desktop.
Save pyrocat101/5300641 to your computer and use it in GitHub Desktop.
CJK/Western text emphasis
/**
* CJK/Western text emphasis
*/
@font-face {
font-family: "Western Italic";
src: local("HoeflerText-Italic"),
local("Baskerville-Italic"),
local("Georgia Italic");
font-style: normal;
font-weight: normal;
}
@font-face {
font-family: "Western Italic";
src: local("HoeflerText-BlackItalic"),
local("Baskerville-BoldItalic"),
local("Georgia Bold Italic");
font-style: normal;
font-weight: bold;
}
body {
font-family: Hoefler Text, serif;
}
em {
font-family: "Western Italic", STKaiti, Kai, Kaiti, serif;
font-style: normal;
}
p {
font-size: 3em;
margin: 0;
line-height: 1.5;
}
<p>我<em>爱</em>你</p>
<p>I <em>love</em> you</p>
<p>I <em>do <strong>love</strong></em> you</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