From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/109317 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sylvain Hubert Newsgroups: gmane.comp.tex.context Subject: How to define a {\bf}-compatible fake-bold switcher? Date: Sat, 7 Nov 2020 16:06:44 +0100 Message-ID: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0817549760013511875==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15457"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Nov 07 16:09:51 2020 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kbPqg-0003vg-GH for gctc-ntg-context-518@m.gmane-mx.org; Sat, 07 Nov 2020 16:09:50 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 0A4B71A9FA3; Sat, 7 Nov 2020 16:07:02 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vOFdPhYw5hQb; Sat, 7 Nov 2020 16:07:00 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 56B9A1A9FC1; Sat, 7 Nov 2020 16:06:59 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 99ED11A9FA9 for ; Sat, 7 Nov 2020 16:06:57 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22bdnLFUltb9 for ; Sat, 7 Nov 2020 16:06:57 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.166.44; helo=mail-io1-f44.google.com; envelope-from=champignoom@gmail.com; receiver= Original-Received: from mail-io1-f44.google.com (mail-io1-f44.google.com [209.85.166.44]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id E64E11A9FA3 for ; Sat, 7 Nov 2020 16:06:56 +0100 (CET) Original-Received: by mail-io1-f44.google.com with SMTP id n12so5192385ioc.2 for ; Sat, 07 Nov 2020 07:06:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=FDJ39fj3796sz3pb9AaoyYnv3vhuyeufLy+L7l1GX7I=; b=Hz2QWWYzD/mYRG345utz16hrk4CHmZoRNQKeg4aaSc3dTtOEhw0UPg5rTB0Gs8KP/d kYrJtFDF8l5+YQbWNalkIR6B2i387+Rd7gQbGg8ATnGA9V5OR7eJWwwHuz/AqY5PI/OD MvjnqTudURwAuLF+BEAOW29383sWasRG1McGBb0kdPxlFmmaJluHYpaXQ1n6Wki3xZMl 4k7UbxPNmbOuV8fy1OAmAenYWuVw5SWgj1ExtCUN2IWdFFBex9fKKGFsfHC8J5KXOAdb DATNutS1A8hjsl+1xzO+UsvelfmV2a3cDyW84alGaIdgXeXCnOATS0YJROY9G7uR0tFh kBmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=FDJ39fj3796sz3pb9AaoyYnv3vhuyeufLy+L7l1GX7I=; b=q3G0WFWeiKWGrCsKMfqKNVZDb8f16DyZjkvzayMHwChMkWLKAmt9W3X8w8aN7loQIm bD60zhh0hPjXN/oNHTcKzHjIfaYNoycXeyagdsLHTP9qb+KDFR0gydkWgWlxIAdXoKTX Gsvv5AxKNM2O3Uf4RXjDlr6fzPzZ2lvPnlWagqIGFlG0k1/74UeSaSlNKebKwOdcM8yh TVavp1NPFBaFk+GcjklmqJmYj9fJ1pyr+eDUGEiN47sJphtK4wHTO3t/QeZaEXy/sK+S yCqzfXj4ilqbaGBQhEUNZMlhj8MrPum6+EPPjRfWWHehtwp5Jn+MbBnIS+27TQ0ME+2x TObQ== X-Gm-Message-State: AOAM531XrjACOgSBwXqgAMvDKq7o59vXQy3Q9ZJS7LVrJnHfTK5Jqnwm 9AcbD3OsoKKd7M6NWxE6RXnUOUQR2CnzUq+5QHJUelQQ2JA= X-Google-Smtp-Source: ABdhPJyHsN//K0yRdLK4kRKKV1kx0/6sb0xITo/86FX2yY96X+c1CTiqfqxTBiWKMkmEkt56boihHMfHBVupSzM1/Kk= X-Received: by 2002:a02:3f59:: with SMTP id c25mr5693080jaf.17.1604761614850; Sat, 07 Nov 2020 07:06:54 -0800 (PST) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:109317 Archived-At: --===============0817549760013511875== Content-Type: multipart/alternative; boundary="00000000000000a09805b385ae1b" --00000000000000a09805b385ae1b Content-Type: text/plain; charset="UTF-8" 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 --00000000000000a09805b385ae1b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Dear List,

I'm using a w= eirdfont that does not have a pre-defined bold variant but still want to em= boldening short extracts of text occasionally, so I've defined

=C2=A0=C2=A0=C2=A0 \defineeffect[thicker][alternative= =3Dboth,rulethickness=3D0.3pt]
=C2=A0=C2=A0=C2=A0 \define\fakebf{= \effect[thicker]}

but in situations like
=

=C2=A0=C2=A0=C2=A0 {\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.

<= /div>
Could anyone help me define a {\bf}-aware version of \fakebf whic= h can render the "4 5 6" in the example above in latinmodern'= s bold?

Thanks in advance.

Best,
Sylvain
--00000000000000a09805b385ae1b-- --===============0817549760013511875== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============0817549760013511875==--