You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The drawing of several unicode characters is rather poor in mintty. Especially the west pointing arrow looks more like a blurred dash than an actual arrow. You'll have to paste the above into mintty to see for yourself.
It seems to be more than just a font issue as the arrows display nicely in wordpad. Anything that can be done to improve the situation?
This is, not just but, a font issue, and possibly a font fallback issue.
You should at least mention your configured font (and size) for such an issue, and maybe a screenshot.
This is, not just but, a font issue, and possibly a font fallback issue.
The left black arrow is not a glyph in most fonts, although the right black arrow is, and renders anywhere from well to badly.
Both glyphs exist and render well in Inconsolata, okay in Deja Vu Sans Mono and Fira Mono, but not well in those fonts in mintty 3.0.2 vanilla with no rendering tweaks.
⬅ U+02B05 LEFTWARDS BLACK ARROW
⮕ U+02B95 RIGHTWARDS BLACK ARROW
That's not so far from the current default, 70; maybe I'll tweak that to 80.
Also, I plan to exclude the character ranges U+2190 .. U+2BFF and U+1F000 .. U+1FAFF from auto-narrowing.
For safety, should CharNarrowing not apply only to double and ambiguous width characters, and/or those with similar attributes that render outside the character cell?
That is, specify only a known inclusive range to do this, or possibly check glyph size in those ranges, or require users to specify other ranges to which it should apply.
If you apply this attribute to other glyphs, you should assume that existing users have no problems with the current rendering and not change it: optional changes that require action by users who want it are okay; no changes to existing defaults or settings are ever okay: you will cause more issues with more impact than you solve, and you will then get many others complaining about the change.
Only mintty renders those glyphs badly with DejaVu Sans Mono; they look normal in gvim for Cygwin and Windows, web browsers, and other apps using the same font.
Some heuristic checking reveals that 75 is a better trade-off than 70 or 80. Adjusting again.
Limiting the procedure to ambiguous-width was an attempt still in the code, commented out, but checking shows it's not good. Double-width characters do not need special attention as they have double room anyway and don't need to be narrowed. Sample file attached.
Activity
mintty commentedon Oct 3, 2019
This is, not just but, a font issue, and possibly a font fallback issue.
You should at least mention your configured font (and size) for such an issue, and maybe a screenshot.
scandum commentedon Oct 3, 2019
Courier New, 12.

Left pointing arrow is squished. I've also noticed some double width characters showing as single width, but haven't kept track of the codes.
mintty commentedon Oct 3, 2019
Please use setting
CharNarrowing=100to compensate.BrianInglis commentedon Oct 3, 2019
The left black arrow is not a glyph in most fonts, although the right black arrow is, and renders anywhere from well to badly.
Both glyphs exist and render well in Inconsolata, okay in Deja Vu Sans Mono and Fira Mono, but not well in those fonts in
mintty 3.0.2vanilla with no rendering tweaks.⬅
U+02B05 LEFTWARDS BLACK ARROW⮕
U+02B95 RIGHTWARDS BLACK ARROWBrianInglis commentedon Oct 3, 2019
Does
CharNarrowing=100work only onminttylater than3.0.2?mintty commentedon Oct 3, 2019
Yes.
scandum commentedon Oct 3, 2019
Thanks, that makes a difference in Courier New.
With CharNarrowing set to 100 the tip of the east pointing arrow gets cut off in Consolas, but CharNarrowing=75 appears to strike a decent balance.
mintty commentedon Oct 4, 2019
That's not so far from the current default, 70; maybe I'll tweak that to 80.
Also, I plan to exclude the character ranges U+2190 .. U+2BFF and U+1F000 .. U+1FAFF from auto-narrowing.
change default value CharNarrowing from 70 to 80 (#922)
BrianInglis commentedon Oct 4, 2019
For safety, should CharNarrowing not apply only to double and ambiguous width characters, and/or those with similar attributes that render outside the character cell?
That is, specify only a known inclusive range to do this, or possibly check glyph size in those ranges, or require users to specify other ranges to which it should apply.
If you apply this attribute to other glyphs, you should assume that existing users have no problems with the current rendering and not change it: optional changes that require action by users who want it are okay; no changes to existing defaults or settings are ever okay: you will cause more issues with more impact than you solve, and you will then get many others complaining about the change.
Only
minttyrenders those glyphs badly with DejaVu Sans Mono; they look normal ingvimfor Cygwin and Windows, web browsers, and other apps using the same font.mintty commentedon Oct 6, 2019
Released 3.0.6.
[-]Unicode handling[/-][+]Unicode glyph width handling[/+]mintty commentedon Nov 8, 2019
Some heuristic checking reveals that 75 is a better trade-off than 70 or 80. Adjusting again.
Limiting the procedure to ambiguous-width was an attempt still in the code, commented out, but checking shows it's not good. Double-width characters do not need special attention as they have double room anyway and don't need to be narrowed. Sample file attached.
x-narrowing.txt
adjust default value CharNarrowing from 80 to 75 (#922)
mintty commentedon Nov 23, 2019
Released 3.1.0.
visual double-width of symbols and emojis with subsequent space (#1104,