Iris 0.6.0 added support for different fonts. Until now, users were able to export text, but it would always default to an arial like font. Font support is experimental and has some caveats:
- there is no logic for limiting the font set yet, thus, if you export a scene with text, the entire glyph set of the font will be embedded in the model. This can contribute to the overall size of the file. In the future, I hope to add an option to limit the glyph set.
- there is no automatic conversion from the font file (.ttf or .otf) to the needed json glyph set. That means that if you want a specific font, you need to do the conversion manually.
- there is no support for font styles yet. So if you want Bold or Italic versions of the fonts, you need to convert those as well.
So, given these limitations, how does one add a font?
- Go to the Facetype site.
- Click on the ‘Browse’ button. This will bring up a dialog to locate a font file.
- Locate the desired font file on your system, and accept.
- Ensure that ‘Generate a JSON File (.json)’ is the selected option.
- Click on the convert button. This will bring up a prompt to save the file. You will want to save this in your Iris resources folder:
- Windows:
C:\Users\<username>\AppData\Roaming\McNeel\Rhinoceros\5.0 or 6.0\Plug-ins\Iris (some guid)\<some version number>\Resources\fonts
- macOS:
/Users/<username>/Library/Application Support/McNeel/Rhinoceros/MacPlugIns/Iris.Mac.rhp/Resources/fonts
- Windows:
- When setting text in Rhino, choose the font style that corresponds to the coverted font.