texlive[50242] Master/texmf-dist: roboto (5mar19)

commits+karl at tug.org commits+karl at tug.org
Tue Mar 5 23:32:47 CET 2019


Revision: 50242
          http://tug.org/svn/texlive?view=revision&revision=50242
Author:   karl
Date:     2019-03-05 23:32:46 +0100 (Tue, 05 Mar 2019)
Log Message:
-----------
roboto (5mar19)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/fonts/roboto/README
    trunk/Master/texmf-dist/tex/latex/roboto/roboto-mono.sty
    trunk/Master/texmf-dist/tex/latex/roboto/roboto.sty

Added Paths:
-----------
    trunk/Master/texmf-dist/doc/fonts/roboto/ChangeLogLaTeX.txt

Added: trunk/Master/texmf-dist/doc/fonts/roboto/ChangeLogLaTeX.txt
===================================================================
--- trunk/Master/texmf-dist/doc/fonts/roboto/ChangeLogLaTeX.txt	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/fonts/roboto/ChangeLogLaTeX.txt	2019-03-05 22:32:46 UTC (rev 50242)
@@ -0,0 +1,6 @@
+2019-03-01 and 2019-03-03:
+
+  FontFace and NFSSFamily declarations provided by Mario
+  Haustein added to roboto.sty and roboto-mono.sty so that
+  \fontseries{...} and \fontfamily{...} commands work as
+  expected with xelatex and lualatex.


Property changes on: trunk/Master/texmf-dist/doc/fonts/roboto/ChangeLogLaTeX.txt
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/texmf-dist/doc/fonts/roboto/README
===================================================================
--- trunk/Master/texmf-dist/doc/fonts/roboto/README	2019-03-05 22:16:45 UTC (rev 50241)
+++ trunk/Master/texmf-dist/doc/fonts/roboto/README	2019-03-05 22:32:46 UTC (rev 50242)
@@ -1,5 +1,5 @@
 This is the README for the roboto package, version
-2019-03-01.
+2019-03-03.
 
 This package provides LaTeX, pdfLaTeX, XeLaTeX and LuaLaTeX
 support for the Roboto, RobotoCondensed, RobotoMono and
@@ -89,6 +89,15 @@
 \robotomono select the Roboto, RobotoCondensed, RobotoSlab
 and RobotoMono font family, respectively.
 
+Similarly, commands \robotoLF, \robotoTLF, \robotoOsF
+and \robotoTOsF select figure styles proportional-lining,
+tabular-lining, proportional-oldstyle and tabular-oldstyle,
+respectively.
+
+Thanks to code contributed by Mario Haustein, commands
+\fontfamily{...} and \fontseries{...} work as expected with
+xelatex and lualatex.
+
 The original fonts are available at
 http://www.google.com/webfonts and are licensed under the
 Apache License, (version 2); the text may be found in

Modified: trunk/Master/texmf-dist/tex/latex/roboto/roboto-mono.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/roboto/roboto-mono.sty	2019-03-05 22:16:45 UTC (rev 50241)
+++ trunk/Master/texmf-dist/tex/latex/roboto/roboto-mono.sty	2019-03-05 22:32:46 UTC (rev 50242)
@@ -1,10 +1,10 @@
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{roboto-mono}
-    [2019/02/28 (Bob Tennent)  Supports RobotoMono fonts for all LaTeX engines.]
+    [2019/03/03 (Bob Tennent)  Supports RobotoMono fonts for all LaTeX engines.]
 
 \RequirePackage{ifxetex,ifluatex,xkeyval,textcomp}
 
-\newif\ifrobotomono at otf 
+\newif\ifrobotomono at otf
 \ifxetex
   \robotomono at otftrue
 \else\ifluatex
@@ -53,6 +53,8 @@
 
 \fi
 
+\def\robotomonofamily{RobotoMono-TLF}
+
 \ifrobotomono at otf
   \RequirePackage{fontspec}
 \else
@@ -67,7 +69,7 @@
         Scale     = \RobotoMono at scale ,
         Extension = .ttf }
     \setmonofont
-        [ 
+        [
           UprightFont    = *-\robotomono at regstyle ,
           ItalicFont     = *-\ifx\robotomono at regstyle\robotomono at regular Italic\else\robotomono at regstyle Italic\fi ,
           BoldFont       = *-\robotomono at boldstyle ,
@@ -93,14 +95,13 @@
           FontFace       = {b}{sl}{*-Bold},
           FontFace       = {b}{it}{*-BoldItalic} ]
         {RobotoMono}
-  % grab current family in case of subsequent change:
-  \let\robotomonofamily\ttdefault  
   \newfontfamily\robotomono
-        [ 
+        [
           UprightFont    = *-\robotomono at regstyle ,
           ItalicFont     = *-\ifx\robotomono at regstyle\robotomono at regular Italic\else\robotomono at regstyle Italic\fi ,
           BoldFont       = *-\robotomono at boldstyle ,
           BoldItalicFont = *-\robotomono at boldstyle Italic ,
+          NFSSFamily     = \robotomonofamily,
           FontFace       = {t}{n}{*-Thin},
           FontFace       = {t}{sc}{*-Thin},
           FontFace       = {t}{sl}{*-Thin},
@@ -123,7 +124,6 @@
           FontFace       = {b}{it}{*-BoldItalic} ]
         {RobotoMono}
 \else % type1
-  \def\robotomonofamily{RobotoMono-TLF}
   \newcommand*\robotomono{\fontfamily{\robotomonofamily}\selectfont}
   \def\ttdefault{\robotomonofamily}
 \fi

Modified: trunk/Master/texmf-dist/tex/latex/roboto/roboto.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/roboto/roboto.sty	2019-03-05 22:16:45 UTC (rev 50241)
+++ trunk/Master/texmf-dist/tex/latex/roboto/roboto.sty	2019-03-05 22:32:46 UTC (rev 50242)
@@ -1,6 +1,6 @@
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{roboto}
-    [2019/03/01 (Bob Tennent)  Supports Roboto fonts for all LaTeX engines.]
+    [2019/03/03 (Bob Tennent)  Supports Roboto fonts for all LaTeX engines.]
 
 \RequirePackage{ifxetex,ifluatex,xkeyval,textcomp}
 
@@ -76,6 +76,21 @@
 
 \fi
 
+\ifroboto at lining
+  \def\roboto at figurestyle{LF}
+\else
+  \def\roboto at figurestyle{OsF}
+\fi
+\ifroboto at tabular
+  \def\roboto at figurealign{T}
+\else
+  \def\roboto at figurealign{}
+\fi
+
+\edef\robotofamily{Roboto-\roboto at figurealign\roboto at figurestyle}
+\edef\robotocondensedfamily{RobotoCondensed-\roboto at figurealign\roboto at figurestyle}
+\edef\robotoslabfamily{RobotoSlab-LF}
+
 \ifroboto at otf
   \ifroboto at lining
     \def\roboto at figurestyle{Lining}
@@ -194,6 +209,7 @@
           ItalicFont     = *-\ifx\roboto at regstyle\roboto at regular Italic\else\roboto at regstyle Italic\fi,
           BoldFont       = *-\roboto at boldstyle ,
           BoldItalicFont = *-\roboto at boldstyle Italic ,
+          NFSSFamily     = \robotofamily,
           FontFace       = {t}{n}{*-Thin},
           FontFace       = {t}{sc}{*-Thin},
           FontFace       = {t}{sl}{*-Thin},
@@ -225,6 +241,7 @@
           ItalicFont     = *-\ifx\roboto at regstyle\roboto at regular Italic\else\roboto at regstyle Italic\fi,
           BoldFont       = *-Bold ,
           BoldItalicFont = *-BoldItalic ,
+          NFSSFamily     = \robotocondensedfamily,
           FontFace       = {l}{n}{*-Light},
           FontFace       = {l}{sc}{*-Light},
           FontFace       = {l}{sl}{*-Light},
@@ -241,6 +258,7 @@
   \newfontfamily\robotoslab
         [ UprightFont    = *-\roboto at regstyle ,
           BoldFont       = *-Bold ,
+          NFSSFamily     = \robotoslabfamily,
           FontFace       = {t}{n}{*-Thin},
           FontFace       = {t}{sc}{*-Thin},
           FontFace       = {t}{sl}{*-Thin},
@@ -255,11 +273,12 @@
           FontFace       = {b}{sl}{*-Bold} ]
         {RobotoSlab}
   \newfontfamily\robotoOsF
-        [ Numbers = {\roboto at figurealign,OldStyle},
+        [ Numbers = {Proportional,OldStyle},
           UprightFont    = *-\roboto at regstyle ,
           ItalicFont     = *-\ifx\roboto at regstyle\roboto at regular Italic\else\roboto at regstyle Italic\fi,
           BoldFont       = *-\roboto at boldstyle ,
           BoldItalicFont = *-\roboto at boldstyle Italic ,
+          NFSSFamily     = Roboto-OsF,
           FontFace       = {t}{n}{*-Thin},
           FontFace       = {t}{sc}{*-Thin},
           FontFace       = {t}{sl}{*-Thin},
@@ -286,11 +305,12 @@
           FontFace       = {k}{it}{*-BlackItalic} ]
         {Roboto}
   \newfontfamily\robotoLF
-        [ Numbers = {\roboto at figurealign,Lining},
+        [ Numbers = {Proportional,Lining},
           UprightFont    = *-\roboto at regstyle ,
           ItalicFont     = *-\ifx\roboto at regstyle\roboto at regular Italic\else\roboto at regstyle Italic\fi,
           BoldFont       = *-\roboto at boldstyle ,
           BoldItalicFont = *-\roboto at boldstyle Italic ,
+          NFSSFamily     = Roboto-LF,
           FontFace       = {t}{n}{*-Thin},
           FontFace       = {t}{sc}{*-Thin},
           FontFace       = {t}{sl}{*-Thin},
@@ -316,24 +336,92 @@
           FontFace       = {k}{sl}{*-Black},
           FontFace       = {k}{it}{*-BlackItalic} ]
         {Roboto}
-  \DeclareTextFontCommand{\oldstylenums}{\robotoOsF}
-  \DeclareTextFontCommand{\liningnums}{\robotoLF}
+  \newfontfamily\robotoTOsF
+        [ Numbers = {Monospaced,OldStyle},
+          UprightFont    = *-\roboto at regstyle ,
+          ItalicFont     = *-\ifx\roboto at regstyle\roboto at regular Italic\else\roboto at regstyle Italic\fi,
+          BoldFont       = *-\roboto at boldstyle ,
+          BoldItalicFont = *-\roboto at boldstyle Italic ,
+          NFSSFamily     = Roboto-TOsF,
+          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},
+          FontFace       = {k}{n}{*-Black},
+          FontFace       = {k}{sc}{*-Black},
+          FontFace       = {k}{sl}{*-Black},
+          FontFace       = {k}{it}{*-BlackItalic} ]
+        {Roboto}
+  \newfontfamily\robotoTLF
+        [ Numbers = {Monospaced,Lining},
+          UprightFont    = *-\roboto at regstyle ,
+          ItalicFont     = *-\ifx\roboto at regstyle\roboto at regular Italic\else\roboto at regstyle Italic\fi,
+          BoldFont       = *-\roboto at boldstyle ,
+          BoldItalicFont = *-\roboto at boldstyle Italic ,
+          NFSSFamily     = Roboto-TLF,
+          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},
+          FontFace       = {k}{n}{*-Black},
+          FontFace       = {k}{sc}{*-Black},
+          FontFace       = {k}{sl}{*-Black},
+          FontFace       = {k}{it}{*-BlackItalic} ]
+        {Roboto}
 
 \else % type1
-  \def\robotofamily{Roboto-\roboto at figurealign\roboto at figurestyle}
-  \def\robotocondensedfamily{RobotoCondensed-\roboto at figurealign\roboto at figurestyle}
-  \def\robotoslabfamily{RobotoSlab-LF}
   \newcommand*\roboto{\fontfamily{\robotofamily}\selectfont}
   \newcommand*\robotocondensed{\fontfamily{\robotocondensedfamily}\selectfont}
   \newcommand*\robotoslab{\fontfamily{\robotoslabfamily}\selectfont}
+  \newcommand*\robotoLF{\fontfamily{Roboto-LF}\selectfont}
+  \newcommand*\robotoTLF{\fontfamily{Roboto-TLF}\selectfont}
+  \newcommand*\robotoOsF{\fontfamily{Roboto-OsF}\selectfont}
+  \newcommand*\robotoTOsF{\fontfamily{Roboto-TOsF}\selectfont}
   \def\sfdefault{\robotofamily}
   \ifroboto at condensed\def\sfdefault{\robotocondensedfamily}\fi  
   \ifroboto at default\edef\familydefault{\sfdefault}\edef\seriesdefault{\mdseries at sf}\fi
   \ifroboto at slab\edef\rmdefault{\robotoslabfamily}\fi
 
-  \DeclareTextFontCommand{\oldstylenums}{\fontfamily{Roboto-\roboto at figurealign OsF}\selectfont}
-  \DeclareTextFontCommand{\liningnums}{\fontfamily{Roboto-\roboto at figurealign LF}\selectfont}
+\fi
 
+\ifroboto at tabular
+  \DeclareTextFontCommand{\oldstylenums}{\robotoTOsF}
+  \DeclareTextFontCommand{\liningnums}{\robotoTLF}
+\else
+  \DeclareTextFontCommand{\oldstylenums}{\robotoOsF}
+  \DeclareTextFontCommand{\liningnums}{\robotoLF}
 \fi
 
 \ifroboto at otf



More information about the tex-live-commits mailing list