ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* How to define a {\bf}-compatible fake-bold switcher?
@ 2020-11-07 15:06 Sylvain Hubert
  2020-11-07 15:40 ` Pablo Rodriguez
  0 siblings, 1 reply; 5+ messages in thread
From: Sylvain Hubert @ 2020-11-07 15:06 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 602 bytes --]

Dear List,

I'm using a weirdfont that does not have a pre-defined bold variant but
still want to emboldening short extracts of text occasionally, so I've
defined

    \defineeffect[thicker][alternative=both,rulethickness=0.3pt]
    \define\fakebf{\effect[thicker]}

but in situations like

    {\fakebf \definedfont[weridfont] 1 2 3 \definedfont[modern]4 5 6}

the "4 5 6" is faked bold even if latinmodern has a proper bold font.

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?

Thanks in advance.

Best,
Sylvain

[-- Attachment #1.2: Type: text/html, Size: 904 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

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

maillist : ntg-context@ntg.nl / 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-11-07 18:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-07 15:06 How to define a {\bf}-compatible fake-bold switcher? Sylvain Hubert
2020-11-07 15:40 ` Pablo Rodriguez
2020-11-07 17:18   ` Sylvain Hubert
2020-11-07 17:45     ` Pablo Rodriguez
2020-11-07 18:09       ` Hans Hagen

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