• R/O
  • HTTP
  • SSH
  • HTTPS

luatexja: Commit

ソースコードの管理場所


Commit MetaInfo

Revision99e18657ba9db10bde690150c6b62816ff665222 (tree)
Time2018-09-07 18:45:41
AuthorHironori Kitagawa <h_kitagawa2001@yaho...>
CommiterHironori Kitagawa

Log Message

\mgfamily

Change Summary

Incremental Difference

--- a/src/addons/luatexja-preset.sty
+++ b/src/addons/luatexja-preset.sty
@@ -1,5 +1,5 @@
11 % luatexja-preset.sty
2-\ProvidesPackage{luatexja-preset}[2018/09/01 Japanese font presets]
2+\ProvidesPackage{luatexja-preset}[2018/09/07 Japanese font presets]
33
44 \RequirePackage{expl3,l3keys2e}
55 \RequirePackage{luatexja}
@@ -488,6 +488,7 @@
488488
489489 \bool_if:NT \g_ltjpreset_deluxe_bool {
490490 \DeclareKanjiFamily{JY3}{ltjpmg}{}\DeclareKanjiFamily{JT3}{ltjpmg}{}
491+ \let\mgfamily\undefined
491492 \DeclareRobustCommand\mgfamily {
492493 \not@math@alphabet\mgfamily\relax\kanjifamily{ltjpmg}\selectfont
493494 }
@@ -555,9 +556,15 @@
555556 ] { \ltjpreset_font_gt_m: }
556557 \bool_if:NT \g_ltjpreset_deluxe_bool {
557558 %% mg
558- \newjfontfamily \mgfamily [
559- BoldFont = \ltjpreset_font_mg_m: \tl_use:N \l_ltjpreset_add_features_tl
560- ] { \ltjpreset_font_mg_m: }
559+ \bool_if_exist:NTF \setfontfamily {
560+ \setjfontfamily \mgfamily [
561+ BoldFont = \ltjpreset_font_mg_m: \tl_use:N \l_ltjpreset_add_features_tl
562+ ] { \ltjpreset_font_mg_m: }
563+ } {
564+ \newjfontfamily \mgfamily [
565+ BoldFont = \ltjpreset_font_mg_m: \tl_use:N \l_ltjpreset_add_features_tl
566+ ] { \ltjpreset_font_mg_m: }
567+ }
561568 \DeclareTextFontCommand{\textmg}{\mgfamily}
562569 }
563570 }
--- a/src/patches/lltjdefs.sty
+++ b/src/patches/lltjdefs.sty
@@ -3,10 +3,10 @@
33 %
44
55 \NeedsTeXFormat{LaTeX2e}
6-\ProvidesPackage{lltjdefs}[2018/06/15 Default font settings of LuaTeX-ja]
6+\ProvidesPackage{lltjdefs}[2018/09/05 Default font settings of LuaTeX-ja]
77
8-\def\ltj@stdmcfont{IPAExMincho}
9-\def\ltj@stdgtfont{IPAExGothic}
8+\ifdefined\ltj@stdmcfont\else\def\ltj@stdmcfont{IPAExMincho}\fi
9+\ifdefined\ltj@stdgtfont\else\def\ltj@stdgtfont{IPAExGothic}\fi
1010 \InputIfFileExists{luatexja.cfg}{%
1111 \typeout{*************************^^J%
1212 * Loading luatexja.cfg.^^J%
Show on old repository browser