Windows 版 Chrome のアンチエイリアス xl1 Follow 2011-05-21 02:23:48 License: MIT License Fork0 Fav3 View1513 Chrome は text-shadow や transform を加えると文字をアンチエイリアスするが、Windows の ClearType より荒い(標準アンチエイリアス)から、メイリオなど ClearType 前提のフォントは逆に汚くなることがある。 参考:http://stackoverflow.com/questions/4046142/google-chrome-text-shadow-rendering まとめ:http://unformedbuilding.com/articles/text-shadow-on-google-chrome/ 2011/7/28 追記: Chrome dev 14.0.835.2 で、どれもアンチエイリアス効かない状態になっているのを確認しました Play Stop Reload Fullscreen Smart Phone Readme JavaScript 0 lines HTML 10 lines CSS 13 lines Chrome は text-shadow や transform を加えると文字をアンチエイリアスするが、Windows の ClearType より荒い(標準アンチエイリアス)から、メイリオなど ClearType 前提のフォントは逆に汚くなることがある。 参考:http://stackoverflow.com/questions/4046142/google-chrome-text-shadow-rendering まとめ:http://unformedbuilding.com/articles/text-shadow-on-google-chrome/ 2011/7/28 追記: Chrome dev 14.0.835.2 で、どれもアンチエイリアス効かない状態になっているのを確認しました Windows 版 Chrome のアンチエイリアス <ul> <li class="bitmap">ビットマップフォント(MS Pゴシック) <li class="bitmap antialiased">ビットマップフォント+rotate(360deg)でアンチエイリアス <li class="bitmap shadow">ビットマップフォント+text-shadowでアンチエイリアス <li class="bitmap shadow2">ビットマップフォント+text-shadow <li class="cleartype">ClearType が効くフォント(メイリオ) <li class="cleartype antialiased">ClearType+無効化してrotate(360deg)でアンチエイリアス <li class="cleartype shadow">ClearType+無効化してtext-shadowでアンチエイリアス <li class="cleartype shadow2">ClearType+無効化せずtext-shadow </ul> Windows 版 Chrome のアンチエイリアス ul { font-size: 16px; } .bitmap { font-family: "MS Pゴシック", "MS PGothic"; } .cleartype { font-family: "メイリオ", "meiryo"; } .antialiased { -webkit-transform: rotate(360deg); /*-webkit-font-smoothing: antialiased;*/ } .shadow { text-shadow: 3px 3px 1px pink; } .shadow2 { text-shadow: 0 0 0 transparent, 3px 3px 1px pink; } Chrome は text-shadow や transform を加えると文字をアンチエイリアスするが、Windows の ClearType より荒い(標準アンチエイリアス)から、メイリオなど ClearType 前提のフォントは逆に汚くなることがある。 参考:http://stackoverflow.com/questions/4046142/google-chrome-text-shadow-rendering まとめ:http://unformedbuilding.com/articles/text-shadow-on-google-chrome/ 2011/7/28 追記: Chrome dev 14.0.835.2 で、どれもアンチエイリアス効かない状態になっているのを確認しました <ul> <li class="bitmap">ビットマップフォント(MS Pゴシック) <li class="bitmap antialiased">ビットマップフォント+rotate(360deg)でアンチエイリアス <li class="bitmap shadow">ビットマップフォント+text-shadowでアンチエイリアス <li class="bitmap shadow2">ビットマップフォント+text-shadow <li class="cleartype">ClearType が効くフォント(メイリオ) <li class="cleartype antialiased">ClearType+無効化してrotate(360deg)でアンチエイリアス <li class="cleartype shadow">ClearType+無効化してtext-shadowでアンチエイリアス <li class="cleartype shadow2">ClearType+無効化せずtext-shadow </ul> ul { font-size: 16px; } .bitmap { font-family: "MS Pゴシック", "MS PGothic"; } .cleartype { font-family: "メイリオ", "meiryo"; } .antialiased { -webkit-transform: rotate(360deg); /*-webkit-font-smoothing: antialiased;*/ } .shadow { text-shadow: 3px 3px 1px pink; } .shadow2 { text-shadow: 0 0 0 transparent, 3px 3px 1px pink; } use an iframe compat browser, deer Tweet QR code QRコード 実行画面をスマートフォンで確認できます。 Embed デザインビュー コードビュー <script type="text/javascript" src="http://jsdo.it/blogparts/bs03/js?view=design"></script><p class="ttlBpJsdoit" style="width: 465px; margin: 0; text-align: right; font-size: 11px;"><a href="http://jsdo.it/xl1/bs03" title="Windows 版 Chrome のアンチエイリアス">Windows 版 Chrome のアンチエイリアス - jsdo.it - share JavaScript, HTML5 and CSS</a></p> zip tags Tweet twitter Favorite by HapHands eller86 ub-pnr: chrome Forked 並べ替え 新着 閲覧回数 お気に入り数 フォーク数 forked: Windows 版 Chrome のアンチエ.. o3o__ 00 85views 2/10/13