logoalt Hacker News

charcircuit11/04/20251 replyview on HN

The terminal emulator knows what font is being used so it should be possible to predict it.


Replies

kevin_thibedeau11/04/2025

The terminal application doesn't know the font. The best you can do is discover ambiguous widths by printing codepoints and checking the change in cursor position. That's a suboptimal experience.