diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/libertine/biolinum-otf.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/libertine/biolinum-otf.sty | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/libertine/biolinum-otf.sty b/Master/texmf-dist/tex/latex/libertine/biolinum-otf.sty new file mode 100644 index 00000000000..8aca0df631b --- /dev/null +++ b/Master/texmf-dist/tex/latex/libertine/biolinum-otf.sty @@ -0,0 +1,59 @@ +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{biolinum-otf} + [2012/10/31 (autoinst) Style file for LinuxBiolinumO when using LuaLaTeX or XeLatex.] +\RequirePackage{ifxetex,ifluatex} +\ifxetex + % okay + \XeTeXtracingfonts=1\relax +\else + \ifluatex + % okay + \else + \PackageError{biolinum-otf}{runs only with xelatex and lualatex!}{} + \fi +\fi + + +\RequirePackage{textcomp} +\IfFileExists{fontaxes.sty}{ + \RequirePackage{fontaxes} +}{} + +\IfFileExists{xkeyval.sty}{ + \providecommand*{\LinuxBiolinumO@scale}{1} + \RequirePackage{xkeyval} + \DeclareOptionX{scaled}{\renewcommand*{\LinuxBiolinumO@scale}{##1}} +}{ + \let\DeclareOptionX\DeclareOption + \let\ExecuteOptionsX\ExecuteOptions + \let\ProcessOptionsX\ProcessOptions +} + + +\DeclareOptionX{lining}{\edef\LinuxBiolinumO@figurestyle{Lining}} +\DeclareOptionX{nf}{\edef\LinuxBiolinumO@figurestyle{Lining}} +\DeclareOptionX{oldstyle}{\edef\LinuxBiolinumO@figurestyle{OldStyle}} +\DeclareOptionX{osf}{\edef\LinuxBiolinumO@figurestyle{OldStyle}} +\DeclareOptionX{tabular}{\edef\LinuxBiolinumO@figurealign{Monospaced}} +\DeclareOptionX{proportional}{\edef\LinuxBiolinumO@figurealign{Proportional}} +\DeclareOptionX{bold}{} +\DeclareOptionX{semibold}{} +\ExecuteOptionsX{oldstyle,proportional} +\ProcessOptionsX\relax + +\RequirePackage{fontspec} +\defaultfontfeatures{ + Ligatures = TeX , + Extension = .otf } + +% Default font +\setsansfont + [ Numbers = {\LinuxBiolinumO@figurealign, \LinuxBiolinumO@figurestyle} , + Scale = \LinuxBiolinumO@scale , + UprightFont = *_R , + ItalicFont = *_RI , + BoldFont = *_RB , + BoldItalicFont = *_RBO ] % oblique to fake italic + {LinBiolinum} + +\endinput |