Just for people to get the discussion
this is a nice effort. I’d appreciate it even more if you somehow manage to preview the fonts, for example writing the name of the font in the font itself. Or writing that jumpy fox sentence in that font somewhere, maybe in the tooltips? I won’t mind when this needs what normally would be 2 lines in the font selection window, but I’d love to have a preview I can actually see. At the moment the internal blender font preview is one or two more clicks than with this addon, but then you can use big preview and see it all and it works and is again a better preview than with this addon (which has no preview at all). I’d move the “font-selection” option above the “custom properties” by default (it is possible to customly do this) just to make scrolling the font-object-date panel with the mousewheel easier and to make it easier to expand the size of that font list window. Actually a bigger font selection window from start up would be nice. I have a lot of fonts in my fonts folder! And after thinking about it, I’d move the “font-selection” ABOVE the normal “Font” option, as you install the addon exactly to do replace and better the functionality of this. Also to not clog up blend files and system memory it would be cool when the addon could be active in prefs but still blender doesn’t load any font at all unless you are actually adding a font object.There the check for new fonts or refresh would be even better. my 2cents. Keep it up
Hi thanks for the feedbacks ! About the font preview, as far as i know, there is no simple way to do it in python. a solution would be to have a thumbnail generated for each font and viewable as a still image in the font selection panel (as asset managers addons does, with thumbnail preview). The downside of this method are the use of external cli utility like image magic to generate 2d thumbnails, so extra setup, and the longer processing time to refresh fonts. And the Blender UI for thes thumbnails displaying is not the fastest out there, so i’m not sure it would be this useful in the end. I tried to wrap my head around this problem, but this solution seems a little overkill to me (at least for my use), i prefer as a user have a way to quickly preview my fonts in real situation (3d viewport) than seeing them used in a dummy sentence disconnected to my environment/world/motion graphics. But you’re not the only one asking for that, and it’s on my suggestion list, i’ll see if i have some extra time how to make this the better possible way ! Yeah i totally get what you’re saying about the panel default position, unfortunately, i didn’t find any way to do this through python, but any user can position it manually, and save his startup file with it in right place ! And about the memory usage, did you experience any trouble ? the loading of font list is a simple read and get of json file, it shouldn’t impact at all the way blender start, and the memory used to store fonts is quite small. I could make blender look for loaded (or not) list of font every time you have a font as active object or selected, but i find this more clunky and i would have to check every scene change to do it. A simple list of path loaded on every startup seems more fluent to me. But if you have any issue with it tell me ! I could be wrong about that ! Thanks again for feedbacks ! if you want to discuss this more, it could be better to do it on BA page : https://blenderartists.org/t/font-selector-blender-2-8-font-management I think it’s a better place to gather opinions and have more person reacting to a statement cheers !