From 666bf8ac5cf2574303874be2cd8234e8b99ad459 Mon Sep 17 00:00:00 2001 From: Andrew Dunning Date: Thu, 10 Jan 2019 14:24:27 -0500 Subject: LaTeX template: Prevent scaling of main font (#5212) When `Scale=MatchLowercase` is set as a default font option, this scales `mainfont` against the old default, meaning that it resizes whatever is set as the main font to match the metrics of Latin Modern. This can result, for example, in a document set to 12pt appearing in 11pt or 13pt. Setting this option for individual families allows everything to scale against the main font, and permits the user to override the setting if desired. Note that it is not necessary to specify `Ligatures=TeX`, as this is already set by default for the appropriate families. See the `fontspec` manual: . Those who specify font-options in metadata may need to add `Scale=MatchLowercase`, which will now only be provided if `(roman|sans|math|mono)fontoptions` aren't given explicitly. --- test/lhs-test.latex | 1 - test/lhs-test.latex+lhs | 1 - test/writer.latex | 1 - test/writers-lang-and-dir.latex | 1 - 4 files changed, 4 deletions(-) (limited to 'test') diff --git a/test/lhs-test.latex b/test/lhs-test.latex index 5584b2cfa..5d8442f2a 100644 --- a/test/lhs-test.latex +++ b/test/lhs-test.latex @@ -12,7 +12,6 @@ \usepackage{textcomp} % provides euro and other symbols \else % if luatex or xelatex \usepackage{unicode-math} - \defaultfontfeatures{Ligatures=TeX,Scale=MatchLowercase} \fi % use upquote if available, for straight quotes in verbatim environments \IfFileExists{upquote.sty}{\usepackage{upquote}}{} diff --git a/test/lhs-test.latex+lhs b/test/lhs-test.latex+lhs index f22da75f3..9c8797d5e 100644 --- a/test/lhs-test.latex+lhs +++ b/test/lhs-test.latex+lhs @@ -12,7 +12,6 @@ \usepackage{textcomp} % provides euro and other symbols \else % if luatex or xelatex \usepackage{unicode-math} - \defaultfontfeatures{Ligatures=TeX,Scale=MatchLowercase} \fi % use upquote if available, for straight quotes in verbatim environments \IfFileExists{upquote.sty}{\usepackage{upquote}}{} diff --git a/test/writer.latex b/test/writer.latex index f6b074099..155dcd407 100644 --- a/test/writer.latex +++ b/test/writer.latex @@ -12,7 +12,6 @@ \usepackage{textcomp} % provides euro and other symbols \else % if luatex or xelatex \usepackage{unicode-math} - \defaultfontfeatures{Ligatures=TeX,Scale=MatchLowercase} \fi % use upquote if available, for straight quotes in verbatim environments \IfFileExists{upquote.sty}{\usepackage{upquote}}{} diff --git a/test/writers-lang-and-dir.latex b/test/writers-lang-and-dir.latex index 7b13594da..f18e9a7d6 100644 --- a/test/writers-lang-and-dir.latex +++ b/test/writers-lang-and-dir.latex @@ -13,7 +13,6 @@ \usepackage{textcomp} % provides euro and other symbols \else % if luatex or xelatex \usepackage{unicode-math} - \defaultfontfeatures{Ligatures=TeX,Scale=MatchLowercase} \fi % use upquote if available, for straight quotes in verbatim environments \IfFileExists{upquote.sty}{\usepackage{upquote}}{} -- cgit v1.2.3