Skip to content

UTF-8 rendering woes #75

@tycho

Description

@tycho

Examples below use the UTF-8 demo file.

Some of the rendering issues could be attributed to the font (Consolas), but some cannot.

Here's Consolas with MinTTY (Cygwin):
Consolas on MinTTY

And here's Consolas with "Bash on Windows":
Consolas on Bash

Consolas simply doesn't do well on the box drawing tests.

One of the best monospace fonts I've found is DejaVu Sans Mono. But cmd.exe's properties page doesn't allow me to select that font when it's installed. It has a static list of fonts that appear in the Windows Registry. In order to use fonts other than Lucida Console, Consolas, or raster fonts, I need to replace one of the fonts listed in the registry under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Console\TrueTypeFont. In my case, I replaced Consolas with DejaVu Sans Mono for another test:

DejaVu Sans Mono with MinTTY (Cygwin):
DejaVu Sans Mono on MinTTY

DejaVu Sans Mono with "Bash on Windows":
DejaVu Sans Mono on Bash

Now the box drawing tests are fine, but there are numerous UTF-8 glyphs that are unavailable for use.

So the problems are:

  • Missing UTF-8 glyphs.
  • No custom font selection in cmd.exe properties.
  • No decent-quality font provided with Windows for box drawing or other UTF-8 characters.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions