Font_Table Node

john's Avatar

john

18 Aug, 2021 09:42 AM

Attached is a custom node that returns a table, organized by family and font name, of all fonts currently installed in your system. It requires font_table.py (included) which must be added to your code library. You can lookup names from the table and feed them into the font name port of a text path node to generate output in many fonts.

I have way too many fonts in my own system, so it can become a chore to choose the right one for a given NodeBox project. This node allows me to step through all the fonts automatically and maybe build my own comparison charts within NodeBox so I can see my choices in context. Because it's a table I can also filter and sort the fonts in various ways.

This is almost no documentation about how to write custom nodes in Python, so each new example like this provides hints about how to access and return various kinds of data to NodeBox. In this case I access some core Java functionality and return a data table (a Python dictionary). The custom node itself returns a working NodeBox table, but causes hashing errors when its output is fed into a subnetwork (not sure why). So I have wrapped this node inside a subnetwork (also called font_table) that solves this issue.

As you can see in the screenshot, the demo renders many different versions of an asterisk with the font family for each one below in small print. It's interesting to see how many ways there are to make an asterisk.

This node seems to work fine on my Mac, but I have not been able to test it on a PC. I would appreciate it if some PC user out there would download this, test it, and reply on this thread to confirm that it works on PCs as well. I would also love to see any example of creative projects using this node.

Enjoy!

John

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Already uploaded files

  • font_table_screenshot.png 535 KB
  • font_table.zip 4.73 KB

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

10 Sep, 2024 03:41 AM
09 Sep, 2024 02:15 PM
07 Sep, 2024 05:16 AM
05 Sep, 2024 02:21 AM
04 Sep, 2024 05:01 AM

 

03 Sep, 2024 10:07 AM
02 Sep, 2024 05:56 AM
31 Aug, 2024 11:07 PM
27 Aug, 2024 12:08 AM
26 Aug, 2024 01:02 PM
26 Aug, 2024 07:18 AM