Quantcast
Channel: TypeDrawers
Viewing all articles
Browse latest Browse all 4254

How to generate a static font family from a variable font? (details inside)

$
0
0
Hello everyone. I apologize if this is the wrong place for this post, but I see that many people here are knowledgeable regarding variable fonts and I've been struggling for a couple days to achieve what I am after.

I own a handful of variable fonts, however not all software supports them, and the predefined instances are a little too bold and wide for me. My goal is to be able to generate static cuts from the original variable font with my own axis parameters. This way, I can use the font with all my software, and have complete control over the font's appearance.

For example, I have a variable font ("ExampleVF") with variable width and weight axes. I want to generate the following cuts:
  • ExampleVF Light (wdth=85, wght=250)
  • ExampleVF Regular (wdth=85, wght=350)
  • ExampleVF Medium (wdth=85, wght=450)
  • ExampleVF Semi Bold (wdth=85, wght=550)
  • ExampleVF Bold (wdth=85, wght=650)
  • ExampleVF Extended Light (wdth=110, wght=350)
  • ExampleVF Extended Regular (wdth=110, wght=350)
  • ExampleVF Extended Medium (wdth=110, wght=450)
  • ExampleVF Extended Semi Bold (wdth=110, wght=550)
  • ExampleVF Extended Bold (wdth=110, wght=650)
I first turned to fonttools, but the built in fonttools varLib.instancer can only handle generating the static cuts, and can't rename the fonts so that I can install all of them and have them appear correctly under Microsoft Word, for example.

Is this doable with fonttools? Can anyone suggest how I could achieve this?

I'm a programmer first, type enthusiast second. If someone can simply tell me what tables I need to modify with fonttools, I can do the rest. One thing I did notice is that fonttools exports TTFs, which as far as I understand have a limited number of subfamilies on Windows, so I'm not sure if I also need to add OTF into the mix somewhere.

Sorry for the long post. I would really appreciate some advice on this. If someone can point me in the right direction, I will report back here once I've written the program and publish it on GitHub!

Viewing all articles
Browse latest Browse all 4254

Trending Articles