Firacode: VF doesn't list weight instances correctly built from script (Win10, others?)

Created on 28 May 2019  路  13Comments  路  Source: tonsky/FiraCode

Hello! Fira Code is a great addition to my dev workflow, especially with its variable weight reducing the need for multiple files. The Fonts listing in Windows 10, however, shows its five defined weight instances as Regular even though they are at different weight values (300, 400, 450, 500, 700). If it's possible to edit the Metadata for the stored instances to reflect their correct names (or at least different ones) please do so, as I have little doubt it's like this in other programs as well.

Fira Code VF 1.207 on Windows 10 Pro (1809) 64-bit

bug

Most helpful comment

The normal Win10 Fonts listing, finally got screens:

fira-1
fira-2

All 13 comments

wait, VF is a variable font from https://github.com/tonsky/FiraCode/tree/master/distr/variable_ttf right? And it is listed as five separate weights, is that what you are saying? Do you have those weights installed as well? Or just that single TTF?

I only have the single TTF (FiraCode-VF.ttf) from that variable_ttf folder installed. When I get back to that comp I'll put up a screenshot.

For what it's worth, I'm pleasantly surprised that Win10 has any support at all for variable fonts, and its pre-installed Bahnschrift variable font does show the correct names for pre-defined weight and width instances.

Hmm I don鈥檛 see it. Maybe it鈥檚 specific to software you are using?

IMG_2669

The normal Win10 Fonts listing, finally got screens:

fira-1
fira-2

Bahnschrift's listing for comparison:

bahnschrift

Ok I might take a look but can鈥檛 guarantee anything. Is Bahnschrift a variable font as well?

Bahnschrift is indeed a variable font, yes.

Hi! I just installed v2.000 of the variable Fira Code on a different Windows 10 install and am unfortunately still getting the weights all incorrectly listed as "Regular" in the font info window. Is there a setting in Glyphs where this would be editable? I'm only familiar with FontLab and I don't want to break anything that works by importing and exporting to a potentially wildly different glyphs or ufo file.

VF is exported through bash scripts https://github.com/tonsky/FiraCode/tree/master/script. Maybe there鈥檚 a setting there

Can you try this file? It was exported from Glyphs directly

FiraCodeGX.ttf.zip

fonts-20191203

The direct-from-Glyphs version does indeed retain the discrete weight instances. For the record, the screenshot shows the 5 correct ones AND the 5 incorrect "Regular" ones because I have both the original VF and the GX versions installed at the same time, not a fault of the GX version at all.

Seems there's something missing in the build script indeed, as it's the only one I see with any reference to building the variable version. Maybe need an updated fontmake or gftools or there's a command line argument to properly reference the instance names?

For what it's worth, Inter (formerly Inter UI) seems to have the same build issue - rsms/inter#142 .

Should be solved in d413865

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Igorgro picture Igorgro  路  3Comments

pedrowebcomum picture pedrowebcomum  路  4Comments

hatched picture hatched  路  3Comments

ghivert picture ghivert  路  4Comments

RustemB picture RustemB  路  4Comments