• R/O
  • HTTP
  • SSH
  • HTTPS

luatexja: Commit

ソースコードの管理場所


Commit MetaInfo

Revisionbcfca685b1af9f28a0f055863f595ce1fb6b8d99 (tree)
Time2018-12-15 05:36:35
AuthorHironori Kitagawa <h_kitagawa2001@yaho...>
CommiterHironori Kitagawa

Log Message

\DeclareFixedFont works

Change Summary

Incremental Difference

--- a/src/patches/lltjfont.sty
+++ b/src/patches/lltjfont.sty
@@ -392,19 +392,21 @@
392392 \EverySelectfont{\ltj@selectfont@patch}
393393
394394 \bgroup
395- \def\ltj@@dir@patch#1#2{%
395+ \def\ltj@@dir@patch#1#2#3{%
396396 \global\csletcs{ltj@@orig@#1}{#1}%
397397 \protected\expandafter\xdef\csname #1\endcsname{%
398398 \csname ltj@@orig@#1\endcsname
399- \unexpanded{\let\ltj@@protect\protect\set@typeset@protect}%
399+ \unexpanded{\ifnum#3<\z@\let\ltj@@protect\protect\set@typeset@protect}%
400400 \unexpanded{\global\let\ltj@afont@name=\font@name}%
401401 \expandonce{\csname ltj@selectfont@#2\endcsname}%
402402 \unexpanded{\global\let\font@name=\ltj@afont@name}%
403- \unexpanded{\let\protect\ltj@@protect}%
403+ \unexpanded{\let\protect\ltj@@protect\fi}%
404404 }%
405405 }
406- \ltj@@dir@patch{yoko}{yoko}\ltj@@dir@patch{tate}{tate}
407- \ltj@@dir@patch{utod}{yoko}\ltj@@dir@patch{dtou}{yoko}
406+ \ltj@@dir@patch{yoko}{yoko}{\ltj@curjfnt}
407+ \ltj@@dir@patch{tate}{tate}{\ltj@curtfnt}
408+ \ltj@@dir@patch{utod}{yoko}{\ltj@curjfnt}
409+ \ltj@@dir@patch{dtou}{yoko}{\ltj@curjfnt}
408410 \egroup
409411
410412 \def\KanjiEncodingPair#1#2{\@namedef{t@enc@#1}{#2}\@namedef{y@enc@#2}{#1}}
--- a/test/test58-save-tfont.tex
+++ b/test/test58-save-tfont.tex
@@ -7,14 +7,17 @@
77 \makeatletter
88 \begin{document}
99 \leavevmode
10-\def\T{[\the\ltj@curjfnt,\the\ltj@curtfnt]}
10+\def\T{{\ttfamily [\the\ltj@curjfnt,\the\ltj@curtfnt]}}
1111 あいう\T えお\PIYO あい\T う\scriptsize あ\T\ltjsetparameter{talbaselineshift=-10pt}
12-\HOGE あいう\T\normalsize あ\T
13-\hbox{\tate あい\T うえおa12\HOGE あいう\T えおa12}
14-\typeout{\expandafter\meaning\csname JT3/gt/m/n/10\endcsname}
15-\typeout{\expandafter\meaning\csname ltj@@tfontjfm/\string\JT3/gt/m/n/10\endcsname}
16-
17-あい\T う\tiny あい\T う
12+\HOGE あいう\T
13+\vbox{\hsize=100pt\tate
14+ {\ttfamily \the\zw}\\
15+ あい\T うえおa12\\
16+ \normalsize あい\T う12\\
17+ \HOGE あいう\T えおa12\\
18+ \global\PIYO あい\T 12}\\
19+あい\T うえお12\small あい\T
20+う\tiny あい\T う\footnotesize あい\T う12
1821 \hbox{\tate あいうえ\T お12\Large あ\T12}
1922
2023
Show on old repository browser