diff options
author | Hans Hagen <pragma@wxs.nl> | 2018-02-23 23:32:32 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg42.2a@gmail.com> | 2018-02-23 23:32:32 +0100 |
commit | 661fb34ced40815e1e5e9073de9c8475127da094 (patch) | |
tree | e37efb780017271ef7d9d3b79673d6093b228c23 /doc/context/sources/general/fonts/fonts/fonts-features.tex | |
parent | 8e51addbcecd962280c24a77de9ec1f6724e7a65 (diff) | |
download | context-661fb34ced40815e1e5e9073de9c8475127da094.tar.gz |
2018-02-23 22:19:00
Diffstat (limited to 'doc/context/sources/general/fonts/fonts/fonts-features.tex')
-rw-r--r-- | doc/context/sources/general/fonts/fonts/fonts-features.tex | 74 |
1 files changed, 33 insertions, 41 deletions
diff --git a/doc/context/sources/general/fonts/fonts/fonts-features.tex b/doc/context/sources/general/fonts/fonts/fonts-features.tex index 0ecd3c9d9..73d1cd96d 100644 --- a/doc/context/sources/general/fonts/fonts/fonts-features.tex +++ b/doc/context/sources/general/fonts/fonts/fonts-features.tex @@ -2543,48 +2543,40 @@ unlikely to show up in future versions of the Latin Modern fonts. \stopsection -\startsection[title=Discretionaries] - -% speed test: +% \startsection[title=Discretionaries] % -% \edef\tufte{\cldloadfile{tufte}} -% \enabledirectives[otf.alwaysdisc] -% \testfeatureonce{100}{\setbox0\hbox{\tufte \smallcaps \tufte}}\elapsedtime\par -% \disabledirectives[otf.alwaysdisc] -% \testfeatureonce{100}{\setbox0\hbox{\tufte \smallcaps \tufte}}\elapsedtime\par - -\startbuffer -\definedfont[cambria*default] -12\discretionary - {3} {4} {5}% -67\par -12{\oldstyle\discretionary - {3} {4} {5}}% -67\par -12\discretionary - {3{\oldstyle3}} {{\oldstyle4}4} {5{\oldstyle5}5}% -67\par -\stopbuffer - -The font handler has to do some magick to get features working with and across -discretionaries. To some extend you can use font switches inside discretionaries -but for sure border cases are not dealt with. This works: - -\startlinecorrection[blank] -\startcombination[nx=4,ny=1,location=top] - {\framed[align=normal]{\enabledirectives [otf.alwaysdisc]\setupwhitespace[line]\getbuffer}} {1} - {\framed[align=normal]{\enabledirectives [otf.alwaysdisc]\hsize1mm\getbuffer}} {2} - {\framed[align=normal]{\disabledirectives[otf.alwaysdisc]\setupwhitespace[line]\getbuffer}} {3} - {\framed[align=normal]{\disabledirectives[otf.alwaysdisc]\hsize1mm\getbuffer}} {4} -\stopcombination -\stoplinecorrection - -The first two examples have \type {otf.alwaysdisk} enabled, the last two have it -disabled. - -\typebuffer - -\stopsection +% \startbuffer +% \definedfont[cambria*default] +% 12\discretionary +% {3} {4} {5}% +% 67\par +% 12{\oldstyle\discretionary +% {3} {4} {5}}% +% 67\par +% 12\discretionary +% {3{\oldstyle3}} {{\oldstyle4}4} {5{\oldstyle5}5}% +% 67\par +% \stopbuffer +% +% The font handler has to do some magick to get features working with and across +% discretionaries. To some extend you can use font switches inside discretionaries +% but for sure border cases are not dealt with. This works: +% +% \startlinecorrection[blank] +% \startcombination[nx=4,ny=1,location=top] +% {\framed[align=normal]{\enabledirectives [otf.alwaysdisc]\setupwhitespace[line]\getbuffer}} {1} +% {\framed[align=normal]{\enabledirectives [otf.alwaysdisc]\hsize1mm\getbuffer}} {2} +% {\framed[align=normal]{\disabledirectives[otf.alwaysdisc]\setupwhitespace[line]\getbuffer}} {3} +% {\framed[align=normal]{\disabledirectives[otf.alwaysdisc]\hsize1mm\getbuffer}} {4} +% \stopcombination +% \stoplinecorrection +% +% The first two examples have \type {otf.alwaysdisk} enabled, the last two have it +% disabled. +% +% \typebuffer +% +% \stopsection \startsection[title=Some remarks] |