Re: pic doesn't center when i use a macro

2021-11-04 Thread Marc Chantreux
hello Holger, > box width w height margin with .nw at last box .nw dashed > label_for(layer) at last box.c I really don't know why but yes: it works. Now i have a workaround in my hand. On the other hand: the more i saw the Tadziu's code, the more I like it for its clean separation betwe

Should mounting a font be able to escape a font path directory?

2021-11-04 Thread G. Branden Robinson
Hi all, A change I made to add validation of the "name" directive in font description files[1] inadvertently broke something Dave Kemper has been doing for a while[2]. It also turns out to have probably foreclosed unintentional directory traversal[3]. (The font file is still _opened_, but it is

Re: pic doesn't center when i use a macro

2021-11-04 Thread Holger Herrlich
I did three things: 1) wrapped the what_should_become_a_string inside a custom object []. (See the braces of the macro.) This makes the 'if' statements (and more) possible. 2) I placed those object directly, as you can do with any graphic object (incl. strings) in pic. Annotation labels are way

Re: pic doesn't center when i use a macro

2021-11-04 Thread Marc Chantreux
> 1) wrapped the what_should_become_a_string inside a custom object []. > (See the braces of the macro.) This makes the 'if' statements (and > more) possible. > 2) I placed those object directly, as you can do with any graphic object > (incl. strings) in pic. Annotation labels are way limited. Whe