Cesare Gilento

Results 32 comments of Cesare Gilento

Quick and dirty: enclose the call to `instantiateVariableFont` in a try-except clause. https://github.com/fonttools/fonttools/pull/3480 A log message is displayed... ``` (.venv) D:\GitHub\fonttools>fonttools varLib.instancer bahnschrift.ttf wght=310 wdth=100 --update-name-table Restricting axes: {'wght': (310,...

Try with OS/2.recalcAvgCharWidth ```python font = TTFont('static.ttf') font['OS/2'].recalcAvgCharWidth() font.save('static.ttf') ```

Your `static_font` **is** a TTFont object. You should use: `static_font['OS/2'].recalcAvgCharWidth()` Anyway, I downloaded Robot Flex from Google and exported all the static instances `ftcli converter vf2i "RobotoFlex-VariableFont_GRAD,XOPQ,XTRA,YOPQ,YTAS,YTDE,YTFI,YTLC,YTUC,opsz,slnt,wdth,wght.ttf" --no-update-name-table -out static`...

To generate static fonts for non-named instances, add the '-s' switch. It will allow you to choose custom values for each axis. Without passing `—no-update-name-table`, actually ftcli raises a ValueError...

I don't have Figma nor Illustrator, can't help. Those are not valid fonts anyway, at least the name table should be updated. These ones pass fontbakery check-universal (with some warnings):...

Same on Windows. I also tried to fork AFDKO, remove psautohint from requirements.txt and tried to install. The installation failed while trying to build wheels for AFDKO. Works if Visual...

I've added a command to remove unreachable glyphs (it uses `fonttools subset`). Since the subsetting is a bit slow process, I prefer to keep it as a separate command.

> Many thanks, @ftCLI! > > I meant to send this way earlier - fontbakery has an unreachable glyphs check [1]. I think it could still be useful to add...

Thanks again! I know this and I planned to dig into otfstemhist files when AFDKO 4.0 was released. Fonts converted from ttf2otf cannot be hinted, unless you use `ftcli otf...