diff options
author | Karl Berry <karl@freefriends.org> | 2018-01-21 22:34:29 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2018-01-21 22:34:29 +0000 |
commit | d09ad8b89dbedfbe939605baf5380584077e4584 (patch) | |
tree | 43fa343e175662ff442d3c068767d18a9a5ec07f /Master/texmf-dist/tex/luatex/luatexja/addons/luatexja-fontspec.sty | |
parent | 12752728bebf1cd785fc968fffcc83e8da4989c4 (diff) |
luatexja (21jan18)
git-svn-id: svn://tug.org/texlive/trunk@46405 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/luatex/luatexja/addons/luatexja-fontspec.sty')
-rw-r--r-- | Master/texmf-dist/tex/luatex/luatexja/addons/luatexja-fontspec.sty | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/luatex/luatexja/addons/luatexja-fontspec.sty b/Master/texmf-dist/tex/luatex/luatexja/addons/luatexja-fontspec.sty index 848eedbd68a..34ef824f38e 100644 --- a/Master/texmf-dist/tex/luatex/luatexja/addons/luatexja-fontspec.sty +++ b/Master/texmf-dist/tex/luatex/luatexja/addons/luatexja-fontspec.sty @@ -3,17 +3,19 @@ % \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{luatexja-fontspec}[2017/06/25 fontspec support of LuaTeX-ja] +\ProvidesPackage{luatexja-fontspec}[2017/12/31 fontspec support of LuaTeX-ja] \RequirePackage{l3keys2e,luatexja} \ExplSyntaxOn -%%%%%%%% \g_ltj_fontspec_scale_fp -%% Default scale value for jfont. -\fp_new:N \g_ltj_fontspec_scale_fp -\group_begin: -\fontsize{16}{16}\selectfont -\fp_gset:Nn \g_ltj_fontspec_scale_fp {\zw / 16} -\group_end: +\cs_if_exist:NF \Cjascale { + %%%%%%%% \g_ltj_fontspec_scale_fp + %% Default scale value for jfont. + \fp_new:N \g_ltj_fontspec_scale_fp + \group_begin: + \fontsize{16}{16}\selectfont + \cs_gset:Npx \Cjascale { \fp_to_decimal:n {\zw / 16} } + \group_end: +} \bool_new:N \ltj_fontspec_match_bool \keys_define:nn { luatexja-fontspec } @@ -22,10 +24,11 @@ match .default:n = true, pass .code:n = \PassOptionsToPackage{#1} {fontspec}, % 互換性のために残したオプション - scale .fp_gset:N = \g_ltj_fontspec_scale_fp, + scale .code:n = \gdef\Cjascale{#1}, unknown .code:n = \PassOptionsToPackage { \l_keys_key_tl } {fontspec}, } \ProcessKeysOptions{ luatexja-fontspec } + \RequirePackage{fontspec}[2017/01/01]% v2.5c \RequirePackage{luatexja-fontspec-25c} %\@ifpackagelater{fontspec}{2017/01/01}% |