summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/fira/FiraMono.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/fira/FiraMono.sty')
-rw-r--r--Master/texmf-dist/tex/latex/fira/FiraMono.sty21
1 files changed, 12 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/latex/fira/FiraMono.sty b/Master/texmf-dist/tex/latex/fira/FiraMono.sty
index db1c25bf109..9f3f7aa8a32 100644
--- a/Master/texmf-dist/tex/latex/fira/FiraMono.sty
+++ b/Master/texmf-dist/tex/latex/fira/FiraMono.sty
@@ -1,6 +1,6 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{FiraMono}
- [2019/04/22 (Bob Tennent and autoinst) Style file for Fira Mono fonts.]
+ [2019/06/04 (Bob Tennent and autoinst) Style file for Fira Mono fonts.]
% nomap option suggested by Harlan Lieberman-Berg (hlieberm@akamai.com) 2016-02-11
@@ -74,19 +74,22 @@
\iffiramono@ligatures
\defaultfontfeatures{
Ligatures = TeX ,
+ HyphenChar=None,
Scale = \FiraMono@scale ,
Extension = .otf }
\else
\defaultfontfeatures{
Scale = \FiraMono@scale ,
+ HyphenChar=None,
Extension = .otf }
\fi
+ \def\firamono@regular{Regular}
\setmonofont
[ Numbers = {Monospaced,\firamono@otffigurestyle},
UprightFont = *-\firamono@regstyle ,
- ItalicFont = *-\firamono@regstyle ,
+ ItalicFont = *-\ifx\firamono@regstyle\firamono@regular Oblique\else\firamono@regstyle Oblique\fi ,
BoldFont = *-\firamono@boldstyle ,
- BoldItalicFont = *-\firamono@boldstyle ,
+ BoldItalicFont = *-\firamono@boldstyle Oblique,
]
{FiraMono}
% grab current family in case of subsequent change:
@@ -96,25 +99,25 @@
\newfontfamily\firamonooldstyle
[ Numbers = {Monospaced,OldStyle},
UprightFont = *-\firamono@regstyle ,
- ItalicFont = *-\firamono@regstyle ,
+ ItalicFont = *-\ifx\firamono@regstyle\firamono@regular Oblique\else\firamono@regstyle Oblique\fi ,
BoldFont = *-\firamono@boldstyle ,
- BoldItalicFont = *-\firamono@boldstyle ,
+ BoldItalicFont = *-\firamono@boldstyle Oblique,
]
{FiraMono}
\newfontfamily\firamonolining
[ Numbers = {Monospaced,Tabular},
UprightFont = *-\firamono@regstyle ,
- ItalicFont = *-\firamono@regstyle ,
+ ItalicFont = *-\ifx\firamono@regstyle\firamono@regular Oblique\else\firamono@regstyle Oblique\fi ,
BoldFont = *-\firamono@boldstyle ,
- BoldItalicFont = *-\firamono@boldstyle ,
+ BoldItalicFont = *-\firamono@boldstyle Oblique,
]
{FiraMono}
\newfontfamily\firamonomedium
[ Numbers = {Monospaced,\firamono@otffigurestyle},
UprightFont = *-Medium ,
- ItalicFont = *-Medium ,
+ ItalicFont = *-\ifx\firamono@regstyle\firamono@regular Oblique\else\firamono@regstyle Oblique\fi ,
BoldFont = *-\firamono@boldstyle ,
- BoldItalicFont = *-\firamono@boldstyle ,
+ BoldItalicFont = *-\firamono@boldstyle Oblique,
]
{FiraMono}