Commit 579794fa authored by Silke Hofstra's avatar Silke Hofstra

Fix some Roboto functionality

- Restore the thin/light/medium font families
- Add thin/light/medium univers aliases
- Fix the Math fonts
parent b2a6a527
......@@ -44,8 +44,34 @@
% Load roboto as fallback for certain situation
\RequirePackage{roboto}
% Font features for Roboto
\defaultfontfeatures
{ Ligatures = TeX ,
Extension = .ttf ,
UprightFont = *-Regular ,
ItalicFont = *-Italic ,
BoldFont = *-Bold ,
BoldItalicFont = *-BoldItalic }
\newfontfamily \robotothin
[ UprightFont = *-Thin ,
ItalicFont = *-ThinItalic ]
{Roboto}
\newfontfamily \robotolight
[ UprightFont = *-Light ,
ItalicFont = *-LightItalic ]
{Roboto}
\newfontfamily \robotomedium
[ UprightFont = *-Medium ,
ItalicFont = *-MediumItalic ,
BoldFont = *-Black ,
BoldItalicFont = *-BlackItalic ]
{Roboto}
% For the math font always use Roboto for Greek
\bool_if:NT \utwentefont_math {\setallmainfonts(Greek){Roboto} }
\bool_if:NT \utwentefont_math { \setallmainfonts(Greek){Roboto} }
% Roboto is used as the free alternative to Linotype Univers
\bool_if:NTF \utwentefont_freefont {
......@@ -53,9 +79,9 @@
\cs_set_eq:NN \univers \roboto
\cs_set_eq:NN \universcn \robotocondensed
\cs_set_eq:NN \universtitle \robotocondensed
% Set the sans font
\setsansfont{Roboto}
\cs_set_eq:NN \universthin \robotothin
\cs_set_eq:NN \universlight \robotolight
\cs_set_eq:NN \universmed \robotomedium
% Set the math font
\bool_if:NT \utwentefont_math {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment