OpenIndiana フォントの追加

2020年2月6日
OpenIndiana

OpenIndiana Hipster 2019.10にフォントの追加を行う。まず、OpenIndiana関連のリポジトリからImage Packaging System (IPS)のpkgコマンドを使って日本語フォントを検索するとIPAfontが登録されていたがIPAfont自体は、インストールされていたのでipafont-minchoの明朝フォントのみインストールする。

 pkg search font | grep Japanese
pkg.description set    IPAfont - Japanese TrueType Gothic font                                                    pkg:/system/font/truetype/ipafont@0.5.11-2013.0.0.0
pkg.description set    IPAfont - Japanese TrueType mincho font                                                    pkg:/system/font/truetype/ipafont-mincho@0.5.11-2013.0.0.0
pkg.summary     set    IPAfont - Japanese TrueType Gothic font                                                    pkg:/system/font/truetype/ipafont@0.5.11-2013.0.0.0
pkg.summary     set    IPAfont - Japanese TrueType mincho font                                                    pkg:/system/font/truetype/ipafont-mincho@0.5.11-2013.0.0.0
$ sudo pkg install pkg:/system/font/truetype/ipafont@0.5.11-2013.0.0.0
このイメージは更新の必要はありません。
nakada@openindiana:~$ sudo pkg install pkg:/system/font/truetype/ipafont-mincho@0.5.11-2013.0.0.0
 インストールするパッケージ:   1
      変更するサービス:   1
      ブート環境の作成: いいえ
バックアップブート環境の作成: いいえ

ダウンロード                                 パッケージ          ファイル      転送 (MB)      速度
完了                                       1/1           3/3      5.5/5.5  995k/s

フェーズ                                              項目
新しいアクションをインストールしています                           20/20
パッケージ状態データベースを更新しています                             完了
パッケージキャッシュを更新しています                               0/0
イメージ状態を更新しています                                    完了
スピード検索データベースを作成しています                              完了

次に、Joyent Packages Documentation – Install On Illumosのpkginコマンドを使って日本語フォントを検索すると以下の20種類のフォント群が登録されていたのでこれらをインストールする。

$ pkgin search font | grep Japanese
watanabe-vfont-19930318  Watanabe-vector Japanese font
vlgothic-ttf-20141206  Free Japanese TrueType fonts named 'VLGothic'
umefont-ttf-0.610    Ume 18 Japanese fonts (Mincho and Gothic)
tex-zxjafont-0.5     Set up Japanese font families for XeLaTeX
tex-wadalab-2011nb1  Wadalab (Japanese) font packages
tex-ptex-fontmaps-20190506.0nb1  Font maps and configuration tools for Japanese/Chinese/Korean fonts with (u)ptex
ohruri-ttf-20150606  Ohruri Japanese TrueType fonts
monafonts-ttf-2.90nb1  Japanese TrueType fonts for "Mona" seen at 2ch.net
monafonts-2.90nb9    Japanese fonts for "Mona" seen at 2ch.net
koruri-ttf-20180915  Koruri Japanese TrueType fonts
konatu-ttf-26nb1     Japanese TrueType gothic (sans-serif) fonts, Konatu fonts
kochi-ttf-20030809nb6  Free Japanese TrueType font by Yasuyuki Furukawa
kiloji-ttf-2.1.0nb1  JIS X 0208 Japanese script fonts made by kilo
kanjistrokeorders-ttf-4.000  Japanese Kanji characters stroke order font
ja-vflib-lib-2.24.2nb3  Japanese Vector font library
ja-vflib-2.24.2nb2   Japanese Vector font libraries and utilities
ja-shinonome-0.9.11pl1nb2  12, 14, 16 dots bitmap fonts for Japanese, iso8859-1
ja-sazanami-ttf-20040629nb2  Truly free Japanese TrueType font
ja-kappa20-0.394nb2  20x20 dots X11 bitmap font for Japanese with several extra fonts
font-jis-misc-1.0.3  78dpi PCF versions of the Japanese fixed fonts
$ sudo pkgin install watanabe-vfont-19930318 vlgothic-ttf-20141206 umefont-ttf-0.610 tex-zxjafont-0.5 tex-wadalab-2011nb1 tex-ptex-fontmaps-20190506.0nb1 ohruri-ttf-20150606 monafonts-ttf-2.90nb1 monafonts-2.90nb9 koruri-ttf-20180915 konatu-ttf-26nb1 kochi-ttf-20030809nb6 kiloji-ttf-2.1.0nb1 kanjistrokeorders-ttf-4.000 ja-vflib-lib-2.24.2nb3 ja-vflib-2.24.2nb2 ja-shinonome-0.9.11pl1nb2 ja-sazanami-ttf-20040629nb2 ja-kappa20-0.394nb2 font-jis-misc-1.0.3
パスワード:
calculating dependencies...done.

