google / google/fonts

morisawa-biz-ud-gothic

Open
#9,196 6 comments 0 reactions 0 assignees View on GitHub
I Font Bug
Dominant language
HTML
Stars
20.5k
Forks
2.9k
Avg merge
1d 21h
Merged PRs (30d)
95

Description

xAvgCharWidth in the OS/2 table is buggy

**Describe the bug**

The xAvgCharWidth in the OS/2 table is 1997 due to a bug in fontforge. The correct value is 1024. (All 0-9A-Za-z (space) widths are 1024)
This value is wrong and causes various bugs (extra spaces between characters, poor hit detection) in wine on Linux and in apps on Windows.

**To Reproduce**

Extra white space between characters in the Microsoft font viewer that starts when you click on a font in Windows.
https://x.com/o_tamon/status/1506193655123505154

**Expected behavior**

No extra white space between characters

**Screenshots**

https://x.com/o_tamon/status/1506193655123505154

**Additional context**

Reference URL:
https://github.com/googlefonts/morisawa-biz-ud-gothic/issues/45
https://www.google.co.jp/search?q=UD+xAvgCharWidth
https://github.com/mintty/mintty/issues/808
https://itouhiro.hatenablog.com/entry/20140910/font
https://x.com/o_tamon/status/1506193655123505154
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1012399

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.