problem in overleaf.com editor: cursor does not match characters

Users and developers helping users with generic and technical Pale Moon issues on all operating systems.

Moderator: trava90

Forum rules
This board is for technical/general usage questions and troubleshooting for the Pale Moon browser only.
Technical issues and questions not related to the Pale Moon browser should be posted in other boards!
Please keep off-topic and general discussion out of this board, thank you!
User avatar
lashkevi
Moonbather
Moonbather
Posts: 73
Joined: 2018-05-12, 22:51

problem in overleaf.com editor: cursor does not match characters

Unread post by lashkevi » 2020-03-24, 09:58

On the overleaf.com site (online LaTeX editor) in the editor field the cursor position does not match character, which makes editing very boring. You never knows, which character will be erased or where in the line you will insert new text. There is no such problem in Firefox or Google Chrome. It seems, that Pale Moon does not calculate width of characters correctly.

On the attached screenshot you can see that the cursor (gray vertical line), which is set to the end of the line, is shifted to the right of the last letter. In fact this displacement increases while moving the cursor from the beginning along a line.
Attachments
Screenshot_20200324_125059.png
Screenshot_20200324_125059.png (11.17 KiB) Viewed 420 times

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35474
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: problem in overleaf.com editor: cursor does not match characters

Unread post by Moonchild » 2020-03-24, 10:07

And why is this a browser problem?
if they use custom styling to fake text editing, instead of standard elements or htmleditables, then the display bugs with it are theirs to solve.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
lashkevi
Moonbather
Moonbather
Posts: 73
Joined: 2018-05-12, 22:51

Re: problem in overleaf.com editor: cursor does not match characters

Unread post by lashkevi » 2020-03-24, 10:13

Moonchild wrote:
2020-03-24, 10:07
And why is this a browser problem?
Because there is no such problem in other browsers. By the way, the look of the font used in the Pale Moon differs from that used in other browsers. Maybe something could be done by tuning fonts in Settings, but, as far as I tried, they change absolutely nothing.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35474
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: problem in overleaf.com editor: cursor does not match characters

Unread post by Moonchild » 2020-03-24, 10:18

lashkevi wrote:
2020-03-24, 10:13
Because there is no such problem in other browsers.
That's no argument. We aren't other browsers. We don't have the same rendering quirks as they might have, and our engine won't render everything exactly the same either. You can't expect us to toss out our rendering engine just because a site miscalculates metrics.
lashkevi wrote:
2020-03-24, 10:13
the look of the font used in the Pale Moon differs from that used in other browsers
The that is probably at the root of this problem -- they explicitly assume the font has certain glyph sizes and calculate the "cursor" position based on that.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
lashkevi
Moonbather
Moonbather
Posts: 73
Joined: 2018-05-12, 22:51

Re: problem in overleaf.com editor: cursor does not match characters

Unread post by lashkevi » 2020-03-24, 12:01

The Overleaf support service was helpful. They recommended me to set the browser monospace font to Fira Mono, which saved the situation.

User avatar
lashkevi
Moonbather
Moonbather
Posts: 73
Joined: 2018-05-12, 22:51

Re: problem in overleaf.com editor: cursor does not match characters

Unread post by lashkevi » 2020-03-24, 12:17

Default "monospace" also works. I formerly set it to Noto Sans, since it looked better in other application. Mia culpa.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35474
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: problem in overleaf.com editor: cursor does not match characters

Unread post by Moonchild » 2020-03-24, 13:16

lashkevi wrote:
2020-03-24, 12:17
Default "monospace" also works. I formerly set it to Noto Sans, since it looked better in other application. Mia culpa.
Well, there you have it then. I don't think Noto Sans is a monospaced font.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

Locked