Ticket #36312

\suppressfontnotfounderror=1 のときの \jfont の動作

Open Date: 2016-05-07 15:29 Last Update: 2016-05-15 10:34

Reporter:
Owner:
Status:
Closed
Component:
(None)
MileStone:
(None)
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
Fixed
File:
None

Details

\suppressfontnotfounderror=1 のときはフォントが見つからないエラーは抑止される、と理解しています。 LuaTeX-ja を使っている場合、 \font では抑止され \jfont は抑止されないようです。 \jfont も抑止される方がよいのではないかと思います。

以下、詳細です。

さきほど更新した TeX Live 2016 pretest (LuaTeX 0.95.0 + LuaTeX-ja 20160505) を使って、

  1. \input luatexja.sty
  2. \suppressfontnotfounderror=1
  3. \font\hoge{file:hoge.ttf:jfm=ujis} at 10pt
  4. \jfont\jhoge{file:hoge.ttf:jfm=ujis} at 10pt
  5. \ifx\jhoge\nullfont
  6. \message{jhoge is nullfont.}
  7. \else
  8. \message{jhoge is font.}
  9. \fi
  10. \ifx\hoge\nullfont
  11. \message{hoge is nullfont.}
  12. \else
  13. \message{hoge is font.}
  14. \fi
  15. \bye

をコンパイルすると、

luaotfload | db : Reload initiated (formats: otf,ttf,ttc); reason: "File not found: hoge.ttf."....e
xlive/2016/texmf-dist/tex/luatex/luatexja/ltj-jfont.lua:272: attempt to index l
ocal 'f' (a nil value)
stack traceback:
        ...exlive/2016/texmf-dist/tex/luatex/luatexja/ltj-jfont.lua:272: in function <
...exlive/2016/texmf-dist/tex/luatex/luatexja/ltj-jfont.lua:258>.
\ltj@@jfont ->\luafunction \ltj@@jfont@inner

<to be read again>
\par
l.7

?
jhoge is nullfont. hoge is nullfont.)
warning  (pdf backend): no pages of output.

となりました。 \font も \jfont も結果は \nullfont になっていますが、 \jfont のときだけエラーが抑止されていません。

Ticket History (3/5 Histories)

2016-05-07 15:29 Updated by: trueroad
  • New Ticket "\suppressfontnotfounderror=1 のときの \jfont の動作" created
2016-05-07 15:36 Updated by: h7k
  • Resolution Update from None to Fixed
  • Owner Update from (None) to h7k
Comment

ありがとうございます.commit d692764 で直しました.

2016-05-07 16:23 Updated by: trueroad
Comment

ご対応ありがとうございます。 \jfont でもエラーが抑止されることを確認しました。

2016-05-14 18:07 Updated by: h7k
Comment

TeX Live 2016 のフリーズが

16may: final updates from CTAN, final doc tweaks.

とのことなので,明日の午前中にリリースを行う予定です.

2016-05-15 10:34 Updated by: h7k
  • Status Update from Open to Closed
  • Ticket Close date is changed to 2016-05-15 10:34
Comment

20160515.0 を出したので,完了とします.

Attachment File List

No attachments

Edit

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Login