34 packages to install:
  tex-texlive.infra-2019nb1 tex-kpathsea-2019 perl-5.30.1 dialog-1.3.20190211 libfontenc-1.1.4
  kpathsea-6.3.1 tex-tetex-3.0.50602nb1 tex-ipaex-2014 tex-baekmuk-2.2 tex-arphic-ttf-2017
  mkfontscale-1.2.1 encodings-1.0.5 freetype-lib-1.5nb1 ja-vflib-utils-2.24.2nb3
  watanabe-vfont-19930318 vlgothic-ttf-20141206 umefont-ttf-0.610 tex-zxjafont-0.5
  tex-wadalab-2011nb1 tex-ptex-fontmaps-20190506.0nb1 ohruri-ttf-20150606 monafonts-ttf-2.90nb1
  monafonts-2.90nb9 koruri-ttf-20180915 konatu-ttf-26nb1 kochi-ttf-20030809nb6 kiloji-ttf-2.1.0nb1
  kanjistrokeorders-ttf-4.000 ja-vflib-lib-2.24.2nb3 ja-vflib-2.24.2nb2 ja-shinonome-0.9.11pl1nb2
  ja-sazanami-ttf-20040629nb2 ja-kappa20-0.394nb2 font-jis-misc-1.0.3

0 to refresh, 0 to upgrade, 34 to install
221M to download, 413M to install

