diff options
author | Karl Berry <karl@freefriends.org> | 2015-10-05 20:58:13 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2015-10-05 20:58:13 +0000 |
commit | 3da26c1c9147d37bb5d17da82e64040339d353e3 (patch) | |
tree | e8f3eb929c63f7f7d82ebde209d5e27902722467 /Master/texmf-dist/tex/latex/alegreya/Alegreya.sty | |
parent | 9f0c232e474828b1552ecd430a237b28e8e57e7f (diff) |
alegreya (5oct15)
git-svn-id: svn://tug.org/texlive/trunk@38556 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/alegreya/Alegreya.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/alegreya/Alegreya.sty | 79 |
1 files changed, 59 insertions, 20 deletions
diff --git a/Master/texmf-dist/tex/latex/alegreya/Alegreya.sty b/Master/texmf-dist/tex/latex/alegreya/Alegreya.sty index 95f568484b6..080046d964b 100644 --- a/Master/texmf-dist/tex/latex/alegreya/Alegreya.sty +++ b/Master/texmf-dist/tex/latex/alegreya/Alegreya.sty @@ -1,5 +1,5 @@ \ProvidesPackage{Alegreya}[% - 2015/09/02 (Bob Tennent) Supports Alegreya and AlegreyaSC fonts for all LaTeX engines. ] + 2015/10/04 (Bob Tennent) Supports Alegreya and AlegreyaSC fonts for all LaTeX engines. ] \RequirePackage{ifxetex,ifluatex,textcomp} @@ -133,7 +133,12 @@ UprightFont = *-Regular , ItalicFont = *-Italic , BoldFont = *-\Alegreya@boldstyle , - BoldItalicFont = *-\Alegreya@boldstyle Italic ] + BoldItalicFont = *-\Alegreya@boldstyle Italic , + UprightFeatures = { SmallCapsFont = AlegreyaSC-Regular }, + BoldFeatures = { SmallCapsFont= AlegreyaSC-\Alegreya@boldstyle }, + ItalicFeatures = { SmallCapsFont= AlegreyaSC-Italic }, + BoldItalicFeatures = { SmallCapsFont= AlegreyaSC-\Alegreya@boldstyle Italic }, + ] {Alegreya} % grab current family in case of subsequent change: \let\Alegreyafamily\rmdefault @@ -149,69 +154,105 @@ UprightFont = *-Regular , ItalicFont = *-Italic , BoldFont = *-\Alegreya@boldstyle , - BoldItalicFont = *-\Alegreya@boldstyle Italic ] + BoldItalicFont = *-\Alegreya@boldstyle Italic , + UprightFeatures = { SmallCapsFont = AlegreyaSC-Regular }, + BoldFeatures = { SmallCapsFont= AlegreyaSC-\Alegreya@boldstyle }, + ItalicFeatures = { SmallCapsFont= AlegreyaSC-Italic }, + BoldItalicFeatures = { SmallCapsFont= AlegreyaSC-\Alegreya@boldstyle Italic }, + ] {Alegreya} - \def\rmfamily{\Alegreya@OsF\def\scshape{\AlegreyaSC}} + \def\rmfamily{\Alegreya@OsF} \rmfamily \defaultfontfeatures{} } + + \newfontfamily\Alegreya [ Numbers = {\Alegreya@figurealign,\Alegreya@figurestyle}, UprightFont = *-Regular , ItalicFont = *-Italic , BoldFont = *-\Alegreya@boldstyle , - BoldItalicFont = *-\Alegreya@boldstyle Italic ] + BoldItalicFont = *-\Alegreya@boldstyle Italic , + UprightFeatures = { SmallCapsFont = AlegreyaSC-Regular }, + BoldFeatures = { SmallCapsFont= AlegreyaSC-\Alegreya@boldstyle }, + ItalicFeatures = { SmallCapsFont= AlegreyaSC-Italic }, + BoldItalicFeatures = { SmallCapsFont= AlegreyaSC-\Alegreya@boldstyle Italic }, + ] {Alegreya} \newfontfamily\AlegreyaOsF [ Numbers = {Proportional,OldStyle}, UprightFont = *-Regular , ItalicFont = *-Italic , BoldFont = *-\Alegreya@boldstyle , - BoldItalicFont = *-\Alegreya@boldstyle Italic ] + BoldItalicFont = *-\Alegreya@boldstyle Italic , + UprightFeatures = { SmallCapsFont = AlegreyaSC-Regular }, + BoldFeatures = { SmallCapsFont= AlegreyaSC-\Alegreya@boldstyle }, + ItalicFeatures = { SmallCapsFont= AlegreyaSC-Italic }, + BoldItalicFeatures = { SmallCapsFont= AlegreyaSC-\Alegreya@boldstyle Italic }, + ] {Alegreya} \newfontfamily\AlegreyaLF [ Numbers = {Proportional,Lining}, UprightFont = *-Regular , ItalicFont = *-Italic , BoldFont = *-\Alegreya@boldstyle , - BoldItalicFont = *-\Alegreya@boldstyle Italic ] + BoldItalicFont = *-\Alegreya@boldstyle Italic , + UprightFeatures = { SmallCapsFont = AlegreyaSC-Regular }, + BoldFeatures = { SmallCapsFont= AlegreyaSC-\Alegreya@boldstyle }, + ItalicFeatures = { SmallCapsFont= AlegreyaSC-Italic }, + BoldItalicFeatures = { SmallCapsFont= AlegreyaSC-\Alegreya@boldstyle Italic }, + ] {Alegreya} \newfontfamily\AlegreyaTOsF [ Numbers = {Monospaced,OldStyle}, UprightFont = *-Regular , ItalicFont = *-Italic , BoldFont = *-\Alegreya@boldstyle , - BoldItalicFont = *-\Alegreya@boldstyle Italic ] + BoldItalicFont = *-\Alegreya@boldstyle Italic , + UprightFeatures = { SmallCapsFont = AlegreyaSC-Regular }, + BoldFeatures = { SmallCapsFont= AlegreyaSC-\Alegreya@boldstyle }, + ItalicFeatures = { SmallCapsFont= AlegreyaSC-Italic }, + BoldItalicFeatures = { SmallCapsFont= AlegreyaSC-\Alegreya@boldstyle Italic }, + ] {Alegreya} \newfontfamily\Alegreya@OsF % for \useosf [ Numbers = {\Alegreya@figurealign, OldStyle}, UprightFont = *-Regular , ItalicFont = *-Italic , BoldFont = *-\Alegreya@boldstyle , - BoldItalicFont = *-\Alegreya@boldstyle Italic ] + BoldItalicFont = *-\Alegreya@boldstyle Italic, + UprightFeatures = { SmallCapsFont = AlegreyaSC-Regular }, + BoldFeatures = { SmallCapsFont= AlegreyaSC-\Alegreya@boldstyle }, + ItalicFeatures = { SmallCapsFont= AlegreyaSC-Italic }, + BoldItalicFeatures = { SmallCapsFont= AlegreyaSC-\Alegreya@boldstyle Italic }, + ] {Alegreya} \newfontfamily\AlegreyaTLF [ Numbers = {Monospaced,Lining}, UprightFont = *-Regular , ItalicFont = *-Italic , BoldFont = *-\Alegreya@boldstyle , - BoldItalicFont = *-\Alegreya@boldstyle Italic ] + BoldItalicFont = *-\Alegreya@boldstyle Italic , + UprightFeatures = { SmallCapsFont = AlegreyaSC-Regular }, + BoldFeatures = { SmallCapsFont= AlegreyaSC-\Alegreya@boldstyle }, + ItalicFeatures = { SmallCapsFont= AlegreyaSC-Italic }, + BoldItalicFeatures = { SmallCapsFont= AlegreyaSC-\Alegreya@boldstyle Italic }, + ] {Alegreya} \newfontfamily\AlegreyaBlack [ Numbers = {\Alegreya@figurealign,\Alegreya@figurestyle}, UprightFont = *-Black , ItalicFont = *-BlackItalic , BoldFont = *-Black , - BoldItalicFont = *-BlackItalic ] + BoldItalicFont = *-BlackItalic , + UprightFeatures = { SmallCapsFont = AlegreyaSC-Black }, + BoldFeatures = { SmallCapsFont= AlegreyaSC-Black }, + ItalicFeatures = { SmallCapsFont= AlegreyaSC-BlackItalic }, + BoldItalicFeatures = { SmallCapsFont= AlegreyaSC-BlackItalic }, + ] {Alegreya} - \newfontfamily\AlegreyaSC - [ UprightFont = *-Regular , - ItalicFont = *-Italic , - BoldFont = *-\Alegreya@boldstyle , - BoldItalicFont = *-\Alegreya@boldstyle Italic ] - {AlegreyaSC} - \def\rmfamily{\Alegreya\def\scshape{\AlegreyaSC}} + \def\rmfamily{\Alegreya} \rmfamily \providecommand\sufigures{\addfontfeatures{VerticalPosition=Superior}} \providecommand\infigures{\addfontfeatures{VerticalPosition=ScientificInferior}} @@ -226,7 +267,6 @@ \def\AlegreyaTLF{\fontfamily{Alegreya-TLF}\selectfont} \def\AlegreyaTOsF{\fontfamily{Alegreya-TOsF}\selectfont} \def\AlegreyaBlack{\fontfamily{\Alegreyafamily}\fontseries{k}\selectfont} - \def\AlegreyaSC{\fontfamily{AlegreyaSC-TLF}\selectfont} \fa@naming@exception{figures}{{superior}{proportional}}{Sup} \fa@naming@exception{figures}{{superior}{tabular}}{Sup} @@ -237,7 +277,6 @@ \providecommand\infigures{\@nomath\infigures\fontfigurestyle{inferior}\selectfont} \def\rmdefault{\Alegreyafamily} - \def\rmfamily{\fontfamily{\Alegreyafamily}\selectfont\def\scshape{\AlegreyaSC}} \rmfamily \def\useosf{\edef\Alegreya@figurestyle{OsF}\renewcommand*{\rmdefault}{Alegreya-\Alegreya@figurealign OsF}} |