Skip to content

Commit

Permalink
update colour-basic test
Browse files Browse the repository at this point in the history
  • Loading branch information
u-fischer committed Nov 4, 2023
1 parent 33bba8d commit d13c89c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
7 changes: 5 additions & 2 deletions testfiles/colour-basic.luatex.tlg
Original file line number Diff line number Diff line change
Expand Up @@ -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
10 changes: 8 additions & 2 deletions testfiles/colour-basic.lvt
Original file line number Diff line number Diff line change
Expand Up @@ -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}

\end{document}
\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}
5 changes: 4 additions & 1 deletion testfiles/colour-basic.tlg
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d13c89c

Please sign in to comment.