proceed ? [Y/n]
watanabe-vfont-19930318.tgz                                       100% 1561KB 780.5KB/s   00:02
vlgothic-ttf-20141206.tgz                                         100% 5019KB   1.0MB/s   00:05
umefont-ttf-0.610.tgz                                             100%   37MB   2.2MB/s   00:17
kpathsea-6.3.1.tgz                                                100%  276KB 275.7KB/s   00:01
tex-zxjafont-0.5.tgz                                              100% 8388     8.2KB/s   00:00
tex-texlive.infra-2019nb1.tgz                                     100%  132KB 131.9KB/s   00:01
tex-kpathsea-2019.tgz                                             100%   29KB  28.8KB/s   00:01
perl-5.30.1.tgz                                                   100%   19MB   1.2MB/s   00:17
dialog-1.3.20190211.tgz                                           100%  345KB 344.9KB/s   00:01
tex-tetex-3.0.50602nb1.tgz                                        100%   98KB  98.0KB/s   00:00
tex-wadalab-2011nb1.tgz                                           100%   18MB 963.8KB/s   00:19
tex-ipaex-2014.tgz                                                100%   28MB   2.8MB/s   00:10
tex-baekmuk-2.2.tgz                                               100%   11MB 941.8KB/s   00:12
tex-arphic-ttf-2017.tgz                                           100%   16MB   1.1MB/s   00:15
tex-ptex-fontmaps-20190506.0nb1.tgz                               100%   68KB  68.1KB/s   00:01
libfontenc-1.1.4.tgz                                              100%   34KB  34.5KB/s   00:01
mkfontscale-1.2.1.tgz                                             100%   35KB  34.6KB/s   00:00
encodings-1.0.5.tgz                                               100%  573KB 572.8KB/s   00:01
ohruri-ttf-20150606.tgz                                           100%   15MB 689.0KB/s   00:22
monafonts-ttf-2.90nb1.tgz                                         100% 1676KB 838.2KB/s   00:02
monafonts-2.90nb9.tgz                                             100% 4393KB 878.6KB/s   00:05
koruri-ttf-20180915.tgz                                           100% 5684KB   1.9MB/s   00:03
konatu-ttf-26nb1.tgz                                              100% 8258KB 917.6KB/s   00:09
kochi-ttf-20030809nb6.tgz                                         100%   10MB   1.1MB/s   00:09
kiloji-ttf-2.1.0nb1.tgz                                           100%   13MB 928.1KB/s   00:14
kanjistrokeorders-ttf-4.000.tgz                                   100% 9231KB 923.1KB/s   00:10
freetype-lib-1.5nb1.tgz                                           100%  272KB 271.7KB/s   00:01
ja-vflib-lib-2.24.2nb3.tgz                                        100%  433KB 433.4KB/s   00:01
ja-vflib-utils-2.24.2nb3.tgz                                      100%   47KB  46.9KB/s   00:01
ja-vflib-2.24.2nb2.tgz                                            100% 2708     2.6KB/s   00:00
ja-shinonome-0.9.11pl1nb2.tgz                                     100% 5359KB   1.1MB/s   00:05
ja-sazanami-ttf-20040629nb2.tgz                                   100%   10MB 852.0KB/s   00:12
ja-kappa20-0.394nb2.tgz                                           100% 1159KB   1.1MB/s   00:01
font-jis-misc-1.0.3.tgz                                           100%  526KB 525.9KB/s   00:01
installing tex-texlive.infra-2019nb1...
kpathsea-6.3.1: copying /opt/local/share/texmf-dist/web2c/texmf.cnf to /opt/local/etc/texmf/texmf.cnf
kpathsea-6.3.1: registering info file /opt/local/info/kpathsea.info
mktexlsr: Updating /opt/local/etc/texmf/ls-R...
mktexlsr: Updating /opt/local/share/texmf-dist/ls-R...
mktexlsr: Updating /opt/local/share/texmf-local/ls-R...
mktexlsr: Updating /var/lib/texmf/ls-R...
mktexlsr: Done.
mktexlsr: Updating /opt/local/share/texmf-dist/ls-R...
mktexlsr: Done.
installing tex-kpathsea-2019...
tex-kpathsea-2019: copying /opt/local/share/texmf-dist/web2c/fmtutil.cnf to /opt/local/etc/texmf/web2c/fmtutil.cnf
mktexlsr: Updating /opt/local/etc/texmf/ls-R...
mktexlsr: Updating /opt/local/share/texmf-dist/ls-R...
mktexlsr: Done.
installing perl-5.30.1...
installing dialog-1.3.20190211...
installing libfontenc-1.1.4...
installing kpathsea-6.3.1...
kpathsea-6.3.1: unregistering info file /opt/local/info/kpathsea.info
kpathsea-6.3.1: copying /opt/local/share/texmf-dist/web2c/texmf.cnf to /opt/local/etc/texmf/texmf.cnf
kpathsea-6.3.1: registering info file /opt/local/info/kpathsea.info
mktexlsr: Updating /opt/local/etc/texmf/ls-R...
mktexlsr: Updating /opt/local/share/texmf-dist/ls-R...
mktexlsr: Updating /opt/local/share/texmf-local/ls-R...
mktexlsr: Updating /var/lib/texmf/ls-R...
mktexlsr: Done.
installing tex-tetex-3.0.50602nb1...
tex-tetex-3.0.50602nb1: copying /opt/local/share/texmf-dist/web2c/updmap.cfg to /opt/local/etc/texmf/web2c/updmap.cfg
mktexlsr: Updating /opt/local/etc/texmf/ls-R...
mktexlsr: Updating /opt/local/share/texmf-dist/ls-R...
mktexlsr: Done.
updmap will read the following updmap.cfg files (in precedence order):
  /opt/local/etc/texmf/web2c/updmap.cfg
  /opt/local/share/texmf-dist/web2c/updmap.cfg
