diff options
author | Karl Berry <karl@freefriends.org> | 2019-04-06 21:04:13 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-04-06 21:04:13 +0000 |
commit | 7e6d3578613f3a5e14a3273bbe252ea335144b87 (patch) | |
tree | 9793496e171103d4e2f2bc660a21707e90571a15 /Master/texmf-dist/tex/latex/roboto/roboto-mono.sty | |
parent | 33dbe421ce4d6763e4594ac100ae980513cbd7f9 (diff) |
roboto (6apr19)
git-svn-id: svn://tug.org/texlive/trunk@50809 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/roboto/roboto-mono.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/roboto/roboto-mono.sty | 101 |
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{} |