From: Marcus Vinicius Mesquita <marcusvinicius.mesquita@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: [NTG-context] Kerning feature not working
Date: Wed, 30 Aug 2023 16:37:46 -0300 [thread overview]
Message-ID: <CAK9ODgQa=cuo1wVnq-nh7+okwptXAfWtyi8jwrSrwZ53Kfn9ug@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 993 bytes --]
Dear List
In the MWE below, the kerning feature works OK for ebgaramonditalic
but not for ebgaramondregular.
How do I fix it?
I'm using ConTeXt version: 2023.08.27 13:48
\startluacode
fonts.handlers.otf.addfeature {
name = "kernit",
type = "kern",
nocheck = true,
data = {
[0x27E8] = { ["f"] = 300, ["fi"] = 300, ["fl"] = 300 }
}
}
\stopluacode
\definefontfeature[kernit][mode=node,kernit=yes]
\starttext
\definedfont[name:ebgaramondregular*default,kernit]
⟨f ile
⟨f lame
⟨file
⟨flame
\definedfont[name:ebgaramonditalic*default,kernit]
⟨f ile
⟨f lame
⟨file
⟨flame
\stoptext
--
Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o
corpo nem seus membros, por ser descanso da alma, primavera do
coração, distração do aflito, entretenimento do solitário, e viático
do viajante.
Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik)
[-- Attachment #2: MWE.tex --]
[-- Type: text/x-tex, Size: 479 bytes --]
\startluacode
fonts.handlers.otf.addfeature {
name = "kernit",
type = "kern",
nocheck = true,
data = {
[0x27E8] = { ["f"] = 300, ["fi"] = 300, ["fl"] = 300 }
}
}
\stopluacode
\definefontfeature[kernit][mode=node,kernit=yes]
\starttext
\definedfont[name:ebgaramondregular*default,kernit]
⟨f ile
⟨f lame
⟨file
⟨flame
\definedfont[name:ebgaramonditalic*default,kernit]
⟨f ile
⟨f lame
⟨file
⟨flame
\stoptext
[-- Attachment #3: MWE.pdf --]
[-- Type: application/pdf, Size: 10802 bytes --]
[-- Attachment #4: Type: text/plain, Size: 495 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage : https://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___________________________________________________________________________________
reply other threads:[~2023-08-30 19:40 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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='CAK9ODgQa=cuo1wVnq-nh7+okwptXAfWtyi8jwrSrwZ53Kfn9ug@mail.gmail.com' \
--to=marcusvinicius.mesquita@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).