のねのBlog

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

fontreportで"font not found"のエラー

$ fontreport Roboto-Regular.ttf Roboto-Regulart.pdf
Warning: Lookup table 4: type 6 not yet supported.
Warning: Lookup table 4: type 6 not yet supported.
Warning: Lookup table 4: type 6 not yet supported.
Warning: Lookup table 4: type 6 not yet supported.
Warning: Lookup table 4: type 6 not yet supported.
Warning: Lookup table 4: type 6 not yet supported.
Warning: Lookup table 4: type 6 not yet supported.
Warning: Lookup table 4: type 6 not yet supported.
Warning: Lookup table 4: type 6 not yet supported.
Warning: Lookup table 4: type 6 not yet supported.
Warning: Lookup table 4: type 6 not yet supported.
Warning: Lookup table 4: type 6 not yet supported.
Warning: Lookup table 4: type 6 not yet supported.
Warning: Lookup table 4: type 6 not yet supported.
Warning: Lookup table 4: type 6 not yet supported.
Warning: Lookup table 4: type 6 not yet supported.
Warning: Lookup table 4: type 6 not yet supported.
Warning: Lookup table 4: type 6 not yet supported.
Warning: Lookup table 8: type 6 not yet supported.
Warning: Lookup table 8: type 6 not yet supported.
Warning: Lookup table 8: type 6 not yet supported.
Warning: Lookup table 8: type 6 not yet supported.
Warning: Lookup table 8: type 6 not yet supported.
Warning: Lookup table 8: type 6 not yet supported.
Warning: Lookup table 8: type 6 not yet supported.
Warning: Lookup table 8: type 6 not yet supported.
Warning: Lookup table 8: type 6 not yet supported.
Warning: Lookup table 8: type 6 not yet supported.
Warning: Lookup table 8: type 6 not yet supported.
Warning: Lookup table 8: type 6 not yet supported.
Warning: Lookup table 32: type 6 not yet supported.
This is XeTeX, Version 3.14159265-2.6-0.99992 (TeX Live 2015/Debian) (preloaded format=xelatex)
 restricted \write18 enabled.
entering extended mode
(./Roboto-Regulart.tex
LaTeX2e <2016/02/01>
Babel <3.9q> and hyphenation patterns for 3 language(s) loaded.
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo))
(/usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec.sty
(/usr/share/texlive/texmf-dist/tex/latex/l3kernel/expl3.sty
(/usr/share/texlive/texmf-dist/tex/latex/l3kernel/expl3-code.tex)
(/usr/share/texlive/texmf-dist/tex/latex/l3kernel/l3xdvipdfmx.def))
(/usr/share/texlive/texmf-dist/tex/latex/l3packages/xparse/xparse.sty)
(/usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec-xetex.sty
(/usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty
(/usr/share/texlive/texmf-dist/tex/latex/euenc/eu1enc.def)
(/usr/share/texlive/texmf-dist/tex/latex/euenc/eu1lmr.fd))
(/usr/share/texlive/texmf-dist/tex/xelatex/xunicode/xunicode.sty
(/usr/share/texmf/tex/latex/tipa/t3enc.def
(/usr/share/texlive/texmf-dist/tex/latex/euenc/eu1lmss.fd))
(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/share/texlive/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/share/texlive/texmf-dist/tex/latex/latexconfig/graphics.cfg)
(/usr/share/texlive/texmf-dist/tex/xelatex/xetex-def/xetex.def
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/infwarerr.sty)
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ltxcmds.sty)))))
(/usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec.cfg)))
(/usr/share/texlive/texmf-dist/tex/latex/tools/longtable.sty)
(/usr/share/texlive/texmf-dist/tex/latex/geometry/geometry.sty
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifpdf.sty)
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifvtex.sty)
(/usr/share/texlive/texmf-dist/tex/generic/ifxetex/ifxetex.sty))
(/usr/share/texlive/texmf-dist/tex/latex/xcolor/xcolor.sty
(/usr/share/texlive/texmf-dist/tex/latex/latexconfig/color.cfg)
(/usr/share/texlive/texmf-dist/tex/latex/colortbl/colortbl.sty
(/usr/share/texlive/texmf-dist/tex/latex/tools/array.sty)))
(/usr/share/texlive/texmf-dist/tex/latex/hyperref/hyperref.sty
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/hobsub-generic.sty))
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/auxhook.sty)
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/kvoptions.sty)
(/usr/share/texlive/texmf-dist/tex/latex/hyperref/pd1enc.def)
(/usr/share/texlive/texmf-dist/tex/latex/latexconfig/hyperref.cfg)
(/usr/share/texlive/texmf-dist/tex/latex/url/url.sty))

Package hyperref Message: Driver (autodetected): hxetex.

(/usr/share/texlive/texmf-dist/tex/latex/hyperref/hxetex.def
(/usr/share/texlive/texmf-dist/tex/latex/hyperref/puenc.def)
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/stringenc.sty)
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty))
No file Roboto-Regulart.aux.
(/usr/share/texmf/tex/latex/tipa/t3cmr.fd)
*geometry* driver: auto-detecting
*geometry* detected driver: xetex
(/usr/share/texlive/texmf-dist/tex/latex/hyperref/nameref.sty
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/gettitlestring.sty))

Package hyperref Warning: Rerun to get /PageLabels entry.

kpathsea:make_tex: Invalid fontname `[/Roboto-Regular.ttf]/OT', contains '['

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! fontspec error: "font-not-found"
!
! The font "Roboto-Regular.ttf" cannot be found.
!
! See the fontspec documentation for further information.
!
! For immediate help type H <return>.
!...............................................

l.18 ...h = /, Color = 0000AA]{Roboto-Regular.ttf}

?
$ fontreport Roboto-Regular.ttf Roboto-Regulart.pdf

フォントの読み込みを相対PATHにすると、動作するようになった。

$ fontreport ./Roboto-Regular.ttf Roboto-Regulart.pdf