From c83d372fcf897fdd6cda8a02c32295bed1bd5974 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Mon, 15 Feb 2016 22:12:15 +0000
Subject: fira (14feb16)

git-svn-id: svn://tug.org/texlive/trunk@39731 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/tex/latex/fira/FiraMono.sty | 23 ++++++++++++++---------
 1 file changed, 14 insertions(+), 9 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/fira/FiraMono.sty')

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:
-- 
cgit v1.2.3

