ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] Kerning feature not working
@ 2023-08-30 19:37 Marcus Vinicius Mesquita
  0 siblings, 0 replies; only message in thread
From: Marcus Vinicius Mesquita @ 2023-08-30 19:37 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-08-30 19:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-30 19:37 [NTG-context] Kerning feature not working Marcus Vinicius Mesquita

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).