Font Selector - dynamic Font management inside viewport and sequencer #63962
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
5 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#63962
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hello,
Here's an update of the previous submitting of Font Selector (https://developer.blender.org/T54436). The addon has been updated for blender 2.8
I would like to submit a simple addon i wrote to help with font system in blender. Instead of browsing it through file browser, it imports "on-the-fly" fonts through a previously created list. It allows you to dynamically see the font applied to a text object by selecting it. It is basically the way other graphic applications (such as after effect) works which i try to recreate !
The fonts are refreshed with a modal operator, creating the list as a txt external file.
You can select your font folders from user prefs and save them also as external files.
The source folder of each font is also kept in the list, you can use it to filter the fonts
There is also a favorite system to easily find the font that you use frequently. These favorites are exportable as a zip file through the file/export menu. Additionally, you can toggle the fake user for fonts when imported, this allows to create a kind of "per-project favorites".
The addon works this way :
On startup, it looks for changes in font folders (if this is setup in the preferences).
If there is any, a modal refresh starts, then the resulting list is loaded.
When the user click on a font in the fontselector panel, an update function import the font in a font datablock and apply it to the selected font object.
Pretty simple, but works quite all right
The same logic is also applied to VSE text strip
Here is an overview video of it :
https://youtu.be/EnGb2wVCDCA
Here the link to the github :
https://github.com/samytichadou/FontSelector_blender_addon
and the BA thread
https://blenderartists.org/t/font-selector-blender-2-8-font-management/
the addon had been tested by a few users through blender artists forum and blender nation, for the current version, no issues were find yet (v2.0)
Thanks and have a good day ! :)
Added subscriber: @tonton
Added subscriber: @BrendonMurphy
hi, does this work on all os?
hi, yes it should, i've personally tested with windows and linux (pop os and ubuntu) but i don't own a mac computer. However, some users from first version have mac os and it worked, the logic of the addon didn't change from this version, so it should work !
hi, the addon just confirmed working on all OS :)
Changed status from 'Open' to: 'Archived'
hi, I've tested this out very briefly, if only to make it break, which was easily achievable. All I needed to do was set the font folder to C:\Windows\Fonts\ and it broke. I can see however this is a little outside the design of the addon, but hey, people will do that and it needs to not error. Reading the thread on BA it seems your still solving some issues? I did a more realistic test and made a custom fonts folder in my downloads folder and everything worked fine. I guess the use for this is to set up a custom fonts folder or a couple of folders for easy access. This is ok presuming the user knows what font they are looking for or familiar with the font's names in their custom list.
I think in theory this is quite good but still not quite a nice as what's built in. I can easily set a fonts folder in the file paths preferences and browse the fonts in the font panel which gives auto thumbs when browsing. What's the difference here? Built in you browse the folder you set in file paths preferences, with the addon you set preferences then return a list and then need to click on each font to browse in the 3d view?
Don't get me wrong here, I do see the value of the multiple/custom font folders, it's quite good for a per project font list.
If you try to address some of the issues we can look at this again soon.
Unfortunately, for now it's not accepted.
Archiving.
hi, I may have been too quick here without enough explanation.
The error was related to run as administrator on windows. I tested on nightly build. I had not seen that error for a long long time. I've tested again running as admin and it did successfully refresh the folder. I did not have the same issue with a custom fonts folder in an open directory. I also have no issue with admin using the built in default font path, I can see and load fonts easily. It must be the .json write? Could this write to the addon folder instead? would that work better?
The more I use the addon the more I understand it's usefulness, I can imagine in production setting a path just to your project fonts could be very useful.
If you can look at the admin path issue we could re-open the task and possibly look at nightly builds contrib section.
What I was trying to look at was does the addon do enough different from what's built in. In some ways it's good, in others maybe could be improved.
It might be nice also to have an open font button similar to built in but looking at user directory so there's an option for quick visual browse and select?
Thanks. Let me know what you think.
Hi, thanks for taking the time to explain yourself !
About the error, i do think you misread the preference panel of the addon, here's a little explanatory :
The first path is for the preferences of the addon, by default it goes to the data folder of blender. I think you set it to a font path and that's what get you the error, i could be wrong here.
Second is the operator to add font folder, you can add a few of them then have (beside you also have a save/load operators which allow you to externallly save your fonts and reload them in case of a new addon/blender install)
The third is the font folder path (may be several here) you set here your path to a folder containing fonts (Windows/Font in your case)
Does this explanation solve the issue ? If it doesn't i'll dig further in the code, but from the error, i think that's the case. The json is supposed to go in your external preferences path. So if there is any administrator right issues, the user can re define this easily.
About your suggestion, i do think that could be a good idea, select a font folder through the font selector panel, then open it in blender builtin browser with preview enabled ! Is that how you saw this ?
Cheers !
Changed status from 'Archived' to: 'Open'
hi, possibly this is the case, i did make changes to the paths, I've figured out how to make it work but the error is easily achievable using the windows folder, I'll test again in a few days. I still think that the saved .json should write to the addons folder automatically and the preferences option could be removed? It would be good to know if this works.
Yes, your right how I envisioned the suggestion, It would look pretty good and easy to browse/select the fonts. The list format is ok up to a point and does still remain useful, I've tested with materials, sheer. extrusion, switching fonts fast in the 3d view to preview their look real time can be a time saver.
opening task again so we can continue to look at.
Hi, great, i'll take a look at this as soon as i have some spare time ! Only downside of this "builtin browser" method is the time it can take to built the preview of the fonts in a big folder like "C://windows/fonts"
About the preferences, the idea was they are stored in a common data folder for blender, so blender users could guess where it is saved if they let the default option of this path (it is in blender regular prefs folder, along with presets and a bunch of other addons preferences) but if they want it to be cross platform because they have their font folder on an external hard drive (one user asked me about that) and they have a lot of fonts in it, they can just put the addon prefs on this same hard drive.
And if you migrate your settings from one version to another, i believe blender copy this folder (didn't really test it though) including the addon preferences
But the fact that you errored it without even trying shows that it should at least be clearer, like more hidden settings or more explanatory, what do you think ?
I also thought about a floating panel called with a shortcut, bringing the list into the 3D viewport instead of scrolling down in the text tab of properties panel, but i'm not sure adding some shortcut in this kind of addon is a good idea...
edit : i could also add error handling for the preferences path to give warning to user instead of an error it they are trying to write in a "not allowed" folder
Added subscriber: @CansecoGPC
This really saves me a lot of time.
Only thing i miss is Fonts Folder Path being populated automatically with standard OS folders (e.g. /usr/share/fonts on Linux, C:\Windows\Fonts on Windows, /Library/Fonts on Mac)
It's something i wish Blender would do by default.
Hi, thanks ! yep it is a good idea and not to hard to code i think, i'll add it to the todo list !
cheers !
Hi, just a heads up to let you know i implemented the os default font folder logic and refactored the user preferences to make it more natural for new users !
It may need some further testing but so far so good on win and linux !
you can check it in the master branch !
https://github.com/samytichadou/FontSelector_blender_addon
cheers !
Added subscriber: @Blendify
Changed status from 'Confirmed' to: 'Resolved'
Hi thank you for submitting a patch, unfortunately, we no longer use the task subtype "Patch" please submit new patches through the differential tool: https://developer.blender.org/differential/
Added subscriber: @Mpc46
Managing fonts on Linux it's a nightmare... you are a life saver! I mean it! thanks D: