ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Ulrike Fischer <news3@nililand.de>
To: ntg-context@ntg.nl
Subject: frac font feature doesn't work as expected
Date: Wed, 5 Apr 2017 10:15:28 +0200	[thread overview]
Message-ID: <uxnphedywhbt$.dlg@nililand.de> (raw)

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

             reply	other threads:[~2017-04-05  8:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-05  8:15 Ulrike Fischer [this message]
2017-04-05 11:00 ` luigi scarso
2017-04-05 22:43   ` Ulrike Fischer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='uxnphedywhbt$.dlg@nililand.de' \
    --to=news3@nililand.de \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).