Skip to content

Instantly share code, notes, and snippets.

@ambar
Created October 8, 2012 10:44
Show Gist options
  • Save ambar/3851910 to your computer and use it in GitHub Desktop.
Save ambar/3851910 to your computer and use it in GitHub Desktop.
fix win/chrome punctuation bug
@font-face {
font-family: 'Helvetica Neue';
unicode-range: U+FF0C, U+3001, U+3002; /* 仅转换顿号、逗号、句号 */
src: local(PMingLiU);
}
@font-face {
font-family: sans-serif;
unicode-range: U+FF0C, U+3001, U+3002;
src: local(PMingLiU);
}
@media screen and (-webkit-min-device-pixel-ratio:0) {
@font-face {
font-family: 'Helvetica Neue';
unicode-range: U+FF0C, U+3001, U+3002; /* 仅转换顿号、逗号、句号 */
src: local('Heiti SC'), local(PMingLiU);
}
@font-face {
font-family: sans-serif;
unicode-range: U+FF0C, U+3001, U+3002;
src: local('Heiti SC'), local(PMingLiU);
}
}
@ambar
Copy link
Author

ambar commented Oct 8, 2012

  • font-family 只能单一指定;
  • unicode-rangesrc 可以多重指定;
  • 细明体标点样式为「台港式」,顿号、逗号、句号垂直居中;

详见:http://ethantw.net/lab/han/biaodian_fuhao_yangshi.html

@ambar
Copy link
Author

ambar commented Oct 10, 2012

Firefox 17 不支持。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment