Dear list, I have the fowllowing sample: \starttext \startmakeup[page][align=middle] \startMPcode{doublefun} draw lmt_followtext [ text = "\feature[+][smallcaps]\bf\samplefile{zapf} ", path = ((0,0)..(3,3.25)..(9,-3.25)..(12,0)..(9,3.25)..(3,-3.25)..(0,0)), autoscaleup = "max", reverse=true, ] xsized .75TextWidth ; \stopMPcode \startMPcode{doublefun} draw lmt_followtext [ text = "\feature[+][smallcaps]\bf\samplefile{zapf} ", path = ((0,0)..(3,3.25)..(9,-3.25)..(12,0)..(9,3.25)..(3,-3.25)..cycle), autoscaleup = "max", reverse=true, ] xsized .75TextWidth ; \stopMPcode \stopmakeup \stoptext I’m afraid I don’t understand how to close the path. Cycle has problems with part of the text and returning to the start seems to distort the path itself. Which is the right way to close the path or what am I missing? Many thanks for your help, Pablo -- http://www.ousia.tk
On 2/20/21 12:59 PM, Pablo Rodriguez wrote:
[...] Which is the right way to close the path or what am I missing?
I see that cycle is the way to go: \starttext \startmakeup[page][align=middle] \dontleavehmode \startMPcode{doublefun} path p ; p := (0,0)..(3,3.5)..(9,-3.5)..(12,0)..(9,3.5)..(3,-3.5)..(0,0); draw p xsized .9TextWidth withcolor .625red; path p ; p := (0,0)..(3,3.5)..(9,-3.5)..(12,0)..(9,3.5)..(3,-3.5)..cycle; draw p xsized .9TextWidth ; \stopMPcode \stopmakeup \stoptext Closing without cycle gives an asymetrical path. I’d rather say it is wrong, but this is all Greek to me. On the other side, I’m afraid that cycle has problems with lmt_followtext. Could anyone confirm this? Many thanks for your help, Pablo -- http://www.ousia.tk
On 2/20/2021 1:19 PM, Pablo Rodriguez wrote:
On 2/20/21 12:59 PM, Pablo Rodriguez wrote:
[...] Which is the right way to close the path or what am I missing?
control points that determine the way curves are made
I see that cycle is the way to go:
indeed
\starttext \startmakeup[page][align=middle] \dontleavehmode \startMPcode{doublefun} path p ; p := (0,0)..(3,3.5)..(9,-3.5)..(12,0)..(9,3.5)..(3,-3.5)..(0,0); draw p xsized .9TextWidth withcolor .625red; path p ; p := (0,0)..(3,3.5)..(9,-3.5)..(12,0)..(9,3.5)..(3,-3.5)..cycle; draw p xsized .9TextWidth ; \stopMPcode \stopmakeup \stoptext
Closing without cycle gives an asymetrical path. I’d rather say it is wrong, but this is all Greek to me.
On the other side, I’m afraid that cycle has problems with lmt_followtext. could be, i'm playing a bit with the converter and introduced a issue but that will be fixed in the next upload
(i want the metafun manual to run ok in lmtx, also performance wise, read: faster) 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 -----------------------------------------------------------------
On 2/20/21 1:28 PM, Hans Hagen wrote:
On 2/20/2021 1:19 PM, Pablo Rodriguez wrote:
[...] On the other side, I’m afraid that cycle has problems with lmt_followtext. could be, i'm playing a bit with the converter and introduced a issue but that will be fixed in the next upload Many thanks for your new upload, Hans.
Another minor detail: \starttext \startTEXpage \startMPcode{doublefun} draw lmt_followtext [ text = "\feature[+][smallcaps]\bf\samplefile{zapf} ", path = ((0,0)..(3,3)..(9,-3)..(12,0)..(9,3)..(3,-3)..cycle), autoscaleup = "max", %~ reverse=true, ] xsized .75TextWidth ; \stopMPcode \stopTEXpage \stoptext One circle is bigger than the other one (reverse=true switches them). I guess this might be solved with struts, but I don’t know how to apply them there. Many thanks for your help, Pablo -- http://www.ousia.tk
On 2/20/2021 7:04 PM, Pablo Rodriguez wrote:
On 2/20/21 1:28 PM, Hans Hagen wrote:
On 2/20/2021 1:19 PM, Pablo Rodriguez wrote:
[...] On the other side, I’m afraid that cycle has problems with lmt_followtext. could be, i'm playing a bit with the converter and introduced a issue but that will be fixed in the next upload Many thanks for your new upload, Hans.
Another minor detail:
\starttext \startTEXpage \startMPcode{doublefun} draw lmt_followtext [ text = "\feature[+][smallcaps]\bf\samplefile{zapf} ", path = ((0,0)..(3,3)..(9,-3)..(12,0)..(9,3)..(3,-3)..cycle), autoscaleup = "max", %~ reverse=true, ] xsized .75TextWidth ; \stopMPcode \stopTEXpage \stoptext
One circle is bigger than the other one (reverse=true switches them).
I guess this might be solved with struts, but I don’t know how to apply them there. You get what you ask for: different text ends up at the left or right edge depending on the reverse.
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 -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Pablo Rodriguez