diff options
author | Norbert Preining <norbert@preining.info> | 2023-06-22 03:01:06 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2023-06-22 03:01:06 +0000 |
commit | ac667b3d60d89dfd061e15583ed0062204ec705c (patch) | |
tree | 2a22ace0947c6691f783ba4a418000310d911817 /fonts/xcharter-math/xcharter-otf.sty | |
parent | 16d6a70c44a97b15c195cf6b10f59f3deadd0e66 (diff) |
CTAN sync 202306220301
Diffstat (limited to 'fonts/xcharter-math/xcharter-otf.sty')
-rw-r--r-- | fonts/xcharter-math/xcharter-otf.sty | 50 |
1 files changed, 26 insertions, 24 deletions
diff --git a/fonts/xcharter-math/xcharter-otf.sty b/fonts/xcharter-math/xcharter-otf.sty index e156e3b860..1315b946ee 100644 --- a/fonts/xcharter-math/xcharter-otf.sty +++ b/fonts/xcharter-math/xcharter-otf.sty @@ -1,6 +1,6 @@ -\NeedsTeXFormat{LaTeX2e}[2018/01/01] -\def\fileversion{0.40} -\def\filedate{2023-03-29} +\NeedsTeXFormat{LaTeX2e}[2022/06/01] +\def\fileversion{0.41} +\def\filedate{2023-06-21} \ProvidesPackage{xcharter-otf}[\filedate\space\fileversion] % Ensure luatex or xetex engine @@ -14,34 +14,36 @@ \newopentypefeature{Style}{subsetneq}{+ss06} \newopentypefeature{Style}{parallelslant}{+ss07} +\newtoks\XCottoksT +\newtoks\XCottoksM \newcommand*{\XCstore@KV@Option}[2]{% \def\XCot@scale{Scale}\def\XCot@opt{#1}% \ifx\XCot@opt\XCot@scale\XCottoksT={Scale={#2}}\fi \XCottoksM=\expandafter{\the\XCottoksM #1={#2},}} -% Options: forward them to \setmathfont except "tight", "loose" and "no-text". -\RequirePackage{xkeyval} -\newtoks\XCottoksT -\newtoks\XCottoksM - -\newif\ifXCot@tight -\newif\ifXCot@notext -\DeclareOptionX{no-text}{\XCot@notexttrue} -\DeclareOptionX{tight}{\XCot@tighttrue} -\DeclareOptionX{loose}{\XCot@tightfalse} -\DeclareOptionX{fulloldstyle}{\XCstore@KV@Option{Numbers}{OldStyle}} -\DeclareOptionX{math-style}{\XCstore@KV@Option{math-style}{#1}} -\DeclareOptionX{bold-style}{\XCstore@KV@Option{bold-style}{#1}} -\DeclareOptionX{nabla}{\XCstore@KV@Option{nabla}{#1}} -\DeclareOptionX{partial}{\XCstore@KV@Option{partial}{#1}} -\DeclareOptionX{CharacterVariant}{\XCstore@KV@Option{CharacterVariant}{#1}} -\DeclareOptionX{StylisticSet}{\XCstore@KV@Option{StylisticSet}{#1}} -\DeclareOptionX{Style}{\XCstore@KV@Option{Style}{#1}} -\DeclareOptionX{Scale}{\XCstore@KV@Option{Scale}{#1}} -\ExecuteOptionsX{tight} -\ProcessOptionsX +% Package options: +\DeclareKeys + { + no-text.if = XCot@notext , + tight.if = XCot@tight , + loose.code = \XCot@tightfalse , + fulloldstyle.code = \XCstore@KV@Option{Numbers}{OldStyle} , + math-style.code = \XCstore@KV@Option{math-style}{#1} , + bold-style.code = \XCstore@KV@Option{bold-style}{#1} , + nabla.code = \XCstore@KV@Option{nabla}{#1} , + partial.code = \XCstore@KV@Option{partial}{#1} , + CharacterVariant.code = \XCstore@KV@Option{CharacterVariant}{#1} , + StylisticSet.code = \XCstore@KV@Option{StylisticSet}{#1} , + Style.code = \XCstore@KV@Option{Style}{#1} , + Scale.code = \XCstore@KV@Option{Scale}{#1} + } +% +\XCot@tighttrue +\ProcessKeyOptions +% % Math fonts: XCharter-Math.otf % Following Joseph Wright in https://tex.stackexchange.com/questions/451 +\XCstore@KV@Option{BoldFont}{XCharter-Math-Bold.otf} \begingroup \edef\temp{% \endgroup |