OSDN Git Service

lltjfont.sty: fix
authorHironori Kitagawa <h_kitagawa2001@yahoo.co.jp>
Mon, 3 Feb 2020 19:31:35 +0000 (04:31 +0900)
committerHironori Kitagawa <h_kitagawa2001@yahoo.co.jp>
Mon, 3 Feb 2020 19:31:35 +0000 (04:31 +0900)
src/patches/lltjfont.sty

index 15aa40d..137706b 100644 (file)
@@ -3,7 +3,7 @@
 %
 
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{lltjfont}[2020/01/31 Patch to NFSS2 for LuaTeX-ja]
+\ProvidesPackage{lltjfont}[2020/02/04 Patch to NFSS2 for LuaTeX-ja]
 
 %% patching \DeclareTextComposite
 \def\ltj@chardef@text@cmd#1{%
   \ifx\@reserveda\@empty
     \edef\k@shape{#2}%
   \else
-    \maybe@load@fontshape
+    \begingroup\let\f@encoding\k@encoding\let\f@family\k@family
+          \maybe@load@fontshape\endgroup
     \edef\@reserveda{\k@encoding /\k@family /\k@series/#1}%
      \ifcsname \@reserveda\endcsname
        \edef\k@shape{#1}%