Skip to content

Introduce Terminal.get_font_coverage() - #407

Merged
jquast merged 4 commits into
masterfrom
jq/font-glyph-support-clean
Aug 31, 2026
Merged

jquast merged 4 commits into
masterfrom
jq/font-glyph-support-clean

Conversation

@jquast

@jquast jquast commented Aug 30, 2026 •

Copy link
Copy Markdown
Owner

Support "tofu detection" as documented and tested, and by example bin/detect-tofus.py.

mintty is a son of a bitch.. it takes a lot of customization to avoid conhost.exe, otherwise it won't work. And then it reports no tofu's at all, even when visually there are definitely tens of thousands. And, many of the grapheme tests of ucs-detect corrupt the font output, lots of strange draw artifacts that persist, tofus, and VS16, emoji ZWJ etc. are all corrupted by display.. despite my efforts to install unifont, it can't seem to handle multiple or fallback fonts correctly.

I will document mintty's egregious behaviors in ucs-detect, and since the code works I'll keep it, but I wouldn't recommend mintty for unicode!

@codspeed

codspeed Bot commented Aug 30, 2026 •

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 31 untouched benchmarks


Comparing jq/font-glyph-support-clean (a5bbb42) with master (02bbd00)

Open in CodSpeed

@codecov

codecov Bot commented Aug 30, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 98.16514% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 97.42%. Comparing base (02bbd00) to head (a5bbb42).

Files with missing lines Patch % Lines
blessed/terminal.py 97.33% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #407      +/-   ##
==========================================
+ Coverage   97.40%   97.42%   +0.01%     
==========================================
  Files          13       13              
  Lines        3888     3993     +105     
  Branches      693      722      +29     
==========================================
+ Hits         3787     3890     +103     
- Misses         82       83       +1     
- Partials       19       20       +1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Adds font glyph detection capability for testing with ucs-detect,
including a detect-tofus.py utility, unicodedata normalization, and
supporting terminal capability queries.
@jquast
jquast force-pushed the jq/font-glyph-support-clean branch from e784bbc to bdf631e Compare August 30, 2026 22:16
@jquast
jquast force-pushed the jq/font-glyph-support-clean branch from 64c1392 to 82afa03 Compare August 31, 2026 00:27
Support only the latest version of mintty, previous versions required
some silly codepoint-response-counting workarounds, these are not
necessary with the latest cygwin release of mintty, so remove them.
@jquast jquast changed the title introduce Terminal.get_font_coverage() Introduce Terminal.get_font_coverage() Aug 31, 2026
@jquast
jquast marked this pull request as ready for review August 31, 2026 02:51
@jquast
jquast merged commit 4697953 into master Aug 31, 2026
16 checks passed
@jquast
jquast deleted the jq/font-glyph-support-clean branch August 31, 2026 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant