...
 
Commits (2)
\RequirePackage{ l3keys2e }
\ProvidesExplPackage
{utwentefont}
{2017/01/25}
{2.1}
{2018/07/13}
{2.2}
{Fonts for the visual identity of the University of Twente}
% Use OpenType fonts for XeTeX and LuaTeX.
......@@ -42,36 +42,7 @@
\RequirePackage{mathspec}
% Load roboto as fallback for certain situation
% This can be done with the roboto package,
% but it uses an older font version missing small caps
% \usepackage{roboto}
\defaultfontfeatures
{ Ligatures = TeX ,
Extension = .ttf ,
UprightFont = *-Regular ,
ItalicFont = *-Italic ,
BoldFont = *-Bold ,
BoldItalicFont = *-BoldItalic }
\newfontfamily \roboto {Roboto}
\newfontfamily \robotocondensed {RobotoCondensed}
\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}
\RequirePackage{roboto}
% For the math font always use Roboto for Greek
\bool_if:NT \utwentefont_math {\setallmainfonts(Greek){Roboto} }
......@@ -82,8 +53,6 @@
\cs_set_eq:NN \univers \roboto
\cs_set_eq:NN \universcn \robotocondensed
\cs_set_eq:NN \universtitle \robotocondensed
\cs_set_eq:NN \universthin \robotothin
\cs_set_eq:NN \universmed \robotomedium
% Set the sans font
\setsansfont{Roboto}
......