Skip to content

Cursor position desyncs when writing lowercase FI or FF

Not downloaded yet

A (bad) gif of the problem

Hello everyone,
I've had this arch install for 2 years and some time ago I noticed this problem on "custom" text editors like OverLeaf, on different browsers. Thought it was site related, and moved on, since I didn't actually need this service.

Whenever i type "ff" or "fi" the space the letters take is compressed (as shown in the gif), while the cursor moves the the location it "should" be. New lines have no problems until i write those 2 combinations again. I tried changing fonts -monospace also- with no results. Any ideas on how to fix it?

Thanks

1 points5 comments
Open on Reddit
About this post
Posted
Archived
Score
1 · 100% up
Kind
Image
ID
ihmsrt

Author

12
posts
119
comments
4
media
View profile

5 comments

The font you use has "ligatures" for fi, ff and the text editor you are using can't deal with it correctly. You could use a font without ligatures, or you could try a different text editor, or maybe check the text editor's bug tracker to see if there's discussion about the problem.

2 points

I tried changing font but it doesn't solve the problem. Maybe I'll try more options and see.

What bothers me is that the editor font option says: "This should be a monospace font or some elements will render incorrectly. If the font is incorrect or empty, it will default to a generic monospace font." , so it should work by leaving it empy

1 points

The three names "serif", "sans-serif" and "monospace" are not real fonts. You can check what real font the system uses for "monospace" with this command here:

$ fc-match monospace
LiberationMono-Regular.ttf: "Liberation Mono" "Regular"
2 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.