Fwd: Re: text width shadow background
-------- Forwarded Message --------
Subject: Re: [NTG-context] Re: text width shadow background
Date: Sat, 8 Jul 2023 11:39:32 +0200
From: Hans Hagen
Please, can you explain why the result of lmt_outline is shifted to the right, if I use it in a macro?
no time now but you can do this instead of the lmt_text: draw lmt_outline [ text = "\bf\strut #1", kind = "fillup", fillcolor = "white", rulethickness = rulesize, ]; (maybe spaces creep in due to loading font files / setups or so) 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 -----------------------------------------------------------------
Am 08.07.23 um 11:39 schrieb Hans Hagen via ntg-context:
On 7/8/2023 8:55 AM, Henning Hraban Ramm wrote:
Please, can you explain why the result of lmt_outline is shifted to the right, if I use it in a macro?
no time now but you can do this instead of the lmt_text:
draw lmt_outline [ text = "\bf\strut #1", kind = "fillup", fillcolor = "white", rulethickness = rulesize, ];
(maybe spaces creep in due to loading font files / setups or so)
Thank you! Yes, this works, and with rulethickness=0 it even looks like I wanted it to. Hraban
participants (2)
-
Hans Hagen
-
Henning Hraban Ramm