summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/roboto/roboto.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/roboto/roboto.sty')
-rw-r--r--Master/texmf-dist/tex/latex/roboto/roboto.sty15
1 files changed, 8 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/latex/roboto/roboto.sty b/Master/texmf-dist/tex/latex/roboto/roboto.sty
index 5851b5cc43a..388ee5be2ba 100644
--- a/Master/texmf-dist/tex/latex/roboto/roboto.sty
+++ b/Master/texmf-dist/tex/latex/roboto/roboto.sty
@@ -1,6 +1,6 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{roboto}
- [2015/09/15 (Bob Tennent) Supports Roboto fonts for all LaTeX engines.]
+ [2017/04/10 (Bob Tennent) Supports Roboto fonts for all LaTeX engines.]
\RequirePackage{ifxetex,ifluatex,xkeyval,textcomp}
@@ -107,6 +107,7 @@
\fi
\ifroboto@otf
+ \def\roboto@regular{Regular}
\ifxetex\XeTeXtracingfonts=1\fi
\defaultfontfeatures{
Ligatures = TeX ,
@@ -116,7 +117,7 @@
\setsansfont
[ Numbers = {\roboto@figurealign,\roboto@figurestyle},
UprightFont = *-\roboto@regstyle ,
- ItalicFont = *-\roboto@regstyle Italic ,
+ ItalicFont = *-\ifx\roboto@regstyle\roboto@regular Italic\else\roboto@regstyle Italic\fi,
BoldFont = *-Bold ,
BoldItalicFont = *-BoldItalic ]
{RobotoCondensed}
@@ -124,7 +125,7 @@
\setsansfont
[ Numbers = {\roboto@figurealign,\roboto@figurestyle},
UprightFont = *-\roboto@regstyle ,
- ItalicFont = *-\roboto@regstyle Italic ,
+ ItalicFont = *-\ifx\roboto@regstyle\roboto@regular Italic\else\roboto@regstyle Italic\fi,
BoldFont = *-\roboto@boldstyle ,
BoldItalicFont = *-\roboto@boldstyle Italic ]
{Roboto}
@@ -141,14 +142,14 @@
\newfontfamily\roboto
[ Numbers = {\roboto@figurealign,\roboto@figurestyle},
UprightFont = *-\roboto@regstyle ,
- ItalicFont = *-\roboto@regstyle Italic ,
+ ItalicFont = *-\ifx\roboto@regstyle\roboto@regular Italic\else\roboto@regstyle Italic\fi,
BoldFont = *-\roboto@boldstyle ,
BoldItalicFont = *-\roboto@boldstyle Italic ]
{Roboto}
\newfontfamily\robotocondensed
[ Numbers = {\roboto@figurealign,\roboto@figurestyle},
UprightFont = *-\roboto@regstyle ,
- ItalicFont = *-\roboto@regstyle Italic ,
+ ItalicFont = *-\ifx\roboto@regstyle\roboto@regular Italic\else\roboto@regstyle Italic\fi,
BoldFont = *-Bold ,
BoldItalicFont = *-BoldItalic ]
{RobotoCondensed}
@@ -159,14 +160,14 @@
\newfontfamily\robotoOsF
[ Numbers = {\roboto@figurealign,OldStyle},
UprightFont = *-\roboto@regstyle ,
- ItalicFont = *-\roboto@regstyle Italic ,
+ ItalicFont = *-\ifx\roboto@regstyle\roboto@regular Italic\else\roboto@regstyle Italic\fi,
BoldFont = *-\roboto@boldstyle ,
BoldItalicFont = *-\roboto@boldstyle Italic ]
{Roboto}
\newfontfamily\robotoLF
[ Numbers = {\roboto@figurealign,Lining},
UprightFont = *-\roboto@regstyle ,
- ItalicFont = *-\roboto@regstyle Italic ,
+ ItalicFont = *-\ifx\roboto@regstyle\roboto@regular Italic\else\roboto@regstyle Italic\fi,
BoldFont = *-\roboto@boldstyle ,
BoldItalicFont = *-\roboto@boldstyle Italic ]
{Roboto}