From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: from cgl.ntg.nl (Cgl.ntg.nl [5.39.185.202]) by inbox.vuxu.org (Postfix) with ESMTP id 6E14822370 for ; Mon, 8 Apr 2024 08:25:32 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id BAD4448425E for ; Mon, 8 Apr 2024 08:24:04 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Authentication-Results: cgl.ntg.nl (amavisd-new); dkim=fail (2048-bit key) reason="fail (message has been altered)" header.d=gmail.com Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OAAWEbHeVVOD for ; Mon, 8 Apr 2024 08:24:04 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 3F58B484262 for ; Mon, 8 Apr 2024 08:23:29 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 0C903483E4B for ; Mon, 8 Apr 2024 08:23:01 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HP6rsoRT2y1e for ; Mon, 8 Apr 2024 08:23:00 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.167.47; helo=mail-lf1-f47.google.com; envelope-from=seyal.zavira@gmail.com; receiver= Received: from mail-lf1-f47.google.com (mail-lf1-f47.google.com [209.85.167.47]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id A8B64483E45 for ; Mon, 8 Apr 2024 08:23:00 +0200 (CEST) Received: by mail-lf1-f47.google.com with SMTP id 2adb3069b0e04-516ef30b16eso1214784e87.3 for ; Sun, 07 Apr 2024 23:23:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712557379; x=1713162179; darn=ntg.nl; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=S9/L54Q4fZK8ojz7CcuA/MfWv6hApVclgmK6wq1z+mI=; b=UpjxItwlgdZpiVUZ0oaV4057HmJY3Gmwoze5Jj/ruqeAf4h8Ma+2mu+bvgBRr6FrPP LyMiZH24FYX2qtzHu2L20A1Optl5bGRgOXFOZK+OfG6Rupw/OusksWGz6UnfHUCIGwCl 9dwOWWIqfG3Dd2jE5pYmcEsQ8aEFAlOjYFIHFGbMVoiXSCu2YzreEIZS/EqUOiGIVoD+ hEz3JLhR91XAWgQHwW3f600efrka/ZdnF6ODM/8PPyQyQKWuEh8O/+3gWZOU07hxmgyo pI2XPT1jCMEzGcxLk+CgyPiZLwWoC+1FsId0jEGTiFxq6OJyT8Yg/1ouWzHhod1qjK5e 36Kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712557379; x=1713162179; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=S9/L54Q4fZK8ojz7CcuA/MfWv6hApVclgmK6wq1z+mI=; b=clXGKYRrhM3Ory9URuxRnFAgUdUzk3VZUnwxnC5GZS/IrxIB21L/MKSgqs5jr7Z50Y indFXeflJ/l6v3F2iXX8YZi2/QIEHv1FExCyOUVHr2IoxIz9NJF5O3a81cExb0dn4gj/ gKnAlr7R+1ZXSA4Um5117ZdxqiDLJ0utjrwGocYqp2BAg9nmnc4v9tz/OQvFmD/C78W9 uYvjBRThQcBeWBvkKOfIu92VR0LB4GlWokEoYOK67DWzs2XUw/WkGOMi3fuV/Yi3r9Fz OGyi742YWc7E1oQClfV0tpU2OjIpHssqUhdJiv5QYPhLLMPZhnQFLbnZCp/6z9w4qOPm DJyg== X-Gm-Message-State: AOJu0YziPzmpwPg2fszXBFd1XWf1WNVlTyQPzwx0fM2DNCUkCvnj2wuu cfnU9EBa4XDKLB4zkNYF0ni9u1PJv6gGMBGQzTdhcmURKYE51kwbzKB5UAsq2Cqd9hMqCUEuVU+ Bot59BEcBNO0m86lWVdsrSy4mVFkUQYezNYe4Llrz X-Google-Smtp-Source: AGHT+IEry9NJk4WEXv9SEQNn0Q9oxif9TvN2b3xnjSGSTCsqsh1JF8kw1AWSZtQixb9phgZ6+tRxZzKDUsf5D0OvmRo= X-Received: by 2002:ac2:442d:0:b0:513:ec32:aa7b with SMTP id w13-20020ac2442d000000b00513ec32aa7bmr4344041lfl.63.1712557379256; Sun, 07 Apr 2024 23:22:59 -0700 (PDT) MIME-Version: 1.0 References: <7d6485a1-3c19-47bb-ba55-3ea15abefa2d@xs4all.nl> <877f4113-e733-41e5-a6b6-ac160e6fbe45@xs4all.nl> <4f7d01b6-78b2-4d3e-b67d-0bcadad547c6@fiee.net> In-Reply-To: From: seyal zavira Date: Mon, 8 Apr 2024 02:22:47 -0400 Message-ID: To: mailing list for ConTeXt users Message-ID-Hash: NIKDD5GX227JGK3HPG3LZOEHM3YEGB2G X-Message-ID-Hash: NIKDD5GX227JGK3HPG3LZOEHM3YEGB2G X-MailFrom: seyal.zavira@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Re: Fwd: Re: how to apply gradient color to a piece of text? List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: multipart/mixed; boundary="===============0140004487200720454==" --===============0140004487200720454== Content-Type: multipart/alternative; boundary="0000000000003f8a0706158fd643" --0000000000003f8a0706158fd643 Content-Type: text/plain; charset="UTF-8" thank you Harban and Keith McKay. \startMPpage > picture tt ; tt := lmt_outline [ > kind = "path", > text = "\definedfont[name:texgyrepagellabold*default]foo f o o", > ] ; > > fill > for i within tt : pathpart i && endfor cycle > withshademethod "linear" > withshadedirection down > withshadecolors (red, blue) ; > \stopMPpage > > I'll add this: > > \startMPpage > draw lmt_outline [ > kind = "outline", > text = "\definedfont[name:texgyrepagellabold*default]foo f o o", > ] > withshademethod "linear" > withshadedirection down > withshadecolors (red, blue) > ; > \stopMPpage > > so a single path option (no picture) > > Hans > Thank you so much for the sample examples it would be great to also make text select able in output pdf the third example currently does not work. did you mean you will add this feature for next updates? --0000000000003f8a0706158fd643 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
thank you Harban and Keith McKay.

\startMPpage
=C2=A0 =C2=A0 =C2=A0 picture tt ; tt :=3D lmt_outline [
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 kind =3D "path",
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 text =3D "\definedfont[name:texgyre= pagellabold*default]foo f o o",
=C2=A0 =C2=A0 =C2=A0 ] ;

=C2=A0 =C2=A0 =C2=A0 fill
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0for i within tt : pathpart i && e= ndfor cycle
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0withshademethod "linear"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0withshadedirection down
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0withshadecolors (red, blue) ;
\stopMPpage

I'll add this:

\startMPpage
=C2=A0 =C2=A0 =C2=A0draw lmt_outline [
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0kind =3D "outline",
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0text =3D "\definedfont[name:texgyrep= agellabold*default]foo f o o",
=C2=A0 =C2=A0 =C2=A0]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0withshademethod "linear"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0withshadedirection down
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0withshadecolors (red, blue)
=C2=A0 =C2=A0 =C2=A0;
\stopMPpage

so a single path option (no picture)

Hans

Thank you so much for the sample examples
it would be grea= t to also make text select able in output pdf
the third example currently does not work. did= you mean you will add this feature for next updates?
=C2= =A0
--0000000000003f8a0706158fd643-- --===============0140004487200720454== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________ --===============0140004487200720454==--