[latex3-commits] [git/LaTeX3-latex3-fontspec] variable: Add testfile for variable fonts (f10f947)
Marcel Fabian Krüger
tex at 2krueger.de
Mon May 23 23:32:35 CEST 2022
Repository : https://github.com/latex3/fontspec
On branch : variable
Link : https://github.com/latex3/fontspec/commit/f10f947be84666783ffa9ca1f9356cdb4519861d
>---------------------------------------------------------------
commit f10f947be84666783ffa9ca1f9356cdb4519861d
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date: Mon May 23 23:29:37 2022 +0200
Add testfile for variable fonts
>---------------------------------------------------------------
f10f947be84666783ffa9ca1f9356cdb4519861d
.../fontload-variable.luatex.tlg | 6 +++-
testfiles/fontload-variable.lvt | 33 ++++++++++++++++++++++
.../fontload-variable.xetex.tlg | 6 +++-
3 files changed, 43 insertions(+), 2 deletions(-)
diff --git a/testfiles-disabled/01-pkg-load-um.luatex.tlg b/testfiles/fontload-variable.luatex.tlg
similarity index 64%
copy from testfiles-disabled/01-pkg-load-um.luatex.tlg
copy to testfiles/fontload-variable.luatex.tlg
index 8d11d3e..7280966 100644
--- a/testfiles-disabled/01-pkg-load-um.luatex.tlg
+++ b/testfiles/fontload-variable.luatex.tlg
@@ -1,5 +1,9 @@
This is a generated file for the l3build validation system.
Don't change this file in any respect.
-Checking loading; no log file data expected.
+Default: 9.45pt
+Bold: 9.86pt
+Black: 10.16pt
+Black condensed: 8.98pt
+Extracondensed Bold: 8.07pt
***************
Compilation 1 of test file completed with exit status 0
diff --git a/testfiles/fontload-variable.lvt b/testfiles/fontload-variable.lvt
new file mode 100644
index 0000000..ed7d89c
--- /dev/null
+++ b/testfiles/fontload-variable.lvt
@@ -0,0 +1,33 @@
+\input{fontspec-testsetup.tex}
+
+\usepackage{fontspec}
+\usepackage{iftex}
+\ifluahbtex
+ \defaultfontfeatures{Renderer=HarfBuzz}
+\fi
+
+\begin{document}
+
+\START
+
+\fontspec{NotoSerif-VF.ttf}
+\setbox0\hbox{m}
+\MSG{Default: \the\wd0}
+
+\fontspec[Weight=700]{NotoSerif-VF.ttf}
+\setbox0\hbox{m}
+\MSG{Bold: \the\wd0}
+
+\fontspec[Weight=900]{NotoSerif-VF.ttf}
+\setbox0\hbox{m}
+\MSG{Black: \the\wd0}
+
+\fontspec[Weight=900, Width=75]{NotoSerif-VF.ttf}
+\setbox0\hbox{m}
+\MSG{Black condensed: \the\wd0}
+
+\fontspec[Instance=ExtraCondensed Bold]{NotoSerif-VF.ttf}
+\setbox0\hbox{m}
+\MSG{Extracondensed Bold: \the\wd0}
+
+\end{document}
diff --git a/testfiles-disabled/01-pkg-load-um.luatex.tlg b/testfiles/fontload-variable.xetex.tlg
similarity index 64%
copy from testfiles-disabled/01-pkg-load-um.luatex.tlg
copy to testfiles/fontload-variable.xetex.tlg
index 8d11d3e..4fca7fc 100644
--- a/testfiles-disabled/01-pkg-load-um.luatex.tlg
+++ b/testfiles/fontload-variable.xetex.tlg
@@ -1,5 +1,9 @@
This is a generated file for the l3build validation system.
Don't change this file in any respect.
-Checking loading; no log file data expected.
+Default: 9.45pt
+Bold: 9.45pt
+Black: 9.45pt
+Black condensed: 9.45pt
+Extracondensed Bold: 9.45pt
***************
Compilation 1 of test file completed with exit status 0
More information about the latex3-commits
mailing list.