summaryrefslogtreecommitdiff
path: root/tests/opbd.tex
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2010-04-02 17:14:01 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2010-04-02 17:28:28 +0200
commit00ac320063ff016aea9f997948aa104d31bc95ff (patch)
tree34285fa0a2a8c9fa728aba4d8a7fbe6f21251d8c /tests/opbd.tex
parentae2c3eb500962f22cb836f415d3bab6da97e1fdd (diff)
downloadluaotfload-00ac320063ff016aea9f997948aa104d31bc95ff.tar.gz
Support 'opbd' (OpenType protrusion) feature
Code scrapped from ConTeXt, AFAIK, no font implements OpenType optical bounds (on of Linux Libertine font has traces of it), but I plan to use it in my fonts. The committed feature file is prepared for Pagella, we can later have font specific feature files like this.
Diffstat (limited to 'tests/opbd.tex')
-rw-r--r--tests/opbd.tex9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/opbd.tex b/tests/opbd.tex
new file mode 100644
index 0000000..4c45781
--- /dev/null
+++ b/tests/opbd.tex
@@ -0,0 +1,9 @@
+\input luaotfload.sty
+
+\pdfprotrudechars2 \pdfadjustspacing2
+
+\font\testa=file:texgyrepagella-regular:script=latn at 12pt
+\font\testb=file:texgyrepagella-regular:mode=node;script=latn;protrusion=yes;featurefile=opbd.fea;+opbd at 12pt
+\testa \input tufte \par
+\testb \input tufte \par
+\bye