[latex3-commits] [latex3/fontspec] l3color: update colour-basic test (d13c89c)
github at latex-project.org
github at latex-project.org
Sat Nov 4 18:17:19 CET 2023
Repository : https://github.com/latex3/fontspec
On branch : l3color
Link : https://github.com/latex3/fontspec/commit/d13c89c295914ae12b7304b4c3cb9f973e69fc46
>---------------------------------------------------------------
commit d13c89c295914ae12b7304b4c3cb9f973e69fc46
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Sat Nov 4 18:17:19 2023 +0100
update colour-basic test
>---------------------------------------------------------------
d13c89c295914ae12b7304b4c3cb9f973e69fc46
testfiles/colour-basic.luatex.tlg | 7 +++++--
testfiles/colour-basic.lvt | 8 +++++++-
testfiles/colour-basic.tlg | 5 ++++-
3 files changed, 16 insertions(+), 4 deletions(-)
diff --git a/testfiles/colour-basic.luatex.tlg b/testfiles/colour-basic.luatex.tlg
index 4f9f0c8..cae043e 100644
--- a/testfiles/colour-basic.luatex.tlg
+++ b/testfiles/colour-basic.luatex.tlg
@@ -5,11 +5,14 @@ Loading xcolor...
Loading a font with hex colour:
TU/texgyreheros-regular.otf(0)/m/n:
[texgyreheros-regular.otf]:mode=node;script=latn;language=dflt;color={5500FF};
-Loading a font by name (xcolor):
+Loading a font by name (l3color+xcolor):
TU/texgyreheros-regular.otf(1)/m/n:
[texgyreheros-regular.otf]:mode=node;script=latn;language=dflt;color={red};
Defining a new xcolor colour and using it:
TU/texgyreheros-regular.otf(2)/m/n:
- [texgyreheros-regular.otf]:mode=node;script=latn;language=dflt;color={Foo};
+ [texgyreheros-regular.otf]:mode=node;script=latn;language=dflt;color={4D6680};
+Defining a new l3color colour and using it:
+TU/texgyreheros-regular.otf(3)/m/n:
+ [texgyreheros-regular.otf]:mode=node;script=latn;language=dflt;color={Bar};
***************
Compilation 1 of test file completed with exit status 0
diff --git a/testfiles/colour-basic.lvt b/testfiles/colour-basic.lvt
index e20333a..cb98000 100644
--- a/testfiles/colour-basic.lvt
+++ b/testfiles/colour-basic.lvt
@@ -9,11 +9,17 @@
\MSG{Loading a font with hex colour:}
{\fontspec[Color=5500FF]{texgyreheros-regular.otf}\CURRNFSS}
-\MSG{Loading a font by name (xcolor):}
+\MSG{Loading a font by name (l3color+xcolor):}
{\fontspec[Color=red]{texgyreheros-regular.otf}\CURRNFSS}
\MSG{Defining a new xcolor colour and using it:}
\definecolor{Foo}{rgb}{0.3,0.4,0.5}
{\fontspec[Color=Foo]{texgyreheros-regular.otf}\CURRNFSS}
+\MSG{Defining a new l3color colour and using it:}
+\ExplSyntaxOn
+\color_set:nnn{Bar}{rgb}{0.5,0.4,0.3}
+\ExplSyntaxOff
+{\fontspec[Color=Bar]{texgyreheros-regular.otf}\CURRNFSS}
+
\end{document}
diff --git a/testfiles/colour-basic.tlg b/testfiles/colour-basic.tlg
index f0709ec..04ace6d 100644
--- a/testfiles/colour-basic.tlg
+++ b/testfiles/colour-basic.tlg
@@ -5,11 +5,14 @@ Loading xcolor...
Loading a font with hex colour:
TU/texgyreheros-regular.otf(0)/m/n:
"[texgyreheros-regular.otf]/OT:script=latn;language=dflt;color=5500FFFF ;" at 10.0pt
-Loading a font by name (xcolor):
+Loading a font by name (l3color+xcolor):
TU/texgyreheros-regular.otf(1)/m/n:
"[texgyreheros-regular.otf]/OT:script=latn;language=dflt;color=FF0000FF ;" at 10.0pt
Defining a new xcolor colour and using it:
TU/texgyreheros-regular.otf(2)/m/n:
"[texgyreheros-regular.otf]/OT:script=latn;language=dflt;color=4D6680FF ;" at 10.0pt
+Defining a new l3color colour and using it:
+TU/texgyreheros-regular.otf(3)/m/n:
+ "[texgyreheros-regular.otf]/OT:script=latn;language=dflt;color=80664CFF ;" at 10.0pt
***************
Compilation 1 of test file completed with exit status 0
More information about the latex3-commits
mailing list.