updmap may write changes to the following updmap.cfg file:
  /opt/local/etc/texmf/web2c/updmap.cfg
dvips output dir: "/var/lib/texmf/fonts/map/dvips/updmap"
pdftex output dir: "/var/lib/texmf/fonts/map/pdftex/updmap"
dvipdfmx output dir: "/var/lib/texmf/fonts/map/dvipdfmx/updmap"

updmap is creating new map files
using the following configuration:
  LW35 font names                  : URWkb (/opt/local/etc/texmf/web2c/updmap.cfg)
  prefer outlines                  : true (/opt/local/etc/texmf/web2c/updmap.cfg)
  texhash enabled                  : true
  download standard fonts (dvips)  : true (/opt/local/etc/texmf/web2c/updmap.cfg)
  download standard fonts (pdftex) : true (/opt/local/etc/texmf/web2c/updmap.cfg)
  jaEmbed replacement string       : ipaex (/opt/local/etc/texmf/web2c/updmap.cfg)
  jaVariant replacement string     : <empty> (default)
  scEmbed replacement string       : arphic (/opt/local/etc/texmf/web2c/updmap.cfg)
  tcEmbed replacement string       : arphic (/opt/local/etc/texmf/web2c/updmap.cfg)
  koEmbed replacement string       : baekmuk (/opt/local/etc/texmf/web2c/updmap.cfg)
  create a mapfile for pxdvi       : false (default)

Scanning for LW35 support files  [  3 files]
Scanning for MixedMap entries    [  0 files]
Scanning for KanjiMap entries    [  0 files]
Scanning for Map entries         [  0 files]

Generating output for dvipdfmx...
Generating output for ps2pk...
Generating output for dvips...
Generating output for pdftex...

Files generated:
  /var/lib/texmf/fonts/map/dvips/updmap:
       15758 2020-02-06 17:08:38 builtin35.map
       21231 2020-02-06 17:08:38 download35.map
       21231 2020-02-06 17:08:38 psfonts_pk.map
       21231 2020-02-06 17:08:38 psfonts_t1.map
       21226 2020-02-06 17:08:38 ps2pk.map
          14 2020-02-06 17:08:38 psfonts.map -> psfonts_t1.map
  /var/lib/texmf/fonts/map/pdftex/updmap:
       21233 2020-02-06 17:08:38 pdftex_dl14.map
       19568 2020-02-06 17:08:38 pdftex_ndl14.map
          15 2020-02-06 17:08:38 pdftex.map -> pdftex_dl14.map
  /var/lib/texmf/fonts/map/dvipdfmx/updmap:
         281 2020-02-06 17:08:38 kanjix.map

Transcript written on "/var/lib/texmf/web2c/updmap.log".
updmap: Updating ls-R files.
installing tex-ipaex-2014...
mktexlsr: Updating /opt/local/share/texmf-dist/ls-R...
mktexlsr: Done.
installing tex-baekmuk-2.2...
mktexlsr: Updating /opt/local/share/texmf-dist/ls-R...
mktexlsr: Done.
installing tex-arphic-ttf-2017...
mktexlsr: Updating /opt/local/share/texmf-dist/ls-R...
mktexlsr: Done.
installing mkfontscale-1.2.1...
installing encodings-1.0.5...
installing freetype-lib-1.5nb1...
installing ja-vflib-utils-2.24.2nb3...
installing watanabe-vfont-19930318...
installing vlgothic-ttf-20141206...
installing umefont-ttf-0.610...
installing tex-zxjafont-0.5...
mktexlsr: Updating /opt/local/share/texmf-dist/ls-R...
mktexlsr: Done.
installing tex-wadalab-2011nb1...
mktexlsr: Updating /opt/local/share/texmf-dist/ls-R...
mktexlsr: Done.
updmap will read the following updmap.cfg files (in precedence order):
  /opt/local/etc/texmf/web2c/updmap.cfg
  /opt/local/share/texmf-dist/web2c/updmap.cfg
