This patch is giving font preview capabilities to the file browser.
Especially when you search a font for motion graphics work and all other types of text usage in Blender this is very important and a much anticipated feature. Developed while being at the bcon14 and refined at home, I think it could go to master now.
Edit: I rewrote this functionality completely now. It's now handled via the thumb_manager and tied to Blenders thumbnail creation system. That means that all font files are generated via preview threads and (most important) cached. That means also that you can see all your font files now at once instead of only previewing the currently selected.
- The preview starts when you're in the "preview" mode of the file browser editor
- If you see a font icon instead of a preview, then Freetype could not set the charmap appropriately (Unicode) and therefore not generate a preview.
- The preview text is the fontname atm. This will change for sure in the future (I think about adding a user definable textbox in the file browser) but this will be a different commit.
- Only horizontal 1 row texts are possible atm. Changing this will introduce more reworkings in the underlying font handling area but could be done too in the future.
Screenshot of the functionality in action: