summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/latex/fira/FiraMono.sty23
1 files changed, 14 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/latex/fira/FiraMono.sty b/Master/texmf-dist/tex/latex/fira/FiraMono.sty
index 9b513358f28..5e84450d008 100644
--- a/Master/texmf-dist/tex/latex/fira/FiraMono.sty
+++ b/Master/texmf-dist/tex/latex/fira/FiraMono.sty
@@ -1,8 +1,8 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{FiraMono}
- [2016/02/12 (Bob Tennent and autoinst) Style file for Fira Mono fonts.]
+ [2016/02/13 (Bob Tennent and autoinst) Style file for Fira Mono fonts.]
-% nomap option patch from Harlan Lieberman-Berg (hlieberm@akamai.com) 2016-02-11
+% nomap option suggested by Harlan Lieberman-Berg (hlieberm@akamai.com) 2016-02-11
\RequirePackage{ifxetex,ifluatex,xkeyval,textcomp}
@@ -18,9 +18,9 @@
\newif\iffiramono@lining \firamono@liningfalse
\newif\iffiramono@medium \firamono@mediumfalse
+\newif\iffiramono@ligatures \firamono@ligaturestrue
\newcommand*{\FiraMono@scale}{1}
-\newcommand*{\FiraMono@mapping}{tex-text}
\RequirePackage{xkeyval}
\DeclareOptionX{scaled}{\renewcommand*{\FiraMono@scale}{#1}}
\DeclareOptionX{scale}{\renewcommand*{\FiraMono@scale}{#1}}
@@ -29,7 +29,7 @@
\DeclareOptionX{lf}{\firamono@liningtrue}
\DeclareOptionX{oldstyle}{\firamono@liningfalse}
\DeclareOptionX{osf}{\firamono@liningfalse}
-\DeclareOptionX{nomap}{\renewcommand*{\FiraMono@mapping}{}}
+\DeclareOptionX{nomap}{\firamono@ligaturesfalse}
\DeclareOptionX{medium}{\firamono@mediumtrue}
\DeclareOptionX{mb}{\firamono@mediumtrue}
@@ -71,17 +71,22 @@
\iffiramono@otf
\ifxetex\XeTeXtracingfonts=1\fi
- \defaultfontfeatures{
- Ligatures = TeX ,
- Scale = \FiraMono@scale ,
- Extension = .otf }
+ \iffiramono@ligatures
+ \defaultfontfeatures{
+ Ligatures = TeX ,
+ Scale = \FiraMono@scale ,
+ Extension = .otf }
+ \else
+ \defaultfontfeatures{
+ Scale = \FiraMono@scale ,
+ Extension = .otf }
+ \fi
\setmonofont
[ Numbers = {Monospaced,\firamono@figurestyle},
UprightFont = *-\firamono@regstyle ,
ItalicFont = *-\firamono@regstyle ,
BoldFont = *-\firamono@boldstyle ,
BoldItalicFont = *-\firamono@boldstyle ,
- Mapping = \FiraMono@mapping
]
{FiraMono}
% grab current family in case of subsequent change: