平衡点


2008/11/10

_ evince での日本語表示

以前 twitter で henrich さんから教えてもらったこと.

Debian lenney を install して, とくに設定をせずに evince でPDF を表示すると明朝体もゴシック体で表示される.

これはfontconfig において Ryumin と Gothic-BBB が設定されていない(優先的に VL Gothic となるように設定されている)から.

そんな訳で, 例えば, 以下の様に

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!-- section:Ryumin for IPA Mincho:start -->
<match target="pattern">
  <test qual="any" name="family">
    <string>Ryumin</string>
  </test>
  <edit name="family" mode="prepend" binding="strong">
    <string>IPA Mincho</string>
  </edit>
</match>
<!-- section:Ryumin for IPA Mincho:end -->
<!-- section:Ryumin for IPA Gothic:start -->
<match target="pattern">
  <test qual="any" name="family">
    <string>Gothic-BBB</string>
  </test>
  <edit name="family" mode="prepend" binding="strong">
    <string>IPA P Gothic</string>
  </edit>
</match>
<!-- section:Ryumin for IPA Gothic:end -->
</fontconfig>

設定前はこんな感じ.

設定後.望んだ通り, 明朝体とゴシック体が出ましたよ.


連絡先など
最近の日記
  • 2024/04/28
    • 1. CF-SR3 での生活環境構築 (できてない)
  • 2024/03/29
    • 1. Debian GNU/Linux on CF-SR3
  • 2024/03/25
    • 1. org-mode → beamer でのリスト記号の一時変更
  • 2024/03/22
    • 1. 静的htmlによるGit Repository Browser
  • 2024/02/15
    • 1. org-mode → bemaer での番号付きリスト
一覧
2006|03|04|05|06|07|08|09|10|11|12|
2007|01|02|03|04|05|06|07|08|09|10|11|12|
2008|01|02|03|04|05|06|07|08|09|10|11|12|
2009|01|02|03|04|05|06|07|08|09|10|11|12|
2010|01|02|03|04|05|06|07|08|09|10|11|12|
2011|01|02|03|04|05|06|07|08|09|10|11|12|
2012|02|03|04|08|09|10|11|12|
2013|01|02|03|04|05|06|08|09|10|11|12|
2014|01|02|04|05|06|07|08|09|10|11|12|
2015|01|02|03|04|05|06|07|09|10|
2016|02|03|
2017|01|02|03|05|06|07|09|11|12|
2018|03|06|07|10|11|12|
2019|01|02|03|04|05|07|10|12|
2020|01|02|03|04|05|08|09|10|11|12|
2021|01|02|03|05|06|07|08|09|11|12|
2022|01|02|03|04|05|06|08|10|11|12|
2023|02|03|04|06|08|09|11|12|
2024|01|02|03|04|
Back to Top ▲