summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/roboto/roboto-mono.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/roboto/roboto-mono.sty')
-rw-r--r--Master/texmf-dist/tex/latex/roboto/roboto-mono.sty101
1 files changed, 53 insertions, 48 deletions
diff --git a/Master/texmf-dist/tex/latex/roboto/roboto-mono.sty b/Master/texmf-dist/tex/latex/roboto/roboto-mono.sty
index 5e90a8f021c..344e439585a 100644
--- a/Master/texmf-dist/tex/latex/roboto/roboto-mono.sty
+++ b/Master/texmf-dist/tex/latex/roboto/roboto-mono.sty
@@ -1,6 +1,6 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{roboto-mono}
- [2019/02/28 (Bob Tennent) Supports RobotoMono fonts for all LaTeX engines.]
+ [2019/04/05 (Bob Tennent) Supports RobotoMono fonts for all LaTeX engines.]
\RequirePackage{ifxetex,ifluatex,xkeyval,textcomp}
@@ -44,12 +44,12 @@
\else % type1
- \def\bfseries@tt{b}
- \ifrobotomono@medium\def\bfseries@tt{mb}\fi
- \ifrobotomono@black\def\bfseries@tt{k}\fi
- \def\mdseries@tt{m}
- \ifrobotomono@thin\def\mdseries@tt{t}\fi
- \ifrobotomono@light\def\mdseries@tt{l}\fi
+ \def\bfseries@tt{bold}
+ \ifrobotomono@medium\def\bfseries@tt{medium}\fi
+ \ifrobotomono@black\def\bfseries@tt{black}\fi
+ \def\mdseries@tt{regular}
+ \ifrobotomono@thin\def\mdseries@tt{thin}\fi
+ \ifrobotomono@light\def\mdseries@tt{light}\fi
\fi
@@ -65,33 +65,14 @@
\defaultfontfeatures{
Ligatures = TeX ,
Scale = \RobotoMono@scale ,
- Extension = .ttf }
+ Extension = .otf }
\setmonofont
[
UprightFont = *-\robotomono@regstyle ,
ItalicFont = *-\ifx\robotomono@regstyle\robotomono@regular Italic\else\robotomono@regstyle Italic\fi ,
BoldFont = *-\robotomono@boldstyle ,
BoldItalicFont = *-\robotomono@boldstyle Italic ,
- FontFace = {t}{n}{*-Thin},
- FontFace = {t}{sc}{*-Thin},
- FontFace = {t}{sl}{*-Thin},
- FontFace = {t}{it}{*-ThinItalic},
- FontFace = {l}{n}{*-Light},
- FontFace = {l}{sc}{*-Light},
- FontFace = {l}{sl}{*-Light},
- FontFace = {l}{it}{*-LightItalic},
- FontFace = {m}{n}{*-Regular},
- FontFace = {m}{sc}{*-Regular},
- FontFace = {m}{sl}{*-Regular},
- FontFace = {m}{it}{*-Italic},
- FontFace = {mb}{n}{*-Medium},
- FontFace = {mb}{sc}{*-Medium},
- FontFace = {mb}{sl}{*-Medium},
- FontFace = {mb}{it}{*-MediumItalic},
- FontFace = {b}{n}{*-Bold},
- FontFace = {b}{sc}{*-Bold},
- FontFace = {b}{sl}{*-Bold},
- FontFace = {b}{it}{*-BoldItalic} ]
+ ]
{RobotoMono}
% grab current family in case of subsequent change:
\let\robotomonofamily\ttdefault
@@ -101,33 +82,57 @@
ItalicFont = *-\ifx\robotomono@regstyle\robotomono@regular Italic\else\robotomono@regstyle Italic\fi ,
BoldFont = *-\robotomono@boldstyle ,
BoldItalicFont = *-\robotomono@boldstyle Italic ,
- FontFace = {t}{n}{*-Thin},
- FontFace = {t}{sc}{*-Thin},
- FontFace = {t}{sl}{*-Thin},
- FontFace = {t}{it}{*-ThinItalic},
- FontFace = {l}{n}{*-Light},
- FontFace = {l}{sc}{*-Light},
- FontFace = {l}{sl}{*-Light},
- FontFace = {l}{it}{*-LightItalic},
- FontFace = {m}{n}{*-Regular},
- FontFace = {m}{sc}{*-Regular},
- FontFace = {m}{sl}{*-Regular},
- FontFace = {m}{it}{*-Italic},
- FontFace = {mb}{n}{*-Medium},
- FontFace = {mb}{sc}{*-Medium},
- FontFace = {mb}{sl}{*-Medium},
- FontFace = {mb}{it}{*-MediumItalic},
- FontFace = {b}{n}{*-Bold},
- FontFace = {b}{sc}{*-Bold},
- FontFace = {b}{sl}{*-Bold},
- FontFace = {b}{it}{*-BoldItalic} ]
+ ]
{RobotoMono}
+ \newfontfamily\robotomonoregular
+ [
+ UprightFont = *-Regular ,
+ ItalicFont = *-Italic,
+ ]
+ {RobotoMono}
+ \newfontfamily\robotomonomedium
+ [
+ UprightFont = *-Medium ,
+ ItalicFont = *-MediumItalic,
+ ]
+ {RobotoMono}
+ \newfontfamily\robotomonothin
+ [
+ UprightFont = *-Thin ,
+ ItalicFont = *-ThinItalic,
+ ]
+ {RobotoMono}
+ \newfontfamily\robotomonolight
+ [
+ UprightFont = *-Light ,
+ ItalicFont = *-LightItalic,
+ ]
+ {RobotoMono}
+ \newfontfamily\robotomonobold
+ [
+ UprightFont = *-Bold ,
+ ItalicFont = *-BoldItalic,
+ ]
+ {RobotoMono}
+
\else % type1
+
\def\robotomonofamily{RobotoMono-TLF}
\newcommand*\robotomono{\fontfamily{\robotomonofamily}\selectfont}
\def\ttdefault{\robotomonofamily}
+ \def\robotomonoregular{\fontfamily{\ttdefault}\fontseries{regular}\selectfont}
+ \def\robotomonomedium{\fontfamily{\ttdefault}\fontseries{medium}\selectfont}
+ \def\robotomonothin{\fontfamily{\ttdefault}\fontseries{thin}\selectfont}
+ \def\robotomonoklight{\fontfamily{\ttdefault}\fontseries{light}\selectfont}
+ \def\robotomonobold{\fontfamily{\ttdefault}\fontseries{bold}\selectfont}
\fi
+\DeclareTextFontCommand{\robotomonoRegular}{\robotomonoregular}
+\DeclareTextFontCommand{\robotomonoMedium}{\robotomonomedium}
+\DeclareTextFontCommand{\robotomonoThin}{\robotomonothin}
+\DeclareTextFontCommand{\robotomonoLight}{\robotomonolight}
+\DeclareTextFontCommand{\robotomonoBold}{\robotomonobold}
+
\ifrobotomono@otf
% turn off defaults in case other fonts are selected:
\defaultfontfeatures{}