From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/106991 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Fabrice Couvreur Newsgroups: gmane.comp.tex.context Subject: Text size with lmt_text [ ] Date: Thu, 23 Apr 2020 00:02:16 +0200 Message-ID: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0856009390067240208==" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="25285"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Apr 23 00:03:18 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 1jRNSf-0006UR-Fu for gctc-ntg-context-518@m.gmane-mx.org; Thu, 23 Apr 2020 00:03:17 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2EBFC183551; Thu, 23 Apr 2020 00:02:54 +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 GrecNISt--NW; Thu, 23 Apr 2020 00:02:48 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 182A4183546; Thu, 23 Apr 2020 00:02:48 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id BFA4D183546 for ; Thu, 23 Apr 2020 00:02:47 +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 sUl_7FOotZ_5 for ; Thu, 23 Apr 2020 00:02:43 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.128.54; helo=mail-wm1-f54.google.com; envelope-from=fabrice1.couvreur@gmail.com; receiver= Original-Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) (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 073AD183531 for ; Thu, 23 Apr 2020 00:02:42 +0200 (CEST) Original-Received: by mail-wm1-f54.google.com with SMTP id u127so4386154wmg.1 for ; Wed, 22 Apr 2020 15:02:42 -0700 (PDT) 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=wBsGaBcovmNW1+yU3Zfh8w1Bg2xEsdt5B5QjODfR+GQ=; b=cxcjA0B/Od5UbvNyia2mZao9ITJF1gFt0gd/5fzN+yIiWx4T4MvruuD6a1rULIAiBr Qb+u49yk9ibHAZRS+TmGI+MpkPWvlGxHJFxYPAVxAE3lyTioN/5/IlS8SG7BvfO/+pgK lJevJHBnvxDB1tnqVAJxacIVtDfNrzJBgteUOL/WkhjLDOT62uUF8NxaSWLnv0opWarJ lkx7st0COZA17ZoPJeuGs/+R4PODCO9LpwTp/Ght2LfEGMdO7TnYmu7l8hEVIOZojBj0 XPYTBSmo8DGEZqffoSMYZLoF/x++5ueJ+l4kLdyypm4X4PrClRyg1ngIo6qGGkUfcrz3 gs6w== 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=wBsGaBcovmNW1+yU3Zfh8w1Bg2xEsdt5B5QjODfR+GQ=; b=teoH/6hVGmLNtAidVqY7iI398j6D5MFu1Z3SwVIk91aK/jg9VMPO6/dYmGQNt0ArE1 ayQ9b7OLWIZA8mVeWjnqzRpXuNzgauRvU2ojIwmRiI3pYoYlQyBbKmJnwpgjMzn4+W/R 8+KsOc+KP6UhNPYRCmFMQwrzOb8h4tVLwcP1QQDK1BaJx9UcMUKBdnYx4pMzIWZn7i4L XIkdrxoCIePVClOfsfQNvaUnWNP8wpjSexOhoB4InwuidgykH9e/238+VZFMCvD5dNLQ WDEV06YLOoo77CedQ+gpLqOB6NS/722EPoGE9TrBE7bcbRvXsv/McHFabUJYJhTxa6VD 5wpg== X-Gm-Message-State: AGi0PuY3pKZkkDFQE3IEERRslk2m/RS5cM+koOLSmDmLnk/sB+qu/i2r kicwGl8+5RlvirCVzA5GXEjJgpedgVFpczjPV3w7mJRr X-Google-Smtp-Source: APiQypIJzP4d3XOgezxi3gd07TtueaYwWj581TS3hZJ/aT20PdWjRcv8ZiwBheLuxWvL0hbaiD7YGuyHbDQViXPyiUg= X-Received: by 2002:a1c:e906:: with SMTP id q6mr608145wmc.62.1587592962339; Wed, 22 Apr 2020 15:02:42 -0700 (PDT) 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:106991 Archived-At: --===============0856009390067240208== Content-Type: multipart/alternative; boundary="00000000000091795005a3e84aec" --00000000000091795005a3e84aec Content-Type: text/plain; charset="UTF-8" Hi, As an extension of this discussion https://mail.google.com/mail/u/0/#inbox/QgrcJHsNlRfcqCPHBTrnSFbJKjGPwjbJnLL?compose=CllgCJZWxJlpNNfzrPpFwWRqsFfdXqmnxkCwWVjvXKQJBwQmBfZGvchjMbsJDKXLtKldJtpWVqq (thanks to Wolfgang), I used the MetaFun interface with lmt_text [] ; I managed to pass the text and color parameters while I did not succeed using textext (). My problem is the size of the letters which is too small. Thank you. Fabrice \usecolors[xwi] \definecolor [prune] [r=1.29,g=.20,b=.83] \starttext \startMPcode vardef card(expr s, c) = image( draw fullsquare xyscaled (2cm,4cm); draw fullsquare xyscaled (1.8cm,3.8cm) withcolor \MPcolor{violet}; draw lmt_text[ text = s, color = c, style = "bold", ] ) enddef; draw card("A",red) rotatedaround((1cm,2cm),5); draw card("L",green) rotatedaround((1cm,2cm),-5) shifted(3.5cm,0); draw card("E",blue) rotatedaround((1cm,2cm),5) shifted(6cm,0); draw card("A","prune") rotatedaround((1cm,2cm),-5) shifted(9cm,0); \stopMPcode \stoptext --00000000000091795005a3e84aec Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,
As an extension of = this discussion=C2=A0https://mail.google.com/mail/u= /0/#inbox/QgrcJHsNlRfcqCPHBTrnSFbJKjGPwjbJnLL?compose=3DCllgCJZWxJlpNNfzrPp= FwWRqsFfdXqmnxkCwWVjvXKQJBwQmBfZGvchjMbsJDKXLtKldJtpWVqq (thanks to Wol= fgang), I used the MetaFun interface with lmt_text [] ; I managed to pass the text and color parameters while I did not succe= ed using textext (). My problem is the size of the = letters which is too small.
Thank you.Fabrice

=
\usecolors[xwi]

\definecolor [prune] [r=3D1.29,g=3D.20,b=3D.83= ]

\starttext

\startMPcode
=C2=A0
=C2=A0 vardef card(ex= pr s, c) =3D image(
=C2=A0 =C2=A0 =C2=A0 =C2=A0draw fullsquare xyscaled = (2cm,4cm);
=C2=A0 =C2=A0 =C2=A0 =C2=A0draw fullsquare xyscaled (1.8cm,3.= 8cm) withcolor \MPcolor{violet};
=C2=A0 =C2=A0 =C2=A0 =C2=A0draw lmt_tex= t[
=C2=A0 =C2=A0 =C2=A0 =C2=A0text =C2=A0=3D s,
=C2=A0 =C2=A0 =C2=A0 = =C2=A0color =3D c,
=C2=A0 =C2=A0 =C2=A0 =C2=A0style =3D "bold"= ,
=C2=A0 =C2=A0 =C2=A0 =C2=A0]
=C2=A0 =C2=A0 =C2=A0 =C2=A0)
=C2= =A0 enddef;

=C2=A0 draw card("A",red) rotatedaround((1cm,2= cm),5); =C2=A0
=C2=A0 draw card("L",green) rotatedaround((1cm= ,2cm),-5) shifted(3.5cm,0);
=C2=A0 draw card("E",blue) rotated= around((1cm,2cm),5) shifted(6cm,0);
=C2=A0 draw card("A","= ;prune") rotatedaround((1cm,2cm),-5) shifted(9cm,0);
=C2=A0
\s= topMPcode

\stoptext
--00000000000091795005a3e84aec-- --===============0856009390067240208== 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== --===============0856009390067240208==--