Skip to content

Typing in the character 'f' displays an extra space #5155

Answered by jerch
Alex-Bishka asked this question in Q&A
Discussion options

You must be logged in to vote

Yes I can repro with firefox v130 and the DOM renderer. Looks like a browser bug to me, older FF versions (98 & 123) work as expected.

Also the gap is not an SP, but a single 'f' being rendered too wide. Prolly some issue with the metrics calc in FF 130 for 'f'. Only tested under ubuntu 22 LTS, thus idk if this is an ubuntu/linux only issue or affects all platforms for FF 130.

Edit:
Yupp the char measuring is wrong:

wc=term._core._renderService._renderer._value._widthCache
wc.get('d', false, false)
9
wc.get('e', false, false)
9
wc.get('f', false, false)
4.5
wc.get('g', false, false)
9 

Edit2:
Its a ligature issue - the newer FF version treats ff as a ligature merging 2 f into a single sma…

Replies: 9 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@Alex-Bishka
Comment options

@Alex-Bishka
Comment options

@jerch
Comment options

@jerch
Comment options

@Alex-Bishka
Comment options

Answer selected by Alex-Bishka
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
type/question A question on how to use the library needs more info
3 participants
Converted from issue

This discussion was converted from issue #5153 on September 10, 2024 19:37.