Page 1 of 1

Richmond's Delusional Fever

Posted: Tue Nov 08, 2022 12:05 pm
by richmond62
c.f. https://forums.livecode.com/viewtopic.php?f=5&t=37435
Richmond has a bit of the sort of delusional fever I do. EVERYTHING is possible in LC, and none terribly onerous.
-
Screen Shot 2022-11-08 at 1.02.08 PM.png
-
This imports a series of SVG widgets from this file:

https://github.com/NucleoApp/google-mat ... icons.json

BUT . . . so far . . . cannot manage the fill paths . . .

Re: Richmond's Delusional Fever

Posted: Tue Nov 08, 2022 8:46 pm
by bn
richmond62 wrote:
Tue Nov 08, 2022 12:05 pm
c.f. https://forums.livecode.com/viewtopic.php?f=5&t=37435
Richmond has a bit of the sort of delusional fever I do. EVERYTHING is possible in LC, and none terribly onerous.
-
Screen Shot 2022-11-08 at 1.02.08 PM.png
-
This imports a series of SVG widgets from this file:

https://github.com/NucleoApp/google-mat ... icons.json

BUT . . . so far . . . cannot manage the fill paths . . .
The SVG widget can not handle color. That said here is a version of your stack that just concatenates paths and the result depends on wether the icon uses color to differentiate elements. Some just are black.

The file you linked to has over 4200 icons.
In my stack I limit this to 1200.
As far as I can see the stack does what it is supposed to do as far as extracting paths. But not guarantee.

Kind regards
Bernd


JSON - SVG_2.livecode.zip
(2.8 KiB) Downloaded 102 times

Re: Richmond's Delusional Fever

Posted: Wed Nov 09, 2022 4:59 pm
by richmond62
Unfortunately, when one imports an SVG directly into LiveCode
one cannot 'get at' its points and so forth:
-
SShot 2022-11-09 at 17.57.56.png
-
And opening the same image in Inkscape is not really much help at all as it appears
as a composite:
-
SShot 2022-11-09 at 18.01.06.png
SShot 2022-11-09 at 18.01.06.png (13.45 KiB) Viewed 1878 times

Re: Richmond's Delusional Fever

Posted: Wed Nov 09, 2022 5:27 pm
by richmond62
Unfortunately, when I stated I admired Toussaint Louverture Alejandro took extreme umbrage
and cut off completely, including deleting all his very clever stacks for coping with SVG files which might
have been leveraged for dealing with the type of JSON file containing SVG font definitions.