Font glyphs not aligning with cursor #1643
Replies: 6 comments 3 replies
-
I have a similar issue with the Fira fonts, installed as blinksh/fonts#22 Is this a known problem? Is there a way to help debug this? |
Beta Was this translation helpful? Give feedback.
-
I have tried to create a snippet to use "MSX Screen 0" font and I have the same issue. See https://gist.githubusercontent.com/avysk/ea238d6acab079768061d87bdddf9c22/raw/9eccc05d525ad13ba606dd8c1866fcda451ac9e3/msxfont.css |
Beta Was this translation helpful? Give feedback.
-
Input comes in "proportional" (like Arial, etc...) and "monospaced" (the usual terminal ones) variants. In this context there are no 'wider glyphs than usual' unless the monospaced font is not really monospaced. Please note that this has nothing to do with double width glyphs and all that, which we support. I think you may be used the "proportional" font variant, and Blink will not support that. A few years ago when we reworked rendering for Hterm we had to decide how flexible we wanted to be with non-monospaced fonts. As those cases are rare, we decided to go for speed and rely on monospaced fonts being... monospaced and doing the right thing on their own for 95% of the cases. I still think that being a terminal this is what makes sense (as then there are vertical lines in editors, etc...). Let us know if you still have the same issue with the Monospaced font, and will take a look. |
Beta Was this translation helpful? Give feedback.
-
I use the latest Blink from AppStore on the latest iPadOS 16. The font in question is monospaced. I have given above the URL you can use for its installation. |
Beta Was this translation helpful? Give feedback.
-
Hello @caraar12345. I checked your font. Couple issues there. Font families are different and font should be base64 encoded. |
Beta Was this translation helpful? Give feedback.
-
Hello @avysk Please try this one Same thing. It should be base64 encoded. Also I added bold one. |
Beta Was this translation helpful? Give feedback.
-
Checklist
Configuration
16.0.2
16.1
Describe the bug
I'm using a custom Input font with wider glyphs than usual. Most renderers (VSCode, iTerm2 etc) are fine with this but Blink fails to align the cursor with the actual text. As a result, it's very difficult to edit commands etc as it's a guessing game as to where the cursor actually is.
https://aaroncarson.co.uk/blink/fonts.css
Expected behaviour
The text lines up with the cursor.
Screen recording
Sorry the text is so small!
RPReplay_Final1668773575.mov
Beta Was this translation helpful? Give feedback.
All reactions