Correct that same needed for runtime as IDE. The fontawesome family is actually hard coded in the icon library LCB file. On initialization it loads it from the code which is why anything custom is not persistent.
Due to the way the library works though, you could create your own family with just the custom icons that you need to add. As long as the name of the icon is unique, it should be found and loaded when used. There is just no guarantee of the search order if the name is in multiple families that are not selected as current. This would net a smaller array that you could store and restore. Brian Milby br...@milby7.com > On Oct 17, 2024, at 9:49 AM, Klaus major-k via use-livecode > <use-livecode@lists.runrev.com> wrote: > > Hi Brian, > >> Am 17.10.2024 um 15:41 schrieb Brian Milby via use-livecode >> <use-livecode@lists.runrev.com>: >> >> In short, yes your will need to add icons each launch of the IDE / app. >> >> I was going to suggest looking at SvgIconTool after your first post but >> realized I only moved entire families of icons and did not use the >> individual icon function. >> >> One way would be to create a family of any custom icons (or just add to an >> existing) and then export the family. Restoring the family on launch would >> get your icons back. The export is an array that you can encode/save then >> reverse process to restore. >> >> Hope this at least gives you an idea. > > aha, thanks! > > And the same process for/in a runtime neccessary? > Exporting the "fontawesome" lib in the IDE and import it every time the > runtime starts? > > I was hoping that the IDE of LC itself would take care of that somehow... ;-) > >> Brian Milby >> br...@milby7.com >> >>>> On Oct 17, 2024, at 9:12 AM, Klaus major-k via use-livecode >>>> <use-livecode@lists.runrev.com> wrote: >>> >>> Hi all, >>> >>> yesterday I successfully added a custom SVG icon via: >>> ... >>> get addicon("fontawesome/metronom",tPath,0) >>> ... >>> Today I opened the stack where i used that icon and it is gone? >>> Do I need to save the icon/library somehow? >>> Or what can/need I do to have this icon "stick" in the library and >>> appear again in my stack permanently? > > Best > > Klaus > > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > kl...@major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode