Skip to content

Unicode Box drawings characters not rendered correctly (disappear) with Japanese fonts #13527

Closed

Description

@kissge

Windows Terminal version

1.13.11432.0

Windows build number

10.0.22000.0

Other Software

MyricaM https://github.com/tomokuni/Myrica/raw/master/product/MyricaM.7z
Ricty Diminished https://github.com/mzyy94/RictyDiminished-for-Powerline/blob/master/RictyDiminished-Regular.ttf

Steps to reproduce

  1. Set font face to e.g. MyricaM M.
  2. Print characters like U+2500 BOX DRAWINGS LIGHT HORIZONTAL and U+2502 BOX DRAWINGS LIGHT VERTICAL by running e.g. tree.
/tmp/test
├── bar
│   └── baz
└── foo

1 directory, 2 files

Expected Behavior

─ and │ are printed.

Actual Behavior

Those characters are rendered improperly.

MyricaM M ... vertical bars are missing, and horizontal bars have wrong width

myricam

Ricty Diminished ... horizontal bars are missing

ricty

Lucida Console ... OK (though Japanese characters fall back to another font (I can't tell which font), causing weird spacing between letters)

lucida_console

Activity

  1. ghost added
    Needs-Tag-FixDoesn't match tag requirements
    on Jul 18, 2022
  2. ghost added
    Needs-TriageIt's a new issue that the core contributor team needs to triage at the next triage meeting
    on Jul 18, 2022
  3. ghost removed
    Needs-Tag-FixDoesn't match tag requirements
    on Jul 18, 2022
  4. zadjii-msft commented on Jul 18, 2022

    @zadjii-msft
    Member

    Huh. Thanks for the report! Dunno why this would be happening. Hopefully this gets fixed with the new experimental text renderer, we'll see.

  5. lhecker commented on Jul 18, 2022

    @lhecker
    Member

    That font is Yu Gothic UI Regular.
    Yu Gothic UI Regular

    Yu Gothic is a proportional font according to Wikipedia and if that's correct we should probably pick MS Gothic instead:
    MS Gothic Regular

    In either case, the good news is that this issue doesn't occur with the experimental text rendering engine ("AtlasEngine"):
    image

    The line drawings have significant gaps now unfortunately, but at least they're visible and it's an issue that I'm currently planning to improve on in the near-ish future.

  6. kissge commented on Jul 19, 2022

    @kissge
    Author

    In either case, the good news is that this issue doesn't occur with the experimental text rendering engine ("AtlasEngine"):

    Great to hear that!

    I've confirmed that too, with Preview 1.15.1863.0.

    myricam-altas

    ricty-atlas

    lucida_console-atlas

    Yu Gothic is a proportional font according to Wikipedia

    Seemingly, yes, that's true.

    yugothic

    and if that's correct we should probably pick MS Gothic instead:

    Or I'd rather suggest that if a user can explicitly set "fallback" font faces, just like CSS font-family, that'd be even better. I think this is already possible e.g. in Visual Studio Code, which has different rendering mechanism, so it may not be straightforward how to introduce such capability to Terminal.

  7. lhecker commented on Aug 23, 2022

    @lhecker
    Member

    Mike Griese (@zadjii-msft) We improved box drawing rendering for AtlasEngine in #13549. Should we close this issue now?

  8. added a commit that references this issue on Apr 26, 2023
    2e3d5e6
  9. tats-u commented on Jun 5, 2026

    @tats-u

    Yu Gothic is a proportional font according to Wikipedia and if that's correct we should probably pick MS Gothic instead:

    Note: all Japanese and Chinese (full-width) characters in Yu Gothic have the same width. Only European-specific (and some ambiguous) characters have various proportional widths.

    European characters in BIZ UDGothic have a width that is exactly half the width of Japanese characters like those in MS Gothic. However, its bold variant is too light compared to Cascadia Code.

  10. tats-u commented on Jun 5, 2026

    @tats-u
    Fonts Japanese hiragana/katakana Other full-width Japanese European
    MS Gothic / BIZ UDGothic Monospace (1) Monospace (1) Monospace (0.5)
    MS PGothic / BIZ UDPGothic Proportional Monospace (1) Proportional
    MS UI Gothic / Yu Gothic UI Proportional (Condensed) Monospace (1) Proportional
    Yu Gothic / Noto Sans JP Monospace (1)1 Monospace (1) Proportional
    Meiryo Monospace (~1.05) Monospace (~1.05) Proportional

    Footnotes

    1. except when you apply some OpenType features like palt, pkna, pwid ↩

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-FontsRelated to the fontArea-RenderingText rendering, emoji, complex glyph & font-fallback issuesHelp WantedWe encourage anyone to jump in on these.In-PRThis issue has a related PRIssue-BugIt either shouldn't be doing this or needs an investigation.Needs-TriageIt's a new issue that the core contributor team needs to triage at the next triage meetingPriority-2A description (P2)Product-TerminalThe new Windows Terminal.

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions