From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/112402 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Marcus Vinicius Mesquita via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: Problem with colored font Date: Sat, 7 Aug 2021 10:23:41 -0300 Message-ID: References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4792755676527374646==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33377"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Marcus Vinicius Mesquita , mailing list for ConTeXt users To: Hans Hagen Original-X-From: ntg-context-bounces@ntg.nl Sat Aug 07 15:24:27 2021 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 1mCMJO-0008PJ-UK for gctc-ntg-context-518@m.gmane-mx.org; Sat, 07 Aug 2021 15:24:26 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 5E4B228649E; Sat, 7 Aug 2021 15:24:01 +0200 (CEST) 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 bilvLgTZdb7R; Sat, 7 Aug 2021 15:23:59 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B896F286523; Sat, 7 Aug 2021 15:23:59 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id D13C828640B for ; Sat, 7 Aug 2021 15:23:57 +0200 (CEST) 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 bgk_-3asFlZz for ; Sat, 7 Aug 2021 15:23:56 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.214.170; helo=mail-pl1-f170.google.com; envelope-from=marcusvinicius.mesquita@gmail.com; receiver= Original-Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) (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 2B8ED2863D1 for ; Sat, 7 Aug 2021 15:23:55 +0200 (CEST) Original-Received: by mail-pl1-f170.google.com with SMTP id a20so11110329plm.0 for ; Sat, 07 Aug 2021 06:23:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=v84U4RHFPazXPcd8KSSkdzkWg90fSpXhAdpWXzeqzTk=; b=VMBSUYMd4d7VrK3tRtomboehmRyLUOl+xgmsSDyjPWnPca2L4cOu1hBW45yV825a23 M3CWMxqO+t+nuJzWX7/jtweC+NbdY0TFaguxxthRtCGhIbHzD6tEApqxQ6N7T4hQ6W3a aQRdRejZ+ITUWzVAvHtWRDsxT/4jBBLlx7Hv/dzs56jxs2mfW2EY4RS1/ilPPZLeEY79 o52Bq0ER3WEAWMIrmvrJKNJZLqYn5gELRcuXJXqRHeR9juL10brOKdA/MhrQ2j9m4+go fY2opv0+AqLZUSUdmHJ8+jOGrXaudbkdyZVAix3ZFpfEvN37dd7TGYyC2mefGhV8wWd3 k3Cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=v84U4RHFPazXPcd8KSSkdzkWg90fSpXhAdpWXzeqzTk=; b=QA3vN6SIgN5C7ze92lQwp7ZgmU0tO5u1bB1zTi9/oWgL5KJBgOHhwP/4YiDRfB4aFT RcZTh+PmZ6TAfQS3EynTemIsPdGNffrAJvoW+sZSD6MawcOIbF3BV1i6GKRobbimaH5W JZfRBNDdhvrYIlBW6aBfRANX3iLk71WBVB/kYrzlNQJtikeI1MamYU3Qy5p1NCaHeLEC wHUCzdoBh7jY65fTcJUBOdKjulqjcmnoITKhpvbr4flLhAb3vNzThtKqSgQHZ99ZWL5s SZAE3UD4klaQGah+ZP/ECo1skvMxEz3I/fQeKrZKLtjnmj+EJ7RcIuPD/G4nmJ7Vtumq yDZw== X-Gm-Message-State: AOAM5329fkzE3fO6JU206++L1KIfQIG1G0XS0wRf91bZMQsDA2Ootlah lNVwF12KOYhRgE9TGNhYOIjVmpIB4IkJRKkPaHA= X-Google-Smtp-Source: ABdhPJxGK0Ka/eo9gHRBoXRWwct0uKE9kg3dtyWMTH8w9jP3z0c+oliyZLFNEIirM46QZk+wGRfxgzY9Ru8H5TDvuxE= X-Received: by 2002:a05:6a00:1693:b029:333:da3a:8c86 with SMTP id k19-20020a056a001693b0290333da3a8c86mr10045862pfc.41.1628342633842; Sat, 07 Aug 2021 06:23:53 -0700 (PDT) In-Reply-To: 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:112402 Archived-At: --===============4792755676527374646== Content-Type: multipart/alternative; boundary="000000000000434ad805c8f81093" --000000000000434ad805c8f81093 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thank you, Hans. I'll wait then for the next upload. Have a nice weekend. Marcus Vinicius On Sat, Aug 7, 2021 at 10:14 AM Hans Hagen wrote: > On 8/7/2021 1:09 PM, Marcus Vinicius Mesquita via ntg-context wrote: > > Dear list, > > > > I'm trying to use the BabelStone Flags font, with colored flags of many > > countries,available freely under the SIL Open Font License 1.1 at: > > https://babelstone.co.uk/Fonts/Download/BabelStoneFlagsDual.ttf > > > > > > In the MWE below, there is a spurious =E2=80=9Cat=E2=80=9D in the first= time that the > > definition of the symbol for the Brazilian flag is used, but no problem > > when the definition for the flag of Portugal is used or even when the > > symbol for the Brazilian flag is used a second time. How to correct thi= s > > behavior? > > > > MWE: > > > > \definefontfeature[colored][colr=3Dyes] > > \definefontsynonym[flags][file:BabelStoneFlagsDual.ttf*colored at 7pt] > > \definesymbol[BR][\getglyphdirect{flags}{\char"F0023}] > > \definesymbol[PT][\getglyphdirect{flags}{\char"F00A1}] > > > > \starttext > > > > Brasil \symbol[BR] > > > > Portugal \symbol[PT] > > > > Brasil \symbol[BR] > > > > \stoptext > the fontsize is automatic so the "at .." interferes > > here is an alternative (call by name): > > \definesymbol[BR][{\getnamedglyphdirect{flags}{br}}] > \definesymbol[PT][{\getnamedglyphdirect{flags}{pt}}] > > now, because you want it smaller i'll add this > > \definesymbol[BR][{\getnamedglyphdirectscaled{.7}{flags}{br}}] > \definesymbol[PT][{\getnamedglyphdirectscaled{.7}{flags}{pt}}] > > in the next upload > > Hans > > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl > ----------------------------------------------------------------- > --=20 Todas as coisas fatigam o corpo, salvo a m=C3=BAsica, que n=C3=A3o fatiga n= em o corpo nem seus membros, por ser descanso da alma, primavera do cora=C3=A7=C3=A3o,= distra=C3=A7=C3=A3o do aflito, entretenimento do solit=C3=A1rio, e vi=C3=A1tico do viajante. Kunn=C3=A2sh al-H=C3=A2'ik (Cancioneiro de al-H=C3=A2'ik) --000000000000434ad805c8f81093 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thank you, Hans. I'll wait then for the next upload.
Have a nice weekend.

Marcus Vinicius


On Sat, Aug 7, 2021 at 10:14 AM Hans Hagen <j.hagen@xs4all.nl> wrote:
On 8/7/2021 1:09 PM, Marcus Vinic= ius Mesquita via ntg-context wrote:
> Dear list,
>
> I'm trying to use the BabelStone Flags font,=C2=A0with colored fla= gs of many
> countries,available freely under the SIL Open Font License 1.1 at:
> https://babelstone.co.uk/Fonts/D= ownload/BabelStoneFlagsDual.ttf
> <https://babelstone.co.uk/Fon= ts/Download/BabelStoneFlagsDual.ttf>
>
> In the MWE below, there is a spurious =E2=80=9Cat=E2=80=9D in the firs= t time that the
> definition of the symbol for the Brazilian flag is used, but no proble= m
> when the definition for the flag of Portugal is used or even when the =
> symbol for the Brazilian flag is used a second time. How to correct th= is
> behavior?
>
> MWE:
>
> \definefontfeature[colored][colr=3Dyes]
> \definefontsynonym[flags][file:BabelStoneFlagsDual.ttf*colored at 7pt]=
> \definesymbol[BR][\getglyphdirect{flags}{\char"F0023}]
> \definesymbol[PT][\getglyphdirect{flags}{\char"F00A1}]
>
> \starttext
>
> Brasil \symbol[BR]
>
> Portugal \symbol[PT]
>
> Brasil \symbol[BR]
>
> \stoptext
the fontsize is automatic so the "at .." interferes

here is an alternative (call by name):

=C2=A0 =C2=A0\definesymbol[BR][{\getnamedglyphdirect{flags}{br}}]
=C2=A0 =C2=A0\definesymbol[PT][{\getnamedglyphdirect{flags}{pt}}]

now, because you want it smaller i'll add this

=C2=A0 =C2=A0\definesymbol[BR][{\getnamedglyphdirectscaled{.7}{flags}{br}}]=
=C2=A0 =C2=A0\definesymbol[PT][{\getnamedglyphdirectscaled{.7}{flags}{pt}}]=

in the next upload

Hans

-----------------------------------------------------------------
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0Hans Hagen | PRAGMA ADE
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Ridderstraat 27 | 80= 61 GH Hasselt | The Netherlands
=C2=A0 =C2=A0 =C2=A0 =C2=A0 tel: 038 477 53 69 | www.pragma-ade.nl | www.= pragma-pod.nl
-----------------------------------------------------------------


--
Todas as coisas fatigam o corpo, salvo a m=C3=BAsica, = que n=C3=A3o fatiga nem o corpo nem seus membros, por ser descanso da alma,= primavera do cora=C3=A7=C3=A3o, distra=C3=A7=C3=A3o do aflito, entretenime= nto do solit=C3=A1rio, e vi=C3=A1tico do viajante.

Kunn=C3=A2sh al-H=C3=A2'ik (Cancioneiro de al-H=C3=A2'ik)
--000000000000434ad805c8f81093-- --===============4792755676527374646== 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== --===============4792755676527374646==--