notofonts / notobuilder

Python module for building Noto fonts
9 stars 0 forks source link

All styles of variable font are shown as 'Regular' on Windows #9

Open codeman38 opened 3 years ago

codeman38 commented 3 years ago

Font

NotoSans-VF.ttf

Where the font came from, and when

https://github.com/googlefonts/noto-fonts/tree/09a6ac1580b23721a6bff08815d270e0156d60d7/unhinted/variable-ttf

Font Version

2.003

OS name and version

Windows 10 20H2 build 19042.685

Issue

Windows 10, and all apps using its standard font APIs, see every style in the variable Noto fonts as being the "Regular" style.

  1. Steps to reproduce
    • Install NotoSans-VF.ttf in Windows.
    • Open the Settings app and navigate to Personalization → Fonts.
    • Search for Noto Sans in the search box and click on it.
  2. Observed results
    • Every style in the font preview is listed as "Regular".
  3. Expected results
    • Every style has a different name.

Screenshot

Screenshot of Windows font viewer

punchcutter commented 3 years ago

This isn't a name table issue, it's because the STAT table is no good. Windows builds the names using the STAT table so even though the named instances are defined properly in the fvar they won't show up because the STAT table is empty.