updmap may write changes to the following updmap.cfg file:
  /opt/local/etc/texmf/web2c/updmap.cfg
dvips output dir: "/var/lib/texmf/fonts/map/dvips/updmap"
pdftex output dir: "/var/lib/texmf/fonts/map/pdftex/updmap"
dvipdfmx output dir: "/var/lib/texmf/fonts/map/dvipdfmx/updmap"

updmap is creating new map files
using the following configuration:
  LW35 font names                  : URWkb (/opt/local/etc/texmf/web2c/updmap.cfg)
  prefer outlines                  : true (/opt/local/etc/texmf/web2c/updmap.cfg)
  texhash enabled                  : true
  download standard fonts (dvips)  : true (/opt/local/etc/texmf/web2c/updmap.cfg)
  download standard fonts (pdftex) : true (/opt/local/etc/texmf/web2c/updmap.cfg)
  jaEmbed replacement string       : ipaex (/opt/local/etc/texmf/web2c/updmap.cfg)
  jaVariant replacement string     : <empty> (default)
  scEmbed replacement string       : arphic (/opt/local/etc/texmf/web2c/updmap.cfg)
  tcEmbed replacement string       : arphic (/opt/local/etc/texmf/web2c/updmap.cfg)
  koEmbed replacement string       : baekmuk (/opt/local/etc/texmf/web2c/updmap.cfg)
  create a mapfile for pxdvi       : false (default)

Scanning for LW35 support files  [  3 files]
Scanning for MixedMap entries    [  0 files]
Scanning for KanjiMap entries    [  0 files]
Scanning for Map entries         [  6 files]

Generating output for dvipdfmx...
Generating output for ps2pk...
Generating output for dvips...
Generating output for pdftex...

Files generated:
  /var/lib/texmf/fonts/map/dvips/updmap:
       15758 2020-02-06 17:08:41 builtin35.map
       21231 2020-02-06 17:08:41 download35.map
       25833 2020-02-06 17:08:41 psfonts_pk.map
       25833 2020-02-06 17:08:41 psfonts_t1.map
       25828 2020-02-06 17:08:41 ps2pk.map
          14 2020-02-06 17:08:42 psfonts.map -> psfonts_t1.map
  /var/lib/texmf/fonts/map/pdftex/updmap:
       25835 2020-02-06 17:08:41 pdftex_dl14.map
       24170 2020-02-06 17:08:41 pdftex_ndl14.map
          15 2020-02-06 17:08:42 pdftex.map -> pdftex_dl14.map
  /var/lib/texmf/fonts/map/dvipdfmx/updmap:
         281 2020-02-06 17:08:41 kanjix.map

Transcript written on "/var/lib/texmf/web2c/updmap.log".
updmap: Updating ls-R files.
installing tex-ptex-fontmaps-20190506.0nb1...
mktexlsr: Updating /opt/local/share/texmf-dist/ls-R...
mktexlsr: Done.
installing ohruri-ttf-20150606...
ohruri-ttf-20150606: updating font database in /opt/local/share/fonts/X11/TTF (ttf)
ohruri-ttf-20150606: updating font database in /opt/local/share/fonts/X11/TTF (x11)
installing monafonts-ttf-2.90nb1...
monafonts-ttf-2.90nb1: updating font database in /opt/local/share/fonts/X11/TTF (ttf)
monafonts-ttf-2.90nb1: updating font database in /opt/local/share/fonts/X11/TTF (x11)
installing monafonts-2.90nb9...
monafonts-2.90nb9: updating font database in /opt/local/share/fonts/X11/local (x11)
installing koruri-ttf-20180915...
installing konatu-ttf-26nb1...
konatu-ttf-26nb1: updating font database in /opt/local/share/fonts/X11/TTF (ttf)
konatu-ttf-26nb1: updating font database in /opt/local/share/fonts/X11/TTF (x11)
installing kochi-ttf-20030809nb6...
kochi-ttf-20030809nb6: updating font database in /opt/local/share/fonts/X11/TTF (ttf)
kochi-ttf-20030809nb6: updating font database in /opt/local/share/fonts/X11/TTF (x11)
installing kiloji-ttf-2.1.0nb1...
kiloji-ttf-2.1.0nb1: updating font database in /opt/local/share/fonts/X11/TTF (ttf)
kiloji-ttf-2.1.0nb1: updating font database in /opt/local/share/fonts/X11/TTF (x11)
installing kanjistrokeorders-ttf-4.000...
kanjistrokeorders-ttf-4.000: updating font database in /opt/local/share/fonts/X11/TTF (ttf)
kanjistrokeorders-ttf-4.000: updating font database in /opt/local/share/fonts/X11/TTF (x11)
installing ja-vflib-lib-2.24.2nb3...
installing ja-vflib-2.24.2nb2...
installing ja-shinonome-0.9.11pl1nb2...
ja-shinonome-0.9.11pl1nb2: updating font database in /opt/local/share/fonts/X11/local (x11)
installing ja-sazanami-ttf-20040629nb2...
ja-sazanami-ttf-20040629nb2: updating font database in /opt/local/share/fonts/X11/TTF (ttf)
ja-sazanami-ttf-20040629nb2: updating font database in /opt/local/share/fonts/X11/TTF (x11)
installing ja-kappa20-0.394nb2...
installing font-jis-misc-1.0.3...
font-jis-misc-1.0.3: updating font database in /opt/local/share/fonts/X11/misc (x11)
pkg_install warnings: 0, errors: 0
reading local summary...
processing local summary...
marking watanabe-vfont-19930318 as non auto-removable
marking vlgothic-ttf-20141206 as non auto-removable
marking umefont-ttf-0.610 as non auto-removable
marking tex-zxjafont-0.5 as non auto-removable
marking tex-wadalab-2011nb1 as non auto-removable
marking tex-ptex-fontmaps-20190506.0nb1 as non auto-removable
marking ohruri-ttf-20150606 as non auto-removable
marking monafonts-ttf-2.90nb1 as non auto-removable
marking monafonts-2.90nb9 as non auto-removable
marking koruri-ttf-20180915 as non auto-removable
marking konatu-ttf-26nb1 as non auto-removable
marking kochi-ttf-20030809nb6 as non auto-removable
marking kiloji-ttf-2.1.0nb1 as non auto-removable
marking kanjistrokeorders-ttf-4.000 as non auto-removable
marking ja-vflib-lib-2.24.2nb3 as non auto-removable
marking ja-vflib-2.24.2nb2 as non auto-removable
marking ja-shinonome-0.9.11pl1nb2 as non auto-removable
marking ja-sazanami-ttf-20040629nb2 as non auto-removable
marking ja-kappa20-0.394nb2 as non auto-removable
marking font-jis-misc-1.0.3 as non auto-removable

gmplayerは、メニューやファイル選択の画面が以上の操作でインストールしたフォントで表示できるようになったのだが、絵文字は表示できないものがあった。
😋 Get Emoji — All Emojis to ✂️ Copy and 📋 Paste 👌の表示はモノクロになっていて表示できないものもある。

そこで、Windowsのフォントをインストールする。Windows PCが手元にあればの話になるがC:\Windows\FontsディレクトリをZIP形式で圧縮してOpenIndianaにファイル転送し、/usr/local/share/fonts/TrueType以下に展開する。
Windowのフォントと分かるようにFontsディレクトリ名をwindowsとしておく。最後に、/usr/local/share/fonts/TrueType/windowsに移動し、fc-cacheコマンドをroot権限で実行する。

$ cd /usr/local/share/fonts/TrueType
$ sudo unzip ~/Fonts.zip
$ sudo mv Fonts windows
$ cd windows
$ sudo fc-cache

これで、絵文字も正しく表示されるようになる。