texlive[52449] Master/texmf-dist: fontspec (19oct19)

commits+karl at tug.org commits+karl at tug.org
Sat Oct 19 23:17:53 CEST 2019


Revision: 52449
          http://tug.org/svn/texlive?view=revision&revision=52449
Author:   karl
Date:     2019-10-19 23:17:52 +0200 (Sat, 19 Oct 2019)
Log Message:
-----------
fontspec (19oct19)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/fontspec/CHANGES.md
    trunk/Master/texmf-dist/doc/latex/fontspec/fontspec-code.pdf
    trunk/Master/texmf-dist/doc/latex/fontspec/fontspec.pdf
    trunk/Master/texmf-dist/source/latex/fontspec/fontspec-code-enc.dtx
    trunk/Master/texmf-dist/source/latex/fontspec/fontspec-code-feat-opentype.dtx
    trunk/Master/texmf-dist/source/latex/fontspec/fontspec-code-keyval.dtx
    trunk/Master/texmf-dist/source/latex/fontspec/fontspec-code-msg.dtx
    trunk/Master/texmf-dist/source/latex/fontspec/fontspec-code-scripts.dtx
    trunk/Master/texmf-dist/source/latex/fontspec/fontspec-code-user.dtx
    trunk/Master/texmf-dist/source/latex/fontspec/fontspec-doc-featset.tex
    trunk/Master/texmf-dist/source/latex/fontspec/fontspec-doc-fontsel.tex
    trunk/Master/texmf-dist/source/latex/fontspec/fontspec-doc-opentype.tex
    trunk/Master/texmf-dist/source/latex/fontspec/fontspec.dtx
    trunk/Master/texmf-dist/tex/latex/fontspec/fontspec-luatex.sty
    trunk/Master/texmf-dist/tex/latex/fontspec/fontspec-xetex.sty
    trunk/Master/texmf-dist/tex/latex/fontspec/fontspec.lua
    trunk/Master/texmf-dist/tex/latex/fontspec/fontspec.sty

Modified: trunk/Master/texmf-dist/doc/latex/fontspec/CHANGES.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/fontspec/CHANGES.md	2019-10-19 21:17:35 UTC (rev 52448)
+++ trunk/Master/texmf-dist/doc/latex/fontspec/CHANGES.md	2019-10-19 21:17:52 UTC (rev 52449)
@@ -1,6 +1,23 @@
 Change history
 ==============
 
+## v2.7d (2019/10/19)
+
+    * Allow the user to manually change `\rmdefault`, `\sfdefault`, `\ttdefault`
+      if desired. Note this could cause problems if the `fontspec` encoding does not
+      match the encoding of the specified families.
+    * Additional optional argument for `\EncodingCommand`.
+    * Suppress spurious warnings for `HyphenChar` feature in XeLaTeX.
+    * Add `Ligatures=TeXOff` even though it's not a real OpenType feature.
+      (Functionally equivalent to `Ligatures=TeXReset`.)
+    * New scripts definitions to match OpenType 1.8.3 (thanks Werner!).
+    * Documentation changes for `Numbers=Arabic`, `HypenChar=None` for `\ttfamily`.
+    * Documentation fixes (thanks `muzimuzhi`!).
+    * Prepare for `FakeBold` being available in `luaotfload` (thanks Khaled!).
+    * Bug fix for doubled + symbol when setting `tlig` feature in LuaTeX.
+    * Bug fix for Harfbuzz use. (Support still very minimal I'm afraid.)
+
+
 ## v2.7c (2019/03/15)
 
     * Two optimisations reduce time for font definitions with a large number of

Modified: trunk/Master/texmf-dist/doc/latex/fontspec/fontspec-code.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/fontspec/fontspec.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/latex/fontspec/fontspec-code-enc.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/fontspec/fontspec-code-enc.dtx	2019-10-19 21:17:35 UTC (rev 52448)
+++ trunk/Master/texmf-dist/source/latex/fontspec/fontspec-code-enc.dtx	2019-10-19 21:17:52 UTC (rev 52449)
@@ -8,28 +8,14 @@
 %    \end{macrocode}
 % \fi
 %
-% To be removed after the 2017 release of LaTeX2e:
-%    \begin{macrocode}
-\providecommand\UnicodeFontFile[2]{"[#1]:#2"}
-\providecommand\UnicodeFontName[2]{"#1:#2"}
-%<XE>\providecommand\UnicodeFontTeXLigatures{mapping=tex-text;}
-%<LU>\providecommand\UnicodeFontTeXLigatures{+tlig;}
-%    \end{macrocode}
 %
-%    \begin{macrocode}
-\providecommand\add at unicode@accent[2]{#2\char#1\relax}
-\providecommand\DeclareUnicodeAccent[3]{%
-  \DeclareTextCommand{#1}{#2}{\add at unicode@accent{#3}}%
-}
-%    \end{macrocode}
-%
 % \begin{macro}{\EncodingCommand}
 %    \begin{macrocode}
-\DeclareDocumentCommand \EncodingCommand {mO{}m}
+\DeclareDocumentCommand \EncodingCommand { m O{} O{} m }
   {
     \bool_if:NF \l_@@_defining_encoding_bool
       { \@@_error:nn {only-inside-encdef} \EncodingCommand }
-    \DeclareTextCommand{#1}{\UnicodeEncodingName}[#2]{#3}
+    \DeclareTextCommand{#1}{\UnicodeEncodingName}[#2][#3]{#4}
   }
 %    \end{macrocode}
 % \end{macro}

Modified: trunk/Master/texmf-dist/source/latex/fontspec/fontspec-code-feat-opentype.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/fontspec/fontspec-code-feat-opentype.dtx	2019-10-19 21:17:35 UTC (rev 52448)
+++ trunk/Master/texmf-dist/source/latex/fontspec/fontspec-code-feat-opentype.dtx	2019-10-19 21:17:52 UTC (rev 52449)
@@ -44,12 +44,11 @@
 \keys_define:nn {fontspec-opentype}
   {
     Ligatures / TeX .code:n = { \tl_set:Nn \l_@@_mapping_tl {tex-text} },
-    Ligatures / TeX .groups:n = {opentype},
+    Ligatures / TeXOff .code:n = { \tl_clear:N \l_@@_mapping_tl },
     Ligatures / TeXReset .code:n = { \tl_clear:N \l_@@_mapping_tl },
-    Ligatures / TeXReset .groups:n = {opentype},
   }
 %</XE>
-%<LU>\@@_define_opentype_onreset:nnnnn {Ligatures} {TeX} {} { +tlig } {}
+%<LU>\@@_define_opentype_onoffreset:nnnnn {Ligatures} {TeX} {} {tlig} {}
 %    \end{macrocode}
 %
 % \subsection{Letters}

Modified: trunk/Master/texmf-dist/source/latex/fontspec/fontspec-code-keyval.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/fontspec/fontspec-code-keyval.dtx	2019-10-19 21:17:35 UTC (rev 52448)
+++ trunk/Master/texmf-dist/source/latex/fontspec/fontspec-code-keyval.dtx	2019-10-19 21:17:52 UTC (rev 52449)
@@ -122,7 +122,7 @@
     Renderer .choices:nn =
       {Full,Node,Basic,Base,Harfbuzz,OpenType,AAT,Graphite}
       {
-        \int_compare:nTF {\l_keys_choice_int >= 5} { \bool_set_true:N \l_@@_harfbuzz_bool }
+        \int_compare:nT {\l_keys_choice_int >= 5} { \bool_set_true:N \l_@@_harfbuzz_bool }
 
         \tl_set:Nx \l_@@_mode_tl
           {
@@ -625,7 +625,7 @@
           { \@@_primitive_font_set_hyphenchar:Nn \font {-1} }
       }
       {
-        \@@_warning:nx {only-xetex-feature} {HyphenChar}
+%<LU>        \@@_warning:nx {only-xetex-feature} {HyphenChar}
 
         \tl_if_single:nTF {#1}
           { \tl_set:Nn \l_@@_hyphenchar_tl {`#1} }
@@ -783,7 +783,6 @@
       },
     FakeStretch .default:n = {1.2}
   }
-%<*XE>
 \keys_define:nn {fontspec}
   {
     FakeBold .code:n =
@@ -792,13 +791,6 @@
       },
     FakeBold .default:n = {1.5}
   }
-%</XE>
-%<*LU>
-\keys_define:nn {fontspec}
-  {
-    FakeBold .code:n = { \@@_warning:n {fakebold-only-xetex} }
-  }
-%</LU>
 %    \end{macrocode}
 % These are to be given to a shape that has no real bold/italic
 % to signal that \pkg{fontspec} should automatically create `fake' shapes.

Modified: trunk/Master/texmf-dist/source/latex/fontspec/fontspec-code-msg.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/fontspec/fontspec-code-msg.dtx	2019-10-19 21:17:35 UTC (rev 52448)
+++ trunk/Master/texmf-dist/source/latex/fontspec/fontspec-code-msg.dtx	2019-10-19 21:17:52 UTC (rev 52449)
@@ -192,11 +192,6 @@
  {
   The "cm-default" package option is obsolete.
  }
-\@@_msg_new:nnn {fontspec} {fakebold-only-xetex}
- {
-  The "FakeBold" and "AutoFakeBold" options are only available with XeLaTeX.\\
-  Option ignored.
- }
 \@@_msg_new:nnn {fontspec} {font-index-needs-ttc}
  {
   The "FontIndex" feature is only supported by TTC (TrueType Collection) fonts.\\

Modified: trunk/Master/texmf-dist/source/latex/fontspec/fontspec-code-scripts.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/fontspec/fontspec-code-scripts.dtx	2019-10-19 21:17:35 UTC (rev 52448)
+++ trunk/Master/texmf-dist/source/latex/fontspec/fontspec-code-scripts.dtx	2019-10-19 21:17:52 UTC (rev 52449)
@@ -41,6 +41,7 @@
 \newfontscript{CustomDefault}{latn,DFLT}
 \newfontscript{Deseret}{dsrt}
 \newfontscript{Devanagari}{dev2,deva}
+\newfontscript{Dogra}{dogr}
 \newfontscript{Duployan}{dupl}
 \newfontscript{Egyptian~Hieroglyphs}{egyp}
 \newfontscript{Elbasan}{elba}
@@ -51,9 +52,11 @@
 \newfontscript{Grantha}{gran}
 \newfontscript{Greek}{grek}
 \newfontscript{Gujarati}{gjr2,gujr}
+\newfontscript{Gunjala~Gondi}{gong}
 \newfontscript{Gurmukhi}{gur2,guru}
 \newfontscript{Hangul~Jamo}{jamo}
 \newfontscript{Hangul}{hang}
+\newfontscript{Hanifi~Rohingya}{rohg}
 \newfontscript{Hanunoo}{hano}
 \newfontscript{Hatran}{hatr}
 \newfontscript{Hebrew}{hebr}
@@ -79,11 +82,14 @@
 \newfontscript{Lycian}{lyci}
 \newfontscript{Lydian}{lydi}
 \newfontscript{Mahajani}{mahj}
+\newfontscript{Makasar}{maka}
 \newfontscript{Malayalam}{mlm2,mlym}
 \newfontscript{Mandaic}{mand}
 \newfontscript{Manichaean}{mani}
 \newfontscript{Marchen}{marc}
+\newfontscript{Masaram Gondi}{gonm}
 \newfontscript{Math}{math}
+\newfontscript{Medefaidrin}{medf}
 \newfontscript{Meitei~Mayek}{mtei}
 \newfontscript{Mende~Kikakui}{mend}
 \newfontscript{Meroitic~Cursive}{merc}
@@ -98,6 +104,7 @@
 \newfontscript{N'Ko}{nko~}
 \newfontscript{Nabataean}{nbat}
 \newfontscript{Newa}{newa}
+\newfontscript{Nushu}{nshu}
 \newfontscript{Odia}{ory2,orya}
 \newfontscript{Ogham}{ogam}
 \newfontscript{Ol~Chiki}{olck}
@@ -106,6 +113,7 @@
 \newfontscript{Old~North~Arabian}{narb}
 \newfontscript{Old~Permic}{perm}
 \newfontscript{Old~Persian~Cuneiform}{xpeo}
+\newfontscript{Old~Sogdian}{sogo}
 \newfontscript{Old~South~Arabian}{sarb}
 \newfontscript{Old~Turkic}{orkh}
 \newfontscript{Osage}{osge}
@@ -125,6 +133,7 @@
 \newfontscript{Siddham}{sidd}
 \newfontscript{Sign~Writing}{sgnw}
 \newfontscript{Sinhala}{sinh}
+\newfontscript{Sogdian}{sogd}
 \newfontscript{Sora~Sompeng}{sora}
 \newfontscript{Sumero-Akkadian~Cuneiform}{xsux}
 \newfontscript{Sundanese}{sund}
@@ -149,6 +158,7 @@
 \newfontscript{Vai}{vai~}
 \newfontscript{Warang~Citi}{wara}
 \newfontscript{Yi}{yi~~}
+\newfontscript{Zanabazar~Square}{zanb}
 %    \end{macrocode}
 % For convenience or backwards compatibility:
 %    \begin{macrocode}

Modified: trunk/Master/texmf-dist/source/latex/fontspec/fontspec-code-user.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/fontspec/fontspec-code-user.dtx	2019-10-19 21:17:35 UTC (rev 52448)
+++ trunk/Master/texmf-dist/source/latex/fontspec/fontspec-code-user.dtx	2019-10-19 21:17:52 UTC (rev 52449)
@@ -44,7 +44,7 @@
         \exp_not:n { \DeclareRobustCommand \rmfamily }
           {
             \exp_not:N \fontencoding { \g_@@_nfss_enc_tl }
-            \exp_not:N \fontfamily { \l_@@_rmfamily_family_tl }
+            \exp_not:N \fontfamily { \exp_not:N \rmdefault }
             \exp_not:N \selectfont
           }
       }
@@ -68,7 +68,7 @@
         \exp_not:n { \DeclareRobustCommand \sffamily }
           {
             \exp_not:N \fontencoding { \g_@@_nfss_enc_tl }
-            \exp_not:N \fontfamily { \l_@@_sffamily_family_tl }
+            \exp_not:N \fontfamily { \exp_not:N \sfdefault }
             \exp_not:N \selectfont
           }
       }
@@ -92,7 +92,7 @@
         \exp_not:n { \DeclareRobustCommand \ttfamily }
           {
             \exp_not:N \fontencoding { \g_@@_nfss_enc_tl }
-            \exp_not:N \fontfamily { \l_@@_ttfamily_family_tl }
+            \exp_not:N \fontfamily { \exp_not:N \ttdefault }
             \exp_not:N \selectfont
           }
       }

Modified: trunk/Master/texmf-dist/source/latex/fontspec/fontspec-doc-featset.tex
===================================================================
--- trunk/Master/texmf-dist/source/latex/fontspec/fontspec-doc-featset.tex	2019-10-19 21:17:35 UTC (rev 52448)
+++ trunk/Master/texmf-dist/source/latex/fontspec/fontspec-doc-featset.tex	2019-10-19 21:17:52 UTC (rev 52449)
@@ -485,12 +485,14 @@
 \feat{HyphenChar} takes three types of input, which are chosen according to some
 simple rules. If the input is the string \opt{None}, then hyphenation is
 suppressed for this font.
+
+As part of \texttt{fontspec.cfg}, the default monospaced family (e.g., \verb|\ttfamily|)
+is set up to automatically set \feat{HyphenChar} \texttt{=} \opt{None}.
+
 If the input is a single character, then this character is used.
 Finally, if the input is longer than a single character
 it must be the UTF-8 slot number of the hyphen character you desire.
 
-This package redefines \LaTeX's \cmd\-\ macro such that it adjusts along with the above changes.
-
 \begin{Xexample}{hyphchar}{Explicitly choosing the hyphenation character.}
  \def\text{\fbox{\parbox{1.55cm}{%
    EXAMPLE HYPHENATION%
@@ -583,9 +585,7 @@
 If both of the \feat{AutoFake...} features are used, then the bold italic
 font will also be faked.
 
-The \feat{FakeBold} and \feat{AutoFakeBold} features are only available with the \XeTeX\ engine and will be ignored in \LuaTeX.
 
-
 \subsection{Letter spacing}
 Letter spacing, or tracking, is the term given to adding (or subtracting) a small amount of horizontal space in between adjacent characters. It is specified with the \feat{LetterSpace}, which takes a numeric argument,
 shown in \exref{tracking}.

Modified: trunk/Master/texmf-dist/source/latex/fontspec/fontspec-doc-fontsel.tex
===================================================================
--- trunk/Master/texmf-dist/source/latex/fontspec/fontspec-doc-fontsel.tex	2019-10-19 21:17:35 UTC (rev 52448)
+++ trunk/Master/texmf-dist/source/latex/fontspec/fontspec-doc-fontsel.tex	2019-10-19 21:17:52 UTC (rev 52449)
@@ -35,7 +35,7 @@
 \cmdbox{%
   \CMD{\string\newfontfamily}\meta{cmd}\marg{font}\oarg{font features}\\
   \CMD{\string\setfontfamily}{\color[gray]{0.5}\meta{cmd}\marg{font}\oarg{font features}}\\
-  \CMD{\string\renewfontfamily}{\color[gray]{0.5}\meta{cmd}\marg{font}\oarg{font features}}
+  \CMD{\string\renewfontfamily}{\color[gray]{0.5}\meta{cmd}\marg{font}\oarg{font features}}\\
   \CMD{\string\providefontfamily}{\color[gray]{0.5}\meta{cmd}\marg{font}\oarg{font features}}
 }
 
@@ -135,7 +135,7 @@
 without having to explicitly define the location of the font file on disk.
 
 Fonts selected by filename must include bold and italic variants explicitly,
-unless a \texttt{.fontspec} file is supplied for the font family (see section~\ref{sec:fontspecfile}).
+unless a \texttt{.fontspec} file is supplied for the font family (see \ref{sec:fontspecfile}).
 We'll give some first examples specifying everything explicitly:
 \begin{Verbatim}
   \setmainfont{texgyrepagella-regular.otf}[
@@ -300,8 +300,8 @@
   \newcommand\textnote[1]{{\notefont #1}}
   \textnote{This is a note.}
 \end{Verbatim}
-Note that the double braces are intentional; the inner pair are used to
-to delimit the scope of the font change.
+Note that the double braces are intentional; the inner pair is used to
+delimit the scope of the font change.
 
 \begin{Lexample}{nff}{Defining new font families.}
   \newfontfamily\notefont{Kurier}
@@ -431,7 +431,7 @@
   \fontfamily{ppl}\selectfont
 \end{Verbatim}
 In \pkg{fontspec}, the family names are auto-generated based on the fontname of the font; for example, writing |\fontspec{Times New Roman}| for the first time would generate an internal font family name of `\texttt{TimesNewRoman(1)}'.
-Please note that should not rely on the name that is generated.
+Please note that you should not rely on the name that is generated.
 
 In certain cases it is desirable to be able to choose this internal font family name so it can be re-used elsewhere for interacting with other packages that use the \LaTeX's font selection interface; an example might be
 \begin{Verbatim}
@@ -528,7 +528,7 @@
 problem.\note{Speaking of \pkg{euler}, if you want to use its
 \texttt{[mathbf]} option, it won't work, and you'll need to put this after
 \pkg{fontspec} is loaded instead:
-\ttfamily\cmd\AtBeginDocument\char`\{\cmd\DeclareMathAlphabet\cmd\mathbf\char`\{U\char`\}\char`\{eur\char`\}\char`\{b\char`\}\char`\{n\char`\}})
+\ttfamily\cmd\AtBeginDocument\char`\{\cmd\DeclareMathAlphabet\cmd\mathbf\char`\{U\char`\}\char`\{eur\char`\}\char`\{b\char`\}\char`\{n\char`\}\char`\}})
 
 Note that \pkg{fontspec} will not change the font for general mathematics;
 only the upright and bold shapes will be affected.

Modified: trunk/Master/texmf-dist/source/latex/fontspec/fontspec-doc-opentype.tex
===================================================================
--- trunk/Master/texmf-dist/source/latex/fontspec/fontspec-doc-opentype.tex	2019-10-19 21:17:35 UTC (rev 52448)
+++ trunk/Master/texmf-dist/source/latex/fontspec/fontspec-doc-opentype.tex	2019-10-19 21:17:52 UTC (rev 52449)
@@ -1116,7 +1116,7 @@
    \fontspec{LinLibertine_R.otf}
    \test{Ligatures=Historic}{strict}
    \test{Ligatures=Rare}{wurtzite}
-   \test{Ligatures=NoCommon}{firefly}
+   \test{Ligatures=CommonOff}{firefly}
 \end{Lexample}
 
 
@@ -1176,6 +1176,8 @@
 based on the current \opt{Language} setting (see \vref{sec:ot}).
 This option is based on a \LuaTeX\ feature of the \pkg{luaotfload} package,
 not an OpenType feature. (Thus, this feature is unavailable in \XeTeX.)
+This feature should be considered deprecated; while there are no plans to remove it from this package,
+if its support is dropped from the font loader it could disappear from \pkg{fontspec} with little notice.
 
 
 \subsubsection{Ornament --- \texttt{ornm}}

Modified: trunk/Master/texmf-dist/source/latex/fontspec/fontspec.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/fontspec/fontspec.dtx	2019-10-19 21:17:35 UTC (rev 52448)
+++ trunk/Master/texmf-dist/source/latex/fontspec/fontspec.dtx	2019-10-19 21:17:52 UTC (rev 52449)
@@ -71,7 +71,7 @@
 \ProvidesExplFile{fontspec.dtx}
 %</dtx>
 %<*fontspec>
-  {2019/03/15}{2.7c}{Font selection for XeLaTeX and LuaLaTeX}
+  {2019/10/19}{2.7d}{Font selection for XeLaTeX and LuaLaTeX}
 %</fontspec>
 %    \end{macrocode}
 %
@@ -90,8 +90,8 @@
 %<lua>local fontspec    = fontspec
 %<lua>fontspec.module   = {
 %<lua>    name          = "fontspec",
-%<lua>    version       = "2.7c",
-%<lua>    date          = "2019/03/15",
+%<lua>    version       = "2.7d",
+%<lua>    date          = "2019/10/19",
 %<lua>    description   = "Font selection for XeLaTeX and LuaLaTeX",
 %<lua>    author        = "Khaled Hosny, Philipp Gesang, Will Robertson",
 %<lua>    copyright     = "Khaled Hosny, Philipp Gesang, Will Robertson",

Modified: trunk/Master/texmf-dist/tex/latex/fontspec/fontspec-luatex.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/fontspec/fontspec-luatex.sty	2019-10-19 21:17:35 UTC (rev 52448)
+++ trunk/Master/texmf-dist/tex/latex/fontspec/fontspec-luatex.sty	2019-10-19 21:17:52 UTC (rev 52449)
@@ -41,7 +41,7 @@
 
 \RequirePackage{xparse}
 \ProvidesExplPackage{fontspec-luatex}%
-  {2019/03/15}{2.7c}{Font selection for XeLaTeX and LuaLaTeX}
+  {2019/10/19}{2.7d}{Font selection for XeLaTeX and LuaLaTeX}
 
 %%^^A%%  fontspec-code-load.dtx -- part of FONTSPEC <wspr.io/fontspec>
 %%^^A%%  fontspec-code-vars.dtx -- part of FONTSPEC <wspr.io/fontspec>
@@ -371,11 +371,6 @@
  {
   The "cm-default" package option is obsolete.
  }
-\__fontspec_msg_new:nnn {fontspec} {fakebold-only-xetex}
- {
-  The "FakeBold" and "AutoFakeBold" options are only available with XeLaTeX.\\
-  Option ignored.
- }
 \__fontspec_msg_new:nnn {fontspec} {font-index-needs-ttc}
  {
   The "FontIndex" feature is only supported by TTC (TrueType Collection) fonts.\\
@@ -746,7 +741,7 @@
         \exp_not:n { \DeclareRobustCommand \rmfamily }
           {
             \exp_not:N \fontencoding { \g__fontspec_nfss_enc_tl }
-            \exp_not:N \fontfamily { \l__fontspec_rmfamily_family_tl }
+            \exp_not:N \fontfamily { \exp_not:N \rmdefault }
             \exp_not:N \selectfont
           }
       }
@@ -764,7 +759,7 @@
         \exp_not:n { \DeclareRobustCommand \sffamily }
           {
             \exp_not:N \fontencoding { \g__fontspec_nfss_enc_tl }
-            \exp_not:N \fontfamily { \l__fontspec_sffamily_family_tl }
+            \exp_not:N \fontfamily { \exp_not:N \sfdefault }
             \exp_not:N \selectfont
           }
       }
@@ -782,7 +777,7 @@
         \exp_not:n { \DeclareRobustCommand \ttfamily }
           {
             \exp_not:N \fontencoding { \g__fontspec_nfss_enc_tl }
-            \exp_not:N \fontfamily { \l__fontspec_ttfamily_family_tl }
+            \exp_not:N \fontfamily { \exp_not:N \ttdefault }
             \exp_not:N \selectfont
           }
       }
@@ -2126,7 +2121,7 @@
     Renderer .choices:nn =
       {Full,Node,Basic,Base,Harfbuzz,OpenType,AAT,Graphite}
       {
-        \int_compare:nTF {\l_keys_choice_int >= 5} { \bool_set_true:N \l__fontspec_harfbuzz_bool }
+        \int_compare:nT {\l_keys_choice_int >= 5} { \bool_set_true:N \l__fontspec_harfbuzz_bool }
 
         \tl_set:Nx \l__fontspec_mode_tl
           {
@@ -2541,7 +2536,11 @@
   }
 \keys_define:nn {fontspec}
   {
-    FakeBold .code:n = { \__fontspec_warning:n {fakebold-only-xetex} }
+    FakeBold .code:n =
+      {
+        \__fontspec_update_featstr:n {embolden=#1}
+      },
+    FakeBold .default:n = {1.5}
   }
 \keys_define:nn {fontspec}
   {
@@ -2615,7 +2614,7 @@
 \__fontspec_define_opentype_onoffreset:nnnnn {Ligatures} {Discretionary} {dlig} {dlig} {}
 \__fontspec_define_opentype_onoffreset:nnnnn {Ligatures} {Contextual}    {clig} {clig} {}
 \__fontspec_define_opentype_onoffreset:nnnnn {Ligatures} {Historic}      {hlig} {hlig} {}
-\__fontspec_define_opentype_onreset:nnnnn {Ligatures} {TeX} {} { +tlig } {}
+\__fontspec_define_opentype_onoffreset:nnnnn {Ligatures} {TeX} {} {tlig} {}
 \__fontspec_define_opentype_feature_group:n {Letters}
 \__fontspec_define_opentype_feature:nnnnn   {Letters} {ResetAll} {} {}
   {
@@ -2998,6 +2997,7 @@
 \newfontscript{CustomDefault}{latn,DFLT}
 \newfontscript{Deseret}{dsrt}
 \newfontscript{Devanagari}{dev2,deva}
+\newfontscript{Dogra}{dogr}
 \newfontscript{Duployan}{dupl}
 \newfontscript{Egyptian~Hieroglyphs}{egyp}
 \newfontscript{Elbasan}{elba}
@@ -3008,9 +3008,11 @@
 \newfontscript{Grantha}{gran}
 \newfontscript{Greek}{grek}
 \newfontscript{Gujarati}{gjr2,gujr}
+\newfontscript{Gunjala~Gondi}{gong}
 \newfontscript{Gurmukhi}{gur2,guru}
 \newfontscript{Hangul~Jamo}{jamo}
 \newfontscript{Hangul}{hang}
+\newfontscript{Hanifi~Rohingya}{rohg}
 \newfontscript{Hanunoo}{hano}
 \newfontscript{Hatran}{hatr}
 \newfontscript{Hebrew}{hebr}
@@ -3036,11 +3038,14 @@
 \newfontscript{Lycian}{lyci}
 \newfontscript{Lydian}{lydi}
 \newfontscript{Mahajani}{mahj}
+\newfontscript{Makasar}{maka}
 \newfontscript{Malayalam}{mlm2,mlym}
 \newfontscript{Mandaic}{mand}
 \newfontscript{Manichaean}{mani}
 \newfontscript{Marchen}{marc}
+\newfontscript{Masaram Gondi}{gonm}
 \newfontscript{Math}{math}
+\newfontscript{Medefaidrin}{medf}
 \newfontscript{Meitei~Mayek}{mtei}
 \newfontscript{Mende~Kikakui}{mend}
 \newfontscript{Meroitic~Cursive}{merc}
@@ -3055,6 +3060,7 @@
 \newfontscript{N'Ko}{nko~}
 \newfontscript{Nabataean}{nbat}
 \newfontscript{Newa}{newa}
+\newfontscript{Nushu}{nshu}
 \newfontscript{Odia}{ory2,orya}
 \newfontscript{Ogham}{ogam}
 \newfontscript{Ol~Chiki}{olck}
@@ -3063,6 +3069,7 @@
 \newfontscript{Old~North~Arabian}{narb}
 \newfontscript{Old~Permic}{perm}
 \newfontscript{Old~Persian~Cuneiform}{xpeo}
+\newfontscript{Old~Sogdian}{sogo}
 \newfontscript{Old~South~Arabian}{sarb}
 \newfontscript{Old~Turkic}{orkh}
 \newfontscript{Osage}{osge}
@@ -3082,6 +3089,7 @@
 \newfontscript{Siddham}{sidd}
 \newfontscript{Sign~Writing}{sgnw}
 \newfontscript{Sinhala}{sinh}
+\newfontscript{Sogdian}{sogd}
 \newfontscript{Sora~Sompeng}{sora}
 \newfontscript{Sumero-Akkadian~Cuneiform}{xsux}
 \newfontscript{Sundanese}{sund}
@@ -3106,6 +3114,7 @@
 \newfontscript{Vai}{vai~}
 \newfontscript{Warang~Citi}{wara}
 \newfontscript{Yi}{yi~~}
+\newfontscript{Zanabazar~Square}{zanb}
 \newfontscript{CJK}{hani}
 \newfontscript{Kana}{kana}
 \newfontscript{Maths}{math}
@@ -3503,18 +3512,11 @@
 
 %%^^A%%  fontspec-code-enc.dtx -- part of FONTSPEC <wspr.io/fontspec>
 
-\providecommand\UnicodeFontFile[2]{"[#1]:#2"}
-\providecommand\UnicodeFontName[2]{"#1:#2"}
-\providecommand\UnicodeFontTeXLigatures{+tlig;}
-\providecommand\add at unicode@accent[2]{#2\char#1\relax}
-\providecommand\DeclareUnicodeAccent[3]{%
-  \DeclareTextCommand{#1}{#2}{\add at unicode@accent{#3}}%
-}
-\DeclareDocumentCommand \EncodingCommand {mO{}m}
+\DeclareDocumentCommand \EncodingCommand { m O{} O{} m }
   {
     \bool_if:NF \l__fontspec_defining_encoding_bool
       { \__fontspec_error:nn {only-inside-encdef} \EncodingCommand }
-    \DeclareTextCommand{#1}{\UnicodeEncodingName}[#2]{#3}
+    \DeclareTextCommand{#1}{\UnicodeEncodingName}[#2][#3]{#4}
   }
 \DeclareDocumentCommand \EncodingAccent {mm}
   {

Modified: trunk/Master/texmf-dist/tex/latex/fontspec/fontspec-xetex.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/fontspec/fontspec-xetex.sty	2019-10-19 21:17:35 UTC (rev 52448)
+++ trunk/Master/texmf-dist/tex/latex/fontspec/fontspec-xetex.sty	2019-10-19 21:17:52 UTC (rev 52449)
@@ -41,7 +41,7 @@
 
 \RequirePackage{xparse}
 \ProvidesExplPackage{fontspec-xetex}%
-  {2019/03/15}{2.7c}{Font selection for XeLaTeX and LuaLaTeX}
+  {2019/10/19}{2.7d}{Font selection for XeLaTeX and LuaLaTeX}
 
 %%^^A%%  fontspec-code-load.dtx -- part of FONTSPEC <wspr.io/fontspec>
 %%^^A%%  fontspec-code-vars.dtx -- part of FONTSPEC <wspr.io/fontspec>
@@ -371,11 +371,6 @@
  {
   The "cm-default" package option is obsolete.
  }
-\__fontspec_msg_new:nnn {fontspec} {fakebold-only-xetex}
- {
-  The "FakeBold" and "AutoFakeBold" options are only available with XeLaTeX.\\
-  Option ignored.
- }
 \__fontspec_msg_new:nnn {fontspec} {font-index-needs-ttc}
  {
   The "FontIndex" feature is only supported by TTC (TrueType Collection) fonts.\\
@@ -739,7 +734,7 @@
         \exp_not:n { \DeclareRobustCommand \rmfamily }
           {
             \exp_not:N \fontencoding { \g__fontspec_nfss_enc_tl }
-            \exp_not:N \fontfamily { \l__fontspec_rmfamily_family_tl }
+            \exp_not:N \fontfamily { \exp_not:N \rmdefault }
             \exp_not:N \selectfont
           }
       }
@@ -757,7 +752,7 @@
         \exp_not:n { \DeclareRobustCommand \sffamily }
           {
             \exp_not:N \fontencoding { \g__fontspec_nfss_enc_tl }
-            \exp_not:N \fontfamily { \l__fontspec_sffamily_family_tl }
+            \exp_not:N \fontfamily { \exp_not:N \sfdefault }
             \exp_not:N \selectfont
           }
       }
@@ -775,7 +770,7 @@
         \exp_not:n { \DeclareRobustCommand \ttfamily }
           {
             \exp_not:N \fontencoding { \g__fontspec_nfss_enc_tl }
-            \exp_not:N \fontfamily { \l__fontspec_ttfamily_family_tl }
+            \exp_not:N \fontfamily { \exp_not:N \ttdefault }
             \exp_not:N \selectfont
           }
       }
@@ -2555,7 +2550,6 @@
           { \__fontspec_primitive_font_set_hyphenchar:Nn \font {-1} }
       }
       {
-        \__fontspec_warning:nx {only-xetex-feature} {HyphenChar}
 
         \tl_if_single:nTF {#1}
           { \tl_set:Nn \l__fontspec_hyphenchar_tl {`#1} }
@@ -2749,9 +2743,8 @@
 \keys_define:nn {fontspec-opentype}
   {
     Ligatures / TeX .code:n = { \tl_set:Nn \l__fontspec_mapping_tl {tex-text} },
-    Ligatures / TeX .groups:n = {opentype},
+    Ligatures / TeXOff .code:n = { \tl_clear:N \l__fontspec_mapping_tl },
     Ligatures / TeXReset .code:n = { \tl_clear:N \l__fontspec_mapping_tl },
-    Ligatures / TeXReset .groups:n = {opentype},
   }
 \__fontspec_define_opentype_feature_group:n {Letters}
 \__fontspec_define_opentype_feature:nnnnn   {Letters} {ResetAll} {} {}
@@ -3129,6 +3122,7 @@
 \newfontscript{CustomDefault}{latn,DFLT}
 \newfontscript{Deseret}{dsrt}
 \newfontscript{Devanagari}{dev2,deva}
+\newfontscript{Dogra}{dogr}
 \newfontscript{Duployan}{dupl}
 \newfontscript{Egyptian~Hieroglyphs}{egyp}
 \newfontscript{Elbasan}{elba}
@@ -3139,9 +3133,11 @@
 \newfontscript{Grantha}{gran}
 \newfontscript{Greek}{grek}
 \newfontscript{Gujarati}{gjr2,gujr}
+\newfontscript{Gunjala~Gondi}{gong}
 \newfontscript{Gurmukhi}{gur2,guru}
 \newfontscript{Hangul~Jamo}{jamo}
 \newfontscript{Hangul}{hang}
+\newfontscript{Hanifi~Rohingya}{rohg}
 \newfontscript{Hanunoo}{hano}
 \newfontscript{Hatran}{hatr}
 \newfontscript{Hebrew}{hebr}
@@ -3167,11 +3163,14 @@
 \newfontscript{Lycian}{lyci}
 \newfontscript{Lydian}{lydi}
 \newfontscript{Mahajani}{mahj}
+\newfontscript{Makasar}{maka}
 \newfontscript{Malayalam}{mlm2,mlym}
 \newfontscript{Mandaic}{mand}
 \newfontscript{Manichaean}{mani}
 \newfontscript{Marchen}{marc}
+\newfontscript{Masaram Gondi}{gonm}
 \newfontscript{Math}{math}
+\newfontscript{Medefaidrin}{medf}
 \newfontscript{Meitei~Mayek}{mtei}
 \newfontscript{Mende~Kikakui}{mend}
 \newfontscript{Meroitic~Cursive}{merc}
@@ -3186,6 +3185,7 @@
 \newfontscript{N'Ko}{nko~}
 \newfontscript{Nabataean}{nbat}
 \newfontscript{Newa}{newa}
+\newfontscript{Nushu}{nshu}
 \newfontscript{Odia}{ory2,orya}
 \newfontscript{Ogham}{ogam}
 \newfontscript{Ol~Chiki}{olck}
@@ -3194,6 +3194,7 @@
 \newfontscript{Old~North~Arabian}{narb}
 \newfontscript{Old~Permic}{perm}
 \newfontscript{Old~Persian~Cuneiform}{xpeo}
+\newfontscript{Old~Sogdian}{sogo}
 \newfontscript{Old~South~Arabian}{sarb}
 \newfontscript{Old~Turkic}{orkh}
 \newfontscript{Osage}{osge}
@@ -3213,6 +3214,7 @@
 \newfontscript{Siddham}{sidd}
 \newfontscript{Sign~Writing}{sgnw}
 \newfontscript{Sinhala}{sinh}
+\newfontscript{Sogdian}{sogd}
 \newfontscript{Sora~Sompeng}{sora}
 \newfontscript{Sumero-Akkadian~Cuneiform}{xsux}
 \newfontscript{Sundanese}{sund}
@@ -3237,6 +3239,7 @@
 \newfontscript{Vai}{vai~}
 \newfontscript{Warang~Citi}{wara}
 \newfontscript{Yi}{yi~~}
+\newfontscript{Zanabazar~Square}{zanb}
 \newfontscript{CJK}{hani}
 \newfontscript{Kana}{kana}
 \newfontscript{Maths}{math}
@@ -3771,18 +3774,11 @@
 
 %%^^A%%  fontspec-code-enc.dtx -- part of FONTSPEC <wspr.io/fontspec>
 
-\providecommand\UnicodeFontFile[2]{"[#1]:#2"}
-\providecommand\UnicodeFontName[2]{"#1:#2"}
-\providecommand\UnicodeFontTeXLigatures{mapping=tex-text;}
-\providecommand\add at unicode@accent[2]{#2\char#1\relax}
-\providecommand\DeclareUnicodeAccent[3]{%
-  \DeclareTextCommand{#1}{#2}{\add at unicode@accent{#3}}%
-}
-\DeclareDocumentCommand \EncodingCommand {mO{}m}
+\DeclareDocumentCommand \EncodingCommand { m O{} O{} m }
   {
     \bool_if:NF \l__fontspec_defining_encoding_bool
       { \__fontspec_error:nn {only-inside-encdef} \EncodingCommand }
-    \DeclareTextCommand{#1}{\UnicodeEncodingName}[#2]{#3}
+    \DeclareTextCommand{#1}{\UnicodeEncodingName}[#2][#3]{#4}
   }
 \DeclareDocumentCommand \EncodingAccent {mm}
   {

Modified: trunk/Master/texmf-dist/tex/latex/fontspec/fontspec.lua
===================================================================
--- trunk/Master/texmf-dist/tex/latex/fontspec/fontspec.lua	2019-10-19 21:17:35 UTC (rev 52448)
+++ trunk/Master/texmf-dist/tex/latex/fontspec/fontspec.lua	2019-10-19 21:17:52 UTC (rev 52449)
@@ -23,8 +23,8 @@
 local fontspec    = fontspec
 fontspec.module   = {
     name          = "fontspec",
-    version       = "2.7c",
-    date          = "2019/03/15",
+    version       = "2.7d",
+    date          = "2019/10/19",
     description   = "Font selection for XeLaTeX and LuaLaTeX",
     author        = "Khaled Hosny, Philipp Gesang, Will Robertson",
     copyright     = "Khaled Hosny, Philipp Gesang, Will Robertson",

Modified: trunk/Master/texmf-dist/tex/latex/fontspec/fontspec.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/fontspec/fontspec.sty	2019-10-19 21:17:35 UTC (rev 52448)
+++ trunk/Master/texmf-dist/tex/latex/fontspec/fontspec.sty	2019-10-19 21:17:52 UTC (rev 52449)
@@ -21,7 +21,7 @@
 
 \RequirePackage{xparse}
 \ProvidesExplPackage{fontspec}%
-  {2019/03/15}{2.7c}{Font selection for XeLaTeX and LuaLaTeX}
+  {2019/10/19}{2.7d}{Font selection for XeLaTeX and LuaLaTeX}
 
 %%^^A%%  fontspec-code-load.dtx -- part of FONTSPEC <wspr.io/fontspec>
 \sys_if_engine_luatex:T



More information about the tex-live-commits mailing list