ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: luigi scarso <luigi.scarso@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: frac font feature doesn't work as expected
Date: Wed, 5 Apr 2017 13:00:29 +0200	[thread overview]
Message-ID: <CAG5iGsBN4id6j_PdoKa2GWbBBntRwFkQXAHBQFKiTi=K-khu3A@mail.gmail.com> (raw)
In-Reply-To: <uxnphedywhbt$.dlg@nililand.de>

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
___________________________________________________________________________________

  reply	other threads:[~2017-04-05 11:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-05  8:15 Ulrike Fischer
2017-04-05 11:00 ` luigi scarso [this message]
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='CAG5iGsBN4id6j_PdoKa2GWbBBntRwFkQXAHBQFKiTi=K-khu3A@mail.gmail.com' \
    --to=luigi.scarso@gmail.com \
    --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).