Is there any method I can export the last applied fonts into a text file? I often switch fonts and like to go back to old ones. But usually forget which I used before. Say I can find some method which keeps writing to text file each time a font in applied. Like if I use Poppins, Roboto, Atma, Outfit and again Poppins, any chance I can find them in that order?
You should be able to paste the following code into the 'Python Code' box and click apply.
font_family_elements = svg_root.xpath('//svg:*[contains(@style,"font-family")]') font_family_list = [x.style.get('font-family') for x in font_family_elements] font_family_no_dupe_list = (list(set(font_family_list))) [inkex.errormsg(x.replace('"','')) for x in font_family_no_dupe_list]
Is there any method I can export the last applied fonts into a text file? I often switch fonts and like to go back to old ones. But usually forget which I used before. Say I can find some method which keeps writing to text file each time a font in applied. Like if I use Poppins, Roboto, Atma, Outfit and again Poppins, any chance I can find them in that order?
In the Text and Font Panel is a Collections sub menu which can list "Document Fonts" and "Recently Used Fonts" etc. Perhaps that can help.
If you have the Simple Inkscape Scripting extension installed
You should be able to paste the following code into the 'Python Code' box and click apply.
font_family_elements = svg_root.xpath('//svg:*[contains(@style,"font-family")]')
font_family_list = [x.style.get('font-family') for x in font_family_elements]
font_family_no_dupe_list = (list(set(font_family_list)))
[inkex.errormsg(x.replace('"','')) for x in font_family_no_dupe_list]
Thanks @Polygon @inklinea :)