Cabbage Logo
Back to Cabbage Site

Changing typeface

I want to use a different typeface. I tried adding various permutations of:
typeface(futura)
typeface(“futura”)
typeface(“futura.ttf”)
typeface(“futura.otf”)
typeface(“Futura.ttf”)
typeface(“Futura.otf”)

to my form options. Do I need a separate copy of this font file in a different location? I’m puzzled, as Cabbage allows me to use Futura as the font in the text editor with no complaints.

That said, the performance in the text editor was bad. My cursor did not always align with where the edits were occurring!

The typeface identifier does indeed new the .ttf file. The editor can find the system fonts, but this isn’t the case with plugins.

Are there any restrictions on fonts that I should know about? “Open Sans” had a bunch of options, including a variable width version. That one didn’t load, but I’m not sure if it is an issue with the font or something I did wrong.

To be honest, it’s not a feature I’ve used that often. I assume most fonts should load fine :man_shrugging: