Roboto Mono is not monospace for purposes of "ch" length |
|||
Issue descriptionChrome Version: 70.0.3538.76 OS: Chrome I don't know if this is a problem with the Roboto Mono font or with blink. Repro: https://jsfiddle.net/sx8om379/ When the width of a block is set to "6ch", six 0 characters can be displayed (per spec), but only five "f" characters can be displayed before wrapping at whitespace. Is this a problem in Blink or a problem with the font itself? This issue explains why Gerrit sometimes wraps commit messages at 71 characters instead of 72.
,
Nov 15
Relevant PolyGerrit issue: https://bugs.chromium.org/p/gerrit/issues/detail?id=10043
,
Nov 15
Windows too. It also repros in Edge, but does NOT repro in Firefox -- so there is *something* renderer specific happening.
,
Nov 16
On Linux, AvgCharWidth() from SimpleFontData: https://cs.chromium.org/chromium/src/third_party/blink/renderer/platform/fonts/simple_font_data.h?sq=package:chromium&dr=CSs&g=0&l=109 ultimately comes from FreeTypes' max bounding box for the FT_Face: In that regard, this comment is interesting: https://cs.chromium.org/chromium/src/third_party/freetype/src/include/freetype/freetype.h?sq=package:chromium&dr=CSs&g=0&l=974 which means that hinting can push things across the limit for the line break. But I haven't verified whether that's the case here.
,
Dec 31
Roboto Mono is a notoriously buggy font. https://github.com/google/fonts/issues/142 Please don’t waste developer cycles working around the problem in Blink, when it’s known that this particular family has issues also in consoles/shells and other software.
,
Jan 1
This is indeed a problem with Roboto Mono. You might want to change gerrit to use a proper monospace font instead. |
|||
►
Sign in to add a comment |
|||
Comment 1 by mstensho@chromium.org
, Nov 15Status: Available (was: Untriaged)