From 0e63b6f673544a52078da0981a245d6a03ab9dbd Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Mon, 13 Sep 2010 05:19:36 +0300 Subject: Sanitize color before attempting to use it Right now it just checks the number if fields, may be we should check if it is a valid hex color value as well. --- tests/sanitize_color.tex | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tests/sanitize_color.tex (limited to 'tests') diff --git a/tests/sanitize_color.tex b/tests/sanitize_color.tex new file mode 100644 index 0000000..fe95d37 --- /dev/null +++ b/tests/sanitize_color.tex @@ -0,0 +1,8 @@ +\input luaotfload.sty +\font\testa={name:Latin Modern Roman:color=0000ff99f} at 10pt +\font\testb={name:Latin Modern Roman:color=0000ff9} at 10pt +\font\testc={name:Latin Modern Roman:color=0000f} at 10pt +\testa test\par +\testb test\par +\testc test\par +\bye -- cgit v1.2.3