のねのBlog

パソコンの問題や、ソフトウェアの開発で起きた問題など書いていきます。よろしくお願いします^^。

Bash on Windows で fontreport

Bash on Ubuntu on Windows

apt-get install python-setuptools texlive-xetex texlive-latex-recommended

github.com

いっぱいライブラリ使うんだな、動くのかな

$ sudo apt-get install python-setuptools texlive-latex-recommended
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  cpp cpp-5 fonts-lato fonts-lmodern ghostscript gsfonts javascript-common libauthen-sasl-perl libavahi-client3
  libavahi-common-data libavahi-common3 libcups2 libcupsfilters1 libcupsimage2 libdrm-amdgpu1 libdrm-intel1
  libdrm-nouveau2 libdrm-radeon1 libencode-locale-perl libfile-basedir-perl libfile-desktopentry-perl
  libfile-homedir-perl libfile-listing-perl libfile-mimeinfo-perl libfile-which-perl libfont-afm-perl libfontenc1
  libgl1-mesa-dri libgl1-mesa-glx libglapi-mesa libgs9 libgs9-common libharfbuzz-icu0 libhtml-form-perl
  libhtml-format-perl libhtml-parser-perl libhtml-tagset-perl libhtml-tree-perl libhttp-cookies-perl
  libhttp-daemon-perl libhttp-date-perl libhttp-message-perl libhttp-negotiate-perl libice6 libijs-0.35
  libio-html-perl libio-socket-ssl-perl libipc-system-simple-perl libisl15 libjbig0 libjbig2dec0 libjpeg-turbo8
  libjpeg8 libjs-jquery libkpathsea6 liblcms2-2 libllvm4.0 liblwp-mediatypes-perl liblwp-protocol-https-perl
  libmailtools-perl libmpc3 libnet-dbus-perl libnet-http-perl libnet-smtp-ssl-perl libnet-ssleay-perl libpaper-utils
  libpaper1 libpciaccess0 libpoppler58 libpotrace0 libptexenc1 libpython-stdlib libpython2.7-minimal
  libpython2.7-stdlib libruby2.3 libsensors4 libsm6 libsynctex1 libtcl8.6 libtexlua52 libtexluajit2 libtie-ixhash-perl
  libtiff5 libtimedate-perl libtk8.6 libtxc-dxtn-s2tc0 liburi-perl libwww-perl libwww-robotrules-perl
  libx11-protocol-perl libx11-xcb1 libxaw7 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 libxcb-present0 libxcb-shape0
  libxcb-sync1 libxcomposite1 libxcursor1 libxdamage1 libxfixes3 libxft2 libxi6 libxinerama1 libxml-parser-perl
  libxml-twig-perl libxml-xpathengine-perl libxmu6 libxpm4 libxrandr2 libxshmfence1 libxss1 libxt6 libxtst6 libxv1
  libxxf86dga1 libxxf86vm1 libyaml-tiny-perl libzzip-0-13 lmodern poppler-data prosper ps2eps python python-minimal
  python-pkg-resources python2.7 python2.7-minimal rake ruby ruby-did-you-mean ruby-minitest ruby-net-telnet
  ruby-power-assert ruby-test-unit ruby2.3 rubygems-integration t1utils tcl tcl8.6 tex-common texlive-base
  texlive-binaries texlive-extra-utils texlive-font-utils texlive-generic-recommended texlive-latex-base
  texlive-latex-base-doc texlive-latex-recommended-doc texlive-pictures texlive-pictures-doc texlive-pstricks
  texlive-pstricks-doc tk tk8.6 unzip x11-common x11-utils x11-xserver-utils xbitmaps xdg-utils xterm zip
Suggested packages:
  cpp-doc gcc-5-locales ghostscript-x hpijs apache2 | lighttpd | httpd libdigest-hmac-perl libgssapi-perl cups-common
  fonts-droid texlive-lang-cjk libdata-dump-perl liblcms2-utils libcrypt-ssleay-perl lm-sensors libauthen-ntlm-perl
  libunicode-map8-perl libunicode-string-perl xml-twig-tools poppler-utils fonts-japanese-mincho
  | fonts-ipafont-mincho fonts-japanese-gothic | fonts-ipafont-gothic fonts-arphic-ukai fonts-arphic-uming fonts-nanum
  pdf-viewer python-doc python-tk python-setuptools-doc python2.7-doc binutils binfmt-support ri ruby-dev bundler
  tcl-tclreadline debhelper perl-tk xpdf-reader | pdf-viewer dvipng dvidvi xindy fragmaster purifyeps lacheck chktex
  latexmk latexdiff psutils libtcltk-ruby texlive-latex-extra dot2tex prerex mesa-utils nickle cairo-5c xorg-docs-core
  gvfs-bin xfonts-cyrillic
The following NEW packages will be installed:
  cpp cpp-5 fonts-lato fonts-lmodern ghostscript gsfonts javascript-common libauthen-sasl-perl libavahi-client3
  libavahi-common-data libavahi-common3 libcups2 libcupsfilters1 libcupsimage2 libdrm-amdgpu1 libdrm-intel1
  libdrm-nouveau2 libdrm-radeon1 libencode-locale-perl libfile-basedir-perl libfile-desktopentry-perl
  libfile-homedir-perl libfile-listing-perl libfile-mimeinfo-perl libfile-which-perl libfont-afm-perl libfontenc1
  libgl1-mesa-dri libgl1-mesa-glx libglapi-mesa libgs9 libgs9-common libharfbuzz-icu0 libhtml-form-perl
  libhtml-format-perl libhtml-parser-perl libhtml-tagset-perl libhtml-tree-perl libhttp-cookies-perl
  libhttp-daemon-perl libhttp-date-perl libhttp-message-perl libhttp-negotiate-perl libice6 libijs-0.35
  libio-html-perl libio-socket-ssl-perl libipc-system-simple-perl libisl15 libjbig0 libjbig2dec0 libjpeg-turbo8
  libjpeg8 libjs-jquery libkpathsea6 liblcms2-2 libllvm4.0 liblwp-mediatypes-perl liblwp-protocol-https-perl
  libmailtools-perl libmpc3 libnet-dbus-perl libnet-http-perl libnet-smtp-ssl-perl libnet-ssleay-perl libpaper-utils
  libpaper1 libpciaccess0 libpoppler58 libpotrace0 libptexenc1 libpython-stdlib libpython2.7-minimal
  libpython2.7-stdlib libruby2.3 libsensors4 libsm6 libsynctex1 libtcl8.6 libtexlua52 libtexluajit2 libtie-ixhash-perl
  libtiff5 libtimedate-perl libtk8.6 libtxc-dxtn-s2tc0 liburi-perl libwww-perl libwww-robotrules-perl
  libx11-protocol-perl libx11-xcb1 libxaw7 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 libxcb-present0 libxcb-shape0
  libxcb-sync1 libxcomposite1 libxcursor1 libxdamage1 libxfixes3 libxft2 libxi6 libxinerama1 libxml-parser-perl
  libxml-twig-perl libxml-xpathengine-perl libxmu6 libxpm4 libxrandr2 libxshmfence1 libxss1 libxt6 libxtst6 libxv1
  libxxf86dga1 libxxf86vm1 libyaml-tiny-perl libzzip-0-13 lmodern poppler-data prosper ps2eps python python-minimal
  python-pkg-resources python-setuptools python2.7 python2.7-minimal rake ruby ruby-did-you-mean ruby-minitest
  ruby-net-telnet ruby-power-assert ruby-test-unit ruby2.3 rubygems-integration t1utils tcl tcl8.6 tex-common
  texlive-base texlive-binaries texlive-extra-utils texlive-font-utils texlive-generic-recommended texlive-latex-base
  texlive-latex-base-doc texlive-latex-recommended texlive-latex-recommended-doc texlive-pictures texlive-pictures-doc
  texlive-pstricks texlive-pstricks-doc tk tk8.6 unzip x11-common x11-utils x11-xserver-utils xbitmaps xdg-utils xterm
  zip
