frac font feature doesn't work as expected
\starttext \font\test={file:linlibertine_r.otf:+frac} \test 1/2 3/4 5/6 7/8 9/10 11/12 31415/27182 1000/1000000 \stoptext gives as output ½ 3¾ 5⅚ 7⅜ 9/10 1⅟12 31415/27182 1000/1000000 (I couldn't build an example without the primitive command. After \definefontfeature[frac][frac=yes] \definefontfamily[default][rm][linuslibertineo][features=frac] context always falls back to latin modern) A similar plaintex example for xetex \font\test="[linlibertine_r.otf]:+frac" \test 1/2 3/4 5/6 7/8 9/10 11/12 31415/27182 1000/1000000 \bye gives the correct result: ¹⁄₂ ³⁄₄ ⁵⁄₆ ⁷⁄₈ ⁹⁄₁₀ ¹¹⁄₁₂ ³¹⁴¹⁵⁄₂₇₁₈₂ ¹⁰⁰⁰⁄₁₀₀₀₀₀₀ A plain tex example for luatex is broken too but differently to the context version, one gets at least the correct numbers: \input luaotfload.sty \font\test={file:linlibertine_r.otf:+frac} \test 1/2 3/4 5/6 7/8 9/10 11/12 31415/27182 1000/1000000 \bye ½ ¾ ⅚ ⅞ 9/10 1⅟12 31415/27182 1000/1000000 -- Ulrike Fischer http://www.troubleshooting-tex.de/
On Wed, Apr 5, 2017 at 10:15 AM, Ulrike Fischer
\starttext
\font\test={file:linlibertine_r.otf:+frac} \test 1/2 3/4 5/6 7/8 9/10 11/12 31415/27182 1000/1000000 \stoptext
gives as output
½ 3¾ 5⅚ 7⅜ 9/10 1⅟12 31415/27182 1000/1000000
\usetypescriptfile[libertine] \setupbodyfont[libertine,12pt] \definefontfeature[frac][frac=yes] \starttext {\addff{frac} 1/2 3/4 5/6 7/8 9/10 11/12 31415/27182 1000/1000000} \stoptext if you see fonts > otf chain > feature 'frac', type 'gsub_contextchain', chain lookup 's_s_7': is not yet supported (1) then ... it need to be supported. ( I have a local patch (by Hnas) that gives ¹⁄₂ ³⁄₄ ⁵⁄₆ ⁷⁄₈ ⁹⁄₁₀ ¹¹⁄₁₂ ³¹⁴¹⁵⁄₂₇₁₈₂ ¹⁰⁰⁰⁄₁₀₀₀₀₀₀ with the otf fonts from http://www.ctan.org/tex-archive/fonts/libertine ) -- luigi
Am Wed, 5 Apr 2017 13:00:29 +0200 schrieb luigi scarso:
if you see fonts > otf chain > feature 'frac', type 'gsub_contextchain', chain lookup 's_s_7': is not yet supported (1) then ... it need to be supported.
Yes, that's what I see ;-(. -- Ulrike Fischer http://www.troubleshooting-tex.de/
participants (2)
-
luigi scarso
-
Ulrike Fischer