summaryrefslogtreecommitdiff
path: root/tests/opticalsize.tex
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2010-04-02 07:29:34 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2010-04-02 09:34:09 +0200
commite829a47bf78db8f1a9f691dcd7b096eab58040ad (patch)
tree73f1d8e22c17d1dd2861718f25460865fc9a1080 /tests/opticalsize.tex
parent6ef791e91eb0c497494cbb12063d9ef72841080e (diff)
downloadluaotfload-e829a47bf78db8f1a9f691dcd7b096eab58040ad.tar.gz
Fix optical size matching
With the previous commit, if we don't found a font with the requested optical size, we return nothing, though we might have a matching font name. Now we store all matching names with no matching optical size and return the first one, then we return the closest match (i.e. if the requested size is 15pt and we have 10pt and 5pt match, we return the 10pt one).
Diffstat (limited to 'tests/opticalsize.tex')
-rw-r--r--tests/opticalsize.tex4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/opticalsize.tex b/tests/opticalsize.tex
index d19bb59..53b1bb8 100644
--- a/tests/opticalsize.tex
+++ b/tests/opticalsize.tex
@@ -3,7 +3,11 @@
\font\testa={Latin Modern Roman/S=12} at 10pt
\font\testb={Latin Modern Roman} at 5pt
\font\testc={Latin Modern Roman} at 10pt
+\font\testd={Latin Modern Roman/S=15} at 10pt
+\font\teste={Latin Modern Roman/S=3} at 10pt
\testa abcd ABCD \par
\testb abcd ABCD \par
\testc abcd ABCD \par
+\testd abcd ABCD \par
+\teste abcd ABCD \par
\bye