Skip to content
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

Left and right square brackets not aligned vertically #2545

Closed
shniubobo opened this issue Oct 11, 2024 · 2 comments
Closed

Left and right square brackets not aligned vertically #2545

shniubobo opened this issue Oct 11, 2024 · 2 comments
Labels

Comments

@shniubobo
Copy link

Right brackets can be one pixel shorter than left ones, when used with a certain font size, weight or style. This can be reproduced in several applications, as well as in the preview function provided by Windows Settings.

This may be related to #266, but is not duplicate of that issue.

Screenshots

Windows Settings (Settings > Personalization > Fonts)

Reproducible with font size 11

NOT reproducible with font size 12

VS Code v1.94.2

Reproducible with font size 14

Reproducible with font size 15

NOT reproducible with font size 16

Windows Terminal v1.20.11781.0

Reproducible with font size 11

NOT reproducible with font size 12

However, when taking this screenshot, I noticed that the left bracket is horizontally one pixel longer than the right one.


  • Your font version: v31.8.0
  • Your font variant: Default and SS03 (these two are what I have tried; probably also reproducible with other variants)
  • Your operating system (name and version): Windows 22631.4317
  • Your application using Iosevka: VS Code and Windows Terminal
@Logo121
Copy link
Contributor

Logo121 commented Oct 12, 2024

Well, it is the same issue as #266 (same cause, at least).

@shniubobo
Copy link
Author

Well, it is the same issue as #266 (same cause, at least).

They are similar since they both have something to do with hinting, but they are not the same because they need different solutions. In #266, the misalignment was caused by FreeType's autohinting, and the solution was to disable that and use Iosevka's built-in hinting. Here the situation is the opposite - I have to use the unhinted fonts to work around this issue, that is, the issue is caused by the built-in hinting.

be5invis added a commit that referenced this issue Oct 13, 2024
* Fix rounding errors caused by glyph cross references (#2545)

* Do it in simpler way
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants