ビットマップ好きのサイトに対処する

たまたまウェブ検索から訪れたサイトで何故かビットマップフォントで表示されてしまった。ちょいと失礼して CSS を覗くと "Gothic" とだけ書かれた箇所がある。

font-family:"MS PGothic", "MS Gothic", Osaka, Gothic, sans-serif;

$ fc-list | Grep ^Gothic
Gothic:style=Bold
Gothic:style=Italic
Gothic:style=Regular
Gothic:style=Bold Italic
おや?確かにGothicというフォントがあるな。しかし Gothic というフォントファミリーなどどこで指定されているんだろうか?
/etc/fonts/conf.d/* の中には無かったので Fallback みたいなもんかな?
ビットマップ表示されるのが腹立つので /etc/fonts/local.conf に書き込んでやった。
<match target="pattern">
  <test qual="any" name="family">
    <string>Gothic</string>
  </test>
  <edit name="family" mode="assign" binding="same">
    <string>VL PGothic</string>
  </edit>
</match> 
Before
After

コメント

このブログの人気の投稿

米 トランス脂肪酸使用規制へ

手の平で操作する空中マウス OZUPAD

BusyBox HTTPD で Drupal を動かそう

Android の RUU から rom.zip を取り出す

radiko.jp の再生、録音で rtmpdump が Segmentation fault

Alpine LinuxのAPKBUILDに挑戦

VirtualBoxのキーリピート現象