Am 2017-10-08 um 00:22 schrieb Hans Hagen <[email protected]>:

> On 10/7/2017 9:21 PM, Pablo Rodriguez wrote:
> You need to define features before fonts get defined because we share font 
> definitions and their features as much as possible
> 
> \startluacode
>    fonts.handlers.otf.addfeature {
>        name = "kernligatures",
>        type = "kern",
>        data = {
>            f = { i = 50, l = 50 },
>        }
>    }
> \stopluacode
> 
> \blockligatures[u:fl:a]
> 
> Now we can use them
> 
> \definefontfamily[mainfont][rm][Brill]
> \definefontfamily[mainfont][tt][Dejavu]
> 
> \setupbodyfont[mainfont]
> 
> \definefontfeature[default:b][default][blockligatures=yes]
> \definefontfeature[default:k][default][blockligatures=yes,kernligatures=yes]

Thank you very much, that helps! I’m working on a set of exceptions...



Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD

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

maillist : [email protected] / 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 via email to