diff options
author | Karl Berry <karl@freefriends.org> | 2019-12-20 22:21:32 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-12-20 22:21:32 +0000 |
commit | f27cb1d537a34677b1291d5365c80cde1416417c (patch) | |
tree | 0e2d0e89e70b388b3f45fe8e81491a09cdca51e8 /Master/texmf-dist/tex/latex/fontsetup/fontsetup.sty | |
parent | 42fff9c15d299e41425b1aef482186e3cd2f4d9a (diff) |
fontsetup (20dec19)
git-svn-id: svn://tug.org/texlive/trunk@53195 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/fontsetup/fontsetup.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/fontsetup/fontsetup.sty | 106 |
1 files changed, 106 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/fontsetup/fontsetup.sty b/Master/texmf-dist/tex/latex/fontsetup/fontsetup.sty new file mode 100644 index 00000000000..783c3f1d3da --- /dev/null +++ b/Master/texmf-dist/tex/latex/fontsetup/fontsetup.sty @@ -0,0 +1,106 @@ +%\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{fontsetup}[2019/12/20 Easy font setup by Antonis Tsolomitis] +\typeout{fontsetup: Easy font setup by Antonis Tsolomitis} + +\chardef\fontsetupdefault=0 % TODO fork cm-unicode or complete lm fonts +\chardef\fontsetupgfsartemisia=1 +\chardef\fontsetupgfsdidot=2 +\chardef\fontsetupgfsdidotclassic=3 +\chardef\fontsetupgfsneohellenic=4 +\chardef\fontsetupcambria=5 %install cambria as a system font. cambria.ttc, cambriai.ttf, cambriab.ttf, cambriaz.ttf +\chardef\fontsetuplucida=6 %install in TeX tree +\chardef\fontsetupkerkis=7 +\chardef\fontsetupfira=8 +\chardef\fontsetuptimes=9 +\chardef\fontsetuppalatino=10 %install Linotype Palatino as a System font. Files pala.ttf palai, palab, palabi. Install fspPalatinoGreekSmallCaps as a System font. +\chardef\fontsetupstixtwo=11 +\chardef\fontsetupneokadmus=12 +\chardef\fontsetupmsgaramond=13 %install Microsoft Garamond as a System font. Gara.TTF, Garai, Garabd +\chardef\fontsetupebgaramond=14 +\chardef\fontsetupminion=15 % Install MinionPro and provided fspMinionGreekSmallCaps as a system font. +\chardef\fontsetupneoeuler=16 +\chardef\fontsetuplibertinus=17 + +\chardef\fontsetupfont\fontsetupdefault +\DeclareOption{default}{\chardef\fontsetupfont\fontsetupdefault} +\DeclareOption{gfsartemisia}{\chardef\fontsetupfont\fontsetupgfsartemisia} +\DeclareOption{gfsdidot}{\chardef\fontsetupfont\fontsetupgfsdidot} +\DeclareOption{gfsdidotclassic}{\chardef\fontsetupfont\fontsetupgfsdidotclassic} +\DeclareOption{gfsneohellenic}{\chardef\fontsetupfont\fontsetupgfsneohellenic} +\DeclareOption{cambria}{\chardef\fontsetupfont\fontsetupcambria} +\DeclareOption{lucida}{\chardef\fontsetupfont\fontsetuplucida} +\DeclareOption{kerkis}{\chardef\fontsetupfont\fontsetupkerkis} +\DeclareOption{fira}{\chardef\fontsetupfont\fontsetupfira} +\DeclareOption{times}{\chardef\fontsetupfont\fontsetuptimes} +\DeclareOption{palatino}{\chardef\fontsetupfont\fontsetuppalatino} +\DeclareOption{stixtwo}{\chardef\fontsetupfont\fontsetupstixtwo} +\DeclareOption{neokadmus}{\chardef\fontsetupfont\fontsetupneokadmus} +\DeclareOption{msgaramond}{\chardef\fontsetupfont\fontsetupmsgaramond} +\DeclareOption{ebgaramond}{\chardef\fontsetupfont\fontsetupebgaramond} +\DeclareOption{minion}{\chardef\fontsetupfont\fontsetupminion} +\DeclareOption{neoeuler}{\chardef\fontsetupfont\fontsetupneoeuler} +\DeclareOption{libertinus}{\chardef\fontsetupfont\fontsetuplibertinus} +\DeclareOption*{\PackageWarning{fontsetup}{Unknown ‘\CurrentOption’}} +\ProcessOptions + +%provide a test to know if a 16bits TeX is used. +\RequirePackage{ifthen} +\RequirePackage{iftex} +\newboolean{TeXUnicode} +\ifXeTeX + \setboolean{TeXUnicode}{true} +\fi +\ifLuaTeX + \setboolean{TeXUnicode}{true} +\fi + + + +\ifthenelse{\boolean{TeXUnicode}}{% + %The user runs unicode engine + \ifcase\fontsetupfont + \RequirePackage{fspdefaultfontsot} +\or + \RequirePackage{fspgfsartemisiaot} +\or + \RequirePackage{fspgfsdidotot} +\or + \RequirePackage{fspgfsdidotclassicot} +\or + \RequirePackage{fspgfsneohellenicot} +\or + \RequirePackage{fspcambria} +\or + \RequirePackage{fsplucidaot} +% \RequirePackage[usefilenames]{lucida-otf} %for some reason it fails +\or + \RequirePackage{fspkerkisot} +\or + \RequirePackage{fspfiraot} +\or + \RequirePackage{fsptimesot} +\or + \RequirePackage{fsppalatinoot} +\or + \RequirePackage{fspstixtwoot} +\or + \RequirePackage{neokadmus} +\or + \RequirePackage{fspmsgaramondot} +\or + \RequirePackage{fspebgaramondot} +\or + \RequirePackage{fspminion} +\or + \RequirePackage{fspneoeulerot} +\or + \RequirePackage{libertinus-otf} + \fi +}{%the user runs 8bit engine +\relax} + + + + +\endinput + |