[latex3-commits] [git/LaTeX3-latex3-luaotfload] dev: Test for named colorschemes (dfd49d1)
Marcel Fabian Krüger
tex at 2krueger.de
Thu Jan 9 15:56:04 CET 2020
Repository : https://github.com/latex3/luaotfload
On branch : dev
Link : https://github.com/latex3/luaotfload/commit/dfd49d11e2d8b425b98225202937fe4998324f87
>---------------------------------------------------------------
commit dfd49d11e2d8b425b98225202937fe4998324f87
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date: Thu Jan 9 15:43:34 2020 +0100
Test for named colorschemes
>---------------------------------------------------------------
dfd49d11e2d8b425b98225202937fe4998324f87
testfiles/color.lvt | 9 ++++++++-
testfiles/color.tlg | 14 ++++++++++++++
2 files changed, 22 insertions(+), 1 deletion(-)
diff --git a/testfiles/color.lvt b/testfiles/color.lvt
index 95587dc..d437c81 100644
--- a/testfiles/color.lvt
+++ b/testfiles/color.lvt
@@ -3,8 +3,15 @@
\documentclass{article}
\usepackage{unicode-math}
+\directlua{
+ luaotfload.add_colorscheme("my_scheme", {
+ ["0000FF"] = {"default"},
+ ["FF00FF"] = {"one", 1140}, % 1140 is the GID of "three"
+ ["12345678"] = {"plus"},
+ })
+}
\setmainfont{STIX Two Text}[Color=00FF00]
-\setmathfont{STIX Two Math}[Color=FF00FF, StylisticSet=08]
+\setmathfont{STIX Two Math}[RawFeature={color=my_scheme}, StylisticSet=08]
\begin{document}
\START \showoutput
diff --git a/testfiles/color.tlg b/testfiles/color.tlg
index eca2a0f..f641db7 100644
--- a/testfiles/color.tlg
+++ b/testfiles/color.tlg
@@ -118,12 +118,19 @@ Completed box being shipped out [1]
....\pdfcolorstack 0 push {1 0 1 rg}
....\TU/STIXTwoMath(1)/m/n/10 1
....\glue(\medmuskip) 2.22198 plus 1.111 minus 2.22198
+....\pdfcolorstack 0 pop
+....\pdfcolorstack 0 push {/TransGs0.471 gs 0.0706 0.204 0.337 rg}
....\TU/STIXTwoMath(1)/m/n/10 +
....\glue(\medmuskip) 2.22198 plus 1.111 minus 2.22198
+....\pdfcolorstack 0 pop
+....\pdfliteral direct <lua data reference ...>
+....\pdfcolorstack 0 push {0 0 1 rg}
....\TU/STIXTwoMath(1)/m/n/10 2
....\glue(\thickmuskip) 2.77748 plus 2.77748
....\TU/STIXTwoMath(1)/m/n/10 ≠
....\glue(\thickmuskip) 2.77748 plus 2.77748
+....\pdfcolorstack 0 pop
+....\pdfcolorstack 0 push {1 0 1 rg}
....\TU/STIXTwoMath(1)/m/n/10 3
....\pdfcolorstack 0 pop
...\penalty 0
@@ -221,12 +228,19 @@ Completed box being shipped out [1]
.....\pdfcolorstack 0 push {1 0 1 rg}
.....\TU/STIXTwoMath(1)/m/n/10 1
.....\glue(\medmuskip) 2.22198 plus 1.111 minus 2.22198
+.....\pdfcolorstack 0 pop
+.....\pdfcolorstack 0 push {/TransGs0.471 gs 0.0706 0.204 0.337 rg}
.....\TU/STIXTwoMath(1)/m/n/10 +
.....\glue(\medmuskip) 2.22198 plus 1.111 minus 2.22198
+.....\pdfcolorstack 0 pop
+.....\pdfliteral direct <lua data reference ...>
+.....\pdfcolorstack 0 push {0 0 1 rg}
.....\TU/STIXTwoMath(1)/m/n/10 2
.....\glue(\thickmuskip) 2.77748 plus 2.77748
.....\TU/STIXTwoMath(1)/m/n/10 ≠
.....\glue(\thickmuskip) 2.77748 plus 2.77748
+.....\pdfcolorstack 0 pop
+.....\pdfcolorstack 0 push {1 0 1 rg}
.....\TU/STIXTwoMath(1)/m/n/10 3
.....\pdfcolorstack 0 pop
....\penalty 0
More information about the latex3-commits
mailing list