ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* frac font feature doesn't work as expected
@ 2017-04-05  8:15 Ulrike Fischer
  2017-04-05 11:00 ` luigi scarso
  0 siblings, 1 reply; 3+ messages in thread
From: Ulrike Fischer @ 2017-04-05  8:15 UTC (permalink / raw)
  To: ntg-context

\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/

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: frac font feature doesn't work as expected
  2017-04-05  8:15 frac font feature doesn't work as expected Ulrike Fischer
@ 2017-04-05 11:00 ` luigi scarso
  2017-04-05 22:43   ` Ulrike Fischer
  0 siblings, 1 reply; 3+ messages in thread
From: luigi scarso @ 2017-04-05 11:00 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Wed, Apr 5, 2017 at 10:15 AM, Ulrike Fischer <news3@nililand.de> wrote:
> \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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: frac font feature doesn't work as expected
  2017-04-05 11:00 ` luigi scarso
@ 2017-04-05 22:43   ` Ulrike Fischer
  0 siblings, 0 replies; 3+ messages in thread
From: Ulrike Fischer @ 2017-04-05 22:43 UTC (permalink / raw)
  To: ntg-context

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/

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-04-05 22:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-05  8:15 frac font feature doesn't work as expected Ulrike Fischer
2017-04-05 11:00 ` luigi scarso
2017-04-05 22:43   ` Ulrike Fischer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).