Is there a guide for the SVG to path converter?
-
I can't seem to find much info in the documentation.
I did find this on David Healey's Youtube but it using a method with JUCE instead of the one in HISE: https://www.youtube.com/watch?v=OHqAijNUabU&t=65s
I am pretty sure there is a newer video, but I don't find it when searching either "svg" or "path" when searching the channel.
Anyway, I am looking to convert a lot of glyphs in SVG format to path as I need to use some of them for the
ScriptPanel.setMouseCursor(var pathIcon, var colour, var hitPoint)
What are these different path options?
Should I be using "HiseScript Path number array" format if I am just using the paths in HISE? -
@VirtualVirgin said in Is there a guide for the SVG to path converter?:
What are these different path options?
Here's a list of all the options - https://forum.hise.audio/topic/11041/different-os-cursors/4?_=1750753273844
They are predefined and dependent on the OS.
Would be useful to have this in the documentation
-
@d-healey Oop! Sorry I forgot to add this image:
Under the question "What are these different path options?".
They are the path options for the SVG to path converter. -
@VirtualVirgin Ah I see, that's unrelated to the cursor stuff.
Those are the different ways that an SVG can be represented in HISE. I always use Base64 Path. I'm not sure why anyone would use the others but I'm sure they have their purposes.
Btw if you're converting svg icons, like those you'll find at Font Awesome, you might be better off using an icon font instead, @clevername27 put me on to them and I use them whenever I can now.
-
@d-healey Thanks, I think the
ScriptPanel.setMouseCursor(var pathIcon, var colour, var hitPoint)
only accepts paths though.
That is the only reason I am converting the SVG glyphs to paths.
-
This post is deleted! -
@d-healey They are now in the docs: https://docs.hise.audio/scripting/scripting-api/scriptpanel/index.html#setmousecursor