<div dir="ltr">Got it, in a few lines of code I can fully convert path data in that compact standard format to a list of PathCommands, and then I can just compose with a transformation for a given height and position and draw it. Works great!<div>Juan, perhaps we should extend VectorEngine>>pathSequence: to support all commands? Or your idea is to convert other commands to this reduced subset (like converting arcs to a list of bezier curves I guess, etc)?</div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Wed, Jun 24, 2026 at 2:27 PM Luciano Notarfrancesco <<a href="mailto:luchiano@gmail.com">luchiano@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">I've been making my own buttons, knobs, pulldown lists, etc... all sorts of widgets. Some of them draw text, like the label on a button, and I'd like to add optional monochromatic icons. For the sake of simplicity, I'd like to just set the icon as path data, something like this:<div>    M784-120 532-372q-30 24-69 38t-83 14q-109 0-184.5-75.5T120-580q0-109 75.5-184.5T380-840q109 0 184.5 75.5T640-580q0 44-14 83t-38 69l252 252-56 56ZM380-400q75 0 127.5-52.5T560-580q0-75-52.5-127.5T380-760q-75 0-127.5 52.5T200-580q0 75 52.5 127.5T380-400Z<br></div><div><br></div><div><div>I got this from <a href="https://fonts.google.com/icons" target="_blank">https://fonts.google.com/icons</a> , there you can search the icons you like and click on the image of the icon to copy this path data to the clipboard.</div><br></div><div>Then, say it is the icon for a button, the button morph can draw it scaled depending on the morph height, or on the line spacing of the font used for the label. Seems the simplest solution to me, and it would be just one or two lines of path data when creating the button.</div><div><br></div><div>My question is, how do I represent this in Cuis? There is PathCommand and subclasses, but it's not used anywhere in the base image or packages, I didn't find any examples. There's also VectorCanvas>>pathSequence: in a different format, more limited (only supports commands M L C Q, I think).</div><div><br></div><div>What's the correct path for this? What do you suggest?</div><div><br></div><div>Thanks,</div><div>Luciano</div><div><br></div></div>
</blockquote></div>