-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Block characters are too tall #449
Comments
Thanks for reporting this! I’ll see what I can do. Wouldn’t they make vertical gaps if I make them shorter though? |
I read FULL BLOCK as really being full vertical height (the keyword here being full). Apple Designers are not gods and their word is not gospel. |
Yes, this influences the visual effects of progressbars using unicode block symbols. |
The same can be seen on the vertical line
Screenshots from When combined with full blocks to draw TUI the overlap is extremely noticable: |
Last time I looked into this it seemed different terminals/editors used different means to calculate font width. Also, some users (me included) intentionally increase line height for better readability. But I agree that overlapping lines look kind of ugly. Maybe it’s worth another look |
Interesting problem. So if I make box-drawing characters go up/down exactly to font metrics, it’s slightly not enough. I suspect that’s because editors have to round font metrics to non-fractional amount of pixels and that’s always slightly more than font metrics suggest. This is Sublime Text 3 on macOS with Fira Code Retina 13px. Parens on the left were adjusted to not go outside font metrics. Parens on the right have previous behaviour (they overlap by quite a lot, and you can see it as @YaLTeR mentioned) Another issue is that e.g. VS Code computes font height differently for some reason: Same font, same size, but gaps are bigger! So I’m afraid, sadly, there’s no right answer :( You either commit to gaps or have overlaps that render not that great at all. |
There's an argument to be made here that if the editors are rendering full blocks with gaps then it's an issue of the respective editors and should be fixed on that side. I personally think that characters out in TUIs is a worse issue (and in this case I'm afraid the font gets the blame because the characters are indeed too large). Could you upload a test version with correct full blocks so I could check how it looks in my applications? |
@YaLTeR and everyone interested: please try those https://github.com/tonsky/FiraCode/tree/b32369cb03ad3c0fe43fd30fd19427169e9592dc/distr/otf I removed the overlap on full blocks and the rest of Block elements since it’s often used in progress-bar etc. I left overlap in the Box Drawing block as those are rarely used on their own, I think it looks worse without the overlap and removing overlap would make text-based UIs look worse. I slightly tuned UPM (2000->1950) so that Fira Code 13px would match pixel grid perfectly. Let me know what you think. |
Yes but you are not supposed to use them like this are you? If you want to end the line midway there are glyphs for that too, e.g. https://unicode-table.com/en/2575/ |
Hmm, maybe you're right. I can't find anything that says that these lines are intended to "connect" to full blocks without overlap. So my only remaining argument is the presence of those kind-of visible overlaps with other lines. |
Thanks for the good work. But in my personal opinion, the new EDIT: I'm talking about the ASCII symbol |
...at least in iTerm 2 and Terminal.app, which are the only ligature-supporting, frequently-used apps that I have.
Fira Mono has the same problem, but this repo seems to be a little more active, so I'm opening the issue here.
The text was updated successfully, but these errors were encountered: