summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/fira
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-02-15 22:12:15 +0000
committerKarl Berry <karl@freefriends.org>2016-02-15 22:12:15 +0000
commitc83d372fcf897fdd6cda8a02c32295bed1bd5974 (patch)
treeceb6ccad6686f8e005f2ae1f336881f19458e099 /Master/texmf-dist/tex/latex/fira
parent02583fcfe69ff353b8f8eaf69cf340ed8edbb199 (diff)
fira (14feb16)
git-svn-id: svn://tug.org/texlive/trunk@39731 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/fira')
-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: