From: mf <massifr@fastwebnet.it>
To: Mailing list ConTeXt <ntg-context@ntg.nl>
Subject: Re: modifying kerning breaks opentype ligatures (and other features)
Date: Mon, 10 Dec 2018 16:57:45 +0100 [thread overview]
Message-ID: <504777f1-c166-5747-c191-3066e1a67e4e@fastwebnet.it> (raw)
In-Reply-To: <882fa714-9a05-77d2-e373-70997aabc567@fastwebnet.it>
An example of local correction, but it's not automatic:
\definecharacterkerning[narrow][factor=-.02]
\definecharacterkerning[wide][factor=.02]
\definefontfeature[frac][frac=yes]
\def\Narrow#1{\bgroup\setcharacterkerning[narrow]#1\egroup}
\def\Wide#1{\bgroup\setcharacterkerning[wide]#1\egroup}
\def\NoKerning#1{\bgroup\resetcharacterkerning #1\egroup}
\starttext
\feature[+][frac]%
Some ligatures: float, finance, affine; a fraction: 1/4.
\blank
Modified kerning:
\Narrow{Some ligatures: float, finance, affine; a fraction: 1/4.}
\Wide{Some ligatures: float, finance, affine; a fraction: 1/4.}
\blank
Same as above, but locally corrected:
\Narrow{Some ligatures: \NoKerning{fl}oat, \NoKerning{fi}nance,
a\NoKerning{ffi}ne; a fraction: \NoKerning{1/4}.}
\Wide{Some ligatures: \NoKerning{fl}oat, \NoKerning{fi}nance,
a\NoKerning{ffi}ne; a fraction: \NoKerning{1/4}.}
\stoptext
PS: (errata corrige)
>
> "1", "/", "4" => "¼" glyph (with "frac" feature switched on)
>
"1", "/", "4" => "smaller 1" glyph moved up, fraction line glyph,
"smaller 4" glyph moved left and down
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2018-12-10 15:57 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-10 15:26 mf
2018-12-10 15:57 ` mf [this message]
2018-12-10 16:14 ` Hans Hagen
2018-12-10 17:16 ` mf
2018-12-10 18:33 ` Hans Hagen
2018-12-11 10:34 ` mf
2018-12-11 12:06 ` Hans Hagen
2018-12-11 12:45 ` mf
2018-12-11 13:52 ` Hans Hagen
2018-12-11 20:54 ` Rik Kabel
2018-12-12 0:00 ` Rik Kabel
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=504777f1-c166-5747-c191-3066e1a67e4e@fastwebnet.it \
--to=massifr@fastwebnet.it \
--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).