Thanks Hraban. This indeed helped. 

It‘s my first reply in this mailing list. Hope I do it right by „replying to 
all“.

> Am 19.11.2023 um 19:37 schrieb Henning Hraban Ramm <te...@fiee.net>:
> 
> Am 19.11.23 um 16:41 schrieb Emanuel Han via ntg-context:
>> I'd like to surround black text with a white 1mm thick border in a Metapost 
>> label. Here is my code, which doesn't draw the border at all and which draws 
>> the text in white instead of black (I'm using mkiv and mkxl version 
>> 2023.09.26 18:19 on osx-arm6):
>> |
>> |beginfig(1);
>>     % Define the text and colors
>>     string label_text;
>>     label_text = "Your Text";
>>     color text_color, border_color;
>>     text_color = black;
>>     border_color = white;
>>     % Draw the label with the specified colors
>>     label(textext(label_text) scaled 1.0, origin) withcolor text_color 
>> withpen pencircle scaled 1mm withcolor border_color;
>> endfig;|
> 
> Have a look into luametafun.pdf (p.10) if lmt_outline does what you want.
> 
> Hraban
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to