[NTG-context] How to define a {\bf}-compatible fake-bold switcher?

Pablo Rodriguez oinos at gmx.es
Sat Nov 7 16:40:55 CET 2020

On 11/7/20 4:06 PM, Sylvain Hubert wrote:
> [...]
> Could anyone help me define a {\bf}-aware version of \fakebf which can
> render the "4 5 6" in the example above in latinmodern's bold?

Hi Sylvain,

there is an already defined font feature that fakes boldened fonts:
boldened (and also boldened-10, boldened-15, boldened-20 and boldened-25
[boldened is actually boldened-30]).

But I don’t use \definefont myself, so this is my sample:

    \definefontfamily[mainface][rm][Latin Modern Sans]
        [bf={style:tf, features:{default, boldened}}]
    normal \bf boldened

Handle with care, since faked fonts are to be used sparingly,


More information about the ntg-context mailing list