0 upgraded, 166 newly installed, 0 to remove and 0 not upgraded.
Need to get 423 MB of archives.
After this operation, 895 MB of additional disk space will be used.
Do you want to continue? [Y/n]
$/usr/local/lib$ dpkg --list | grep texlive
ii  texlive-base                     2015.20160320-1ubuntu0.1                   all          TeX Live: Essential programs and files
ii  texlive-binaries                 2015.20160222.37495-1                      amd64        Binaries for TeX Live
ii  texlive-extra-utils              2015.20160320-1                            all          TeX Live: TeX auxiliary programs
ii  texlive-font-utils               2015.20160320-1                            all          TeX Live: Graphics and font utilities
ii  texlive-generic-recommended      2015.20160320-1ubuntu0.1                   all          TeX Live: Generic recommended packages
ii  texlive-latex-base               2015.20160320-1ubuntu0.1                   all          TeX Live: LaTeX fundamental packages
ii  texlive-latex-base-doc           2015.20160320-1ubuntu0.1                   all          TeX Live: Documentation files for texlive-latex-base
ii  texlive-latex-recommended        2015.20160320-1ubuntu0.1                   all          TeX Live: LaTeX recommended packages
ii  texlive-latex-recommended-doc    2015.20160320-1ubuntu0.1                   all          TeX Live: Documentation files for texlive-latex-recommended
ii  texlive-pictures                 2015.20160320-1ubuntu0.1                   all          TeX Live: Graphics, pictures, diagrams
ii  texlive-pictures-doc             2015.20160320-1ubuntu0.1                   all          TeX Live: Documentation files for texlive-pictures
ii  texlive-pstricks                 2015.20160320-1                            all          TeX Live: PSTricks
ii  texlive-pstricks-doc             2015.20160320-1                            all          TeX Live: Documentation files for texlive-pstricks
$/usr/local/lib$ dpkg -L texlive-binaries
/.
/usr
/usr/bin
/usr/bin/wovp2ovf
/usr/bin/ctangle
/usr/bin/pltotf
/usr/bin/kpseaccess
/usr/bin/odvicopy
/usr/bin/dvipdft
/usr/bin/tangle
/usr/bin/vftovp
/usr/bin/wopl2ofm
/usr/bin/odvitype
/usr/bin/tie
/usr/bin/xdvi-xaw
/usr/bin/bibtex8
/usr/bin/xdvi
/usr/bin/ptex
/usr/bin/pdftosrc
/usr/bin/dt2dv
/usr/bin/dvisvgm
/usr/bin/dvipos
/usr/bin/dvilj4l
/usr/bin/outocp
/usr/bin/mendex
/usr/bin/ctie
/usr/bin/ttf2afm
/usr/bin/weave
/usr/bin/gftopk
/usr/bin/cweave
/usr/bin/dvips
/usr/bin/dvi2tty
/usr/bin/devnag
/usr/bin/pmpost
/usr/bin/mktexpk
/usr/bin/pdfclose
/usr/bin/mf-nowin
/usr/bin/bibtex.original
/usr/bin/afm2tfm
/usr/bin/eptex
/usr/bin/disdvi
/usr/bin/pmxab
/usr/bin/luajittex
/usr/bin/tex
/usr/bin/teckit_compile
/usr/bin/scor2prt
/usr/bin/otangle
/usr/bin/luatex
/usr/bin/mkindex
/usr/bin/detex
/usr/bin/uptex
/usr/bin/synctex
/usr/bin/xdvipdfmx
/usr/bin/ppltotf
/usr/bin/gftodvi
/usr/bin/pdvitype
/usr/bin/mft
/usr/bin/upbibtex
/usr/bin/pk2bm
/usr/bin/makeindex
/usr/bin/wovf2ovp
/usr/bin/gftype
/usr/bin/afm2pl
/usr/bin/omfonts
/usr/bin/msxlint
/usr/bin/pktype
/usr/bin/kpsereadlink
/usr/bin/prepmx
/usr/bin/euptex
/usr/bin/dvibook
/usr/bin/ttfdump
/usr/bin/pbibtex
/usr/bin/kpsestat
/usr/bin/uppltotf
/usr/bin/mf
/usr/bin/mktextfm
/usr/bin/dvicopy
/usr/bin/pooltype
/usr/bin/tftopl
/usr/bin/mkofm
/usr/bin/updvitype
/usr/bin/dvilj4
/usr/bin/mpost
/usr/bin/ptftopl
/usr/bin/dvilj
/usr/bin/mkocp
/usr/bin/mag
/usr/bin/makejvf
/usr/bin/dviconcat
/usr/bin/gsftopk
/usr/bin/dviselect
/usr/bin/bibtexu
/usr/bin/pdfopen
/usr/bin/mktexlsr
/usr/bin/kpsewhich
/usr/bin/ps2pk
/usr/bin/patgen
/usr/bin/vptovf
/usr/bin/vlna
/usr/bin/dvipdfmx
/usr/bin/ttf2pk
/usr/bin/pktogf
/usr/bin/fixmsxpart
/usr/bin/dvitodvi
/usr/bin/otp2ocp
/usr/bin/dvitype
/usr/bin/ttf2tfm
/usr/bin/upmpost
/usr/bin/uptftopl
/usr/bin/tpic2pdftex
/usr/bin/wofm2opl
/usr/bin/pdftex
/usr/bin/mktexmf
/usr/bin/dv2dt
/usr/bin/dvilj2p
/usr/bin/dvihp
/usr/bin/xetex
/usr/bin/aleph
/usr/bin/pfb2pfa
/usr/share
/usr/share/info
/usr/share/info/kpathsea.info.gz
/usr/share/info/dvips.info.gz
/usr/share/info/web2c.info.gz
/usr/share/lintian
/usr/share/lintian/overrides
/usr/share/lintian/overrides/texlive-binaries
/usr/share/doc
/usr/share/doc/texlive-binaries
/usr/share/doc/texlive-binaries/copyright
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/mktexpk.1.gz
/usr/share/man/man1/tex.1.gz
/usr/share/man/man1/dvitype.1.gz
/usr/share/man/man1/dvisvgm.1.gz
/usr/share/man/man1/gftopk.1.gz
/usr/share/man/man1/devnag.1.gz
/usr/share/man/man1/mpost.1.gz
/usr/share/man/man1/patgen.1.gz
/usr/share/man/man1/dv2dt.1.gz
/usr/share/man/man1/tpic2pdftex.1.gz
/usr/share/man/man1/luatex.1.gz
/usr/share/man/man1/dviconcat.1.gz
/usr/share/man/man1/etex.1.gz
/usr/share/man/man1/pdfopen.1.gz
/usr/share/man/man1/tangle.1.gz
/usr/share/man/man1/dvips.1.gz
/usr/share/man/man1/pdftex.1.gz
/usr/share/man/man1/dvihp.1.gz
/usr/share/man/man1/opl2ofm.1.gz
/usr/share/man/man1/prepmx.1.gz
/usr/share/man/man1/dvilj.1.gz
/usr/share/man/man1/pktype.1.gz
/usr/share/man/man1/tie.1.gz
/usr/share/man/man1/pooltype.1.gz
/usr/share/man/man1/kpseaccess.1.gz
/usr/share/man/man1/omfonts.1.gz
/usr/share/man/man1/ovf2ovp.1.gz
/usr/share/man/man1/disdvi.1.gz
/usr/share/man/man1/ttf2afm.1.gz
/usr/share/man/man1/afm2tfm.1.gz
/usr/share/man/man1/ovp2ovf.1.gz
/usr/share/man/man1/gftype.1.gz
/usr/share/man/man1/mft.1.gz
/usr/share/man/man1/otp2ocp.1.gz
/usr/share/man/man1/bibtex.original.1.gz
/usr/share/man/man1/kpsereadlink.1.gz
/usr/share/man/man1/pktogf.1.gz
/usr/share/man/man1/gftodvi.1.gz
/usr/share/man/man1/mendex.1.gz
/usr/share/man/man1/mktextfm.1.gz
/usr/share/man/man1/vlna.1.gz
/usr/share/man/man1/mkindex.1.gz
/usr/share/man/man1/kpsewhich.1.gz
/usr/share/man/man1/fixmsxpart.1.gz
/usr/share/man/man1/afm2pl.1.gz
/usr/share/man/man1/ps2pk.1.gz
/usr/share/man/man1/mktexlsr.1.gz
/usr/share/man/man1/ttf2tfm.1.gz
/usr/share/man/man1/dvitomp.1.gz
/usr/share/man/man1/dvipos.1.gz
/usr/share/man/man1/vptovf.1.gz
/usr/share/man/man1/vftovp.1.gz
/usr/share/man/man1/pltotf.1.gz
/usr/share/man/man1/mktexmf.1.gz
/usr/share/man/man1/dvipdft.1.gz
/usr/share/man/man1/ttf2pk.1.gz
/usr/share/man/man1/gsftopk.1.gz
/usr/share/man/man1/pk2bm.1.gz
/usr/share/man/man1/dviselect.1.gz
/usr/share/man/man1/aleph.1.gz
/usr/share/man/man1/mkocp.1.gz
/usr/share/man/man1/mf.1.gz
/usr/share/man/man1/msxlint.1.gz
/usr/share/man/man1/synctex.1.gz
/usr/share/man/man1/ofm2opl.1.gz
/usr/share/man/man1/dvipdfmx.1.gz
/usr/share/man/man1/makeindex.1.gz
/usr/share/man/man1/dvi2tty.1.gz
/usr/share/man/man1/pdftosrc.1.gz
/usr/share/man/man1/ttfdump.1.gz
/usr/share/man/man1/extractbb.1.gz
/usr/share/man/man1/mag.1.gz
/usr/share/man/man1/tftopl.1.gz
/usr/share/man/man1/mkofm.1.gz
/usr/share/man/man1/detex.1.gz
/usr/share/man/man1/ctie.1.gz
/usr/share/man/man1/dvitodvi.1.gz
/usr/share/man/man1/weave.1.gz
/usr/share/man/man1/bibtex8.1.gz
/usr/share/man/man1/pdfetex.1.gz
/usr/share/man/man1/dt2dv.1.gz
/usr/share/man/man1/pfb2pfa.1.gz
/usr/share/man/man1/outocp.1.gz
/usr/share/man/man1/kpsestat.1.gz
/usr/share/man/man1/dvibook.1.gz
/usr/share/man/man1/dvicopy.1.gz
/usr/share/man/man1/pmxab.1.gz
/usr/share/man/man1/scor2prt.1.gz
/usr/share/man/man1/xdvi.1.gz
/usr/share/man/man1/cweb.1.gz
/usr/share/man/man5
/usr/share/man/man5/synctex.5.gz
/usr/bin/ovp2ovf
/usr/bin/texluajitc
/usr/bin/ovf2ovp
/usr/bin/texlua
/usr/bin/texluajit
/usr/bin/initex
/usr/bin/updvitomp
/usr/bin/dvitomp
/usr/bin/inimf
/usr/bin/texluac
/usr/bin/ofm2opl
/usr/bin/extractbb
/usr/bin/etex
/usr/bin/ebb
/usr/bin/opl2ofm
/usr/bin/texhash
/usr/bin/dvilj6
/usr/bin/pdvitomp
/usr/bin/pdfetex
/usr/bin/dvipdfm
/usr/bin/mfplain
/usr/share/doc/texlive-binaries/changelog.Debian.gz
/usr/share/man/man1/pdfclose.1.gz
/usr/share/man/man1/otangle.1.gz
/usr/share/man/man1/dvilj6.1.gz
/usr/share/man/man1/xdvipdfmx.1.gz
/usr/share/man/man1/texluac.1.gz
/usr/share/man/man1/cweave.1.gz
/usr/share/man/man1/texlua.1.gz
/usr/share/man/man1/dvilj4.1.gz
/usr/share/man/man1/odvitype.1.gz
/usr/share/man/man1/ebb.1.gz
/usr/share/man/man1/ctangle.1.gz
/usr/share/man/man1/odvicopy.1.gz
/usr/share/man/man1/dvilj4l.1.gz
/usr/share/man/man1/dvipdfm.1.gz
/usr/share/man/man1/dvilj2p.1.gz
/usr/share/man/man1/mf-nowin.1.gz
/usr/share/man/man1/texhash.1.gz

githubから、fontreportをダウンロードする。
https://github.com/googlei18n/fontreport

sudo python setup.py install
$ fontreport
usage: fontreport [-h] [-v] [--render TEXT | --render-file TEXT]
                  [--features FEATURES] [--script SCRIPT]
                  [--language LANGUAGE] [--index INDEX]
                  font_file [output_file]
fontreport: error: too few arguments