On 2024-11-04 01:35, Mikael Sundqvist wrote:
\startluacode

local classes = fonts.protrusions.classes
local vectors = fonts.protrusions.vectors

classes.rik = {
     vector = 'rik',
     factor = 1,
}

vectors.rik = table.merged (
     vectors.quality,
     {
       [0x0054] = { 0.35, 0 }, -- T
     })

\stopluacode

That, of course, works (I would use 0.175 for Libertinus) but as you point out does not distinguish roman and italic.

Perhaps instead of protrusion there is something that can be done with the bounding box of specific characters.

--
Rik
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Reply via email to