OSDN Git Service

51346d56d14766beb014b2e2057ffb0693be3fc0
[luatex-ja/luatexja.git] / src / addons / luatexja-fontspec.sty
1 %
2 % luatexja-fontspec.sty
3 %
4
5 \NeedsTeXFormat{LaTeX2e}
6 \ProvidesPackage{luatexja-fontspec}[2014/06/19 fontspec support of LuaTeX-ja]
7 \RequirePackage{l3keys2e,luatexja}
8 \ExplSyntaxOn
9
10 \bool_new:N \ltj_fontspec_match
11 \cs_set:Nn  \ltj_fontspec_pass_opts: {}
12 \keys_define:nn { luatexja-fontspec }
13   {
14     match .bool_set:N = \ltj_fontspec_match,
15     match .default:n  = true,
16     pass .code:n = \cs_set:Nn \ltj_fontspec_pass_opts: {#1},
17   }
18 \ProcessKeysOptions { luatexja-fontspec }
19 \RequirePackage[\ltj_fontspec_pass_opts:]{fontspec}[2011/09/13]
20 \cs_if_exist:NTF \fontspec_update_featstr:n {
21   \RequirePackage{luatexja-fontspec-23}
22 } {
23   \RequirePackage{luatexja-fontspec-24}
24 }
25
26 \endinput