When adding backtick quotes (`) in the editor, the cursor seems to backtrack.
In fact the reason seems to be that the space after the backtick is too tight. Maybe that is related to the font you're using for the editor.
When adding code blocks or even code within the text, it is annoying.
A solution might be to allow:
for another font
for bigger text size
Robin Shen commented 2 years ago
Can you please attach a screenshot demonstrating the issue?
Stephen S commented 2 years ago
In-text code:
Stephen S commented 2 years ago
This is a code block:
Robin Shen commented 2 years ago
This does look nasty. Which os/browser are you using?
Stephen S commented 2 years ago
Debian 10 and Gnome.
Stephen S commented 2 years ago
I have tried to understand what happens and I now guess that backticks are understood by the system as dead caps, waiting for the next letter to be written then joined with it.
Robin Shen commented 2 years ago
Will changing font type/size work in this case?
Stephen S commented 2 years ago
I guess so. I am using Brave and Firefox as browsers, both with the standard font settings.
Robin Shen commented 2 years ago
Just set up a debian10 via VMWare and access OneDev from it with firefox. The backtick displays fine when editing the markdown.
Robin Shenchanged state to 'Closed'2 years ago
Previous Value
Current Value
Open
Closed
Robin Shen commented 2 years ago
Closing now. Feel free to reopen if there is more info.
Stephen S commented 2 years ago
Hi Robin, OneDev is the ONLY software (we have +64 hosted here) displaying the behavior.
My hunch is that you are using a font that is not standard and/or not available on Linux.
Stephen S commented 2 years ago
I had an idea: maybe OneDev is not compatible with one of the Brave extensions I activate in normal usage: Decentraleyes, UBlockOrigin.
I checked by opening a OneDev editor in a Private window where I desactivate all extensions > the same.
Robin Shenchanged state to 'Open'2 years ago
Previous Value
Current Value
Closed
Open
Robin Shen commented 2 years ago
OneDev is using google poppins font which is very comfort, and it works in Mac, Windows.
I tried Debain and Ubuntu from VMWare and they both display nicely. Maybe I need to set up a bare metal linux box to verify this.
Reopen this issue to keep a record.
Stephen S commented 2 years ago
You know, I'll try to install the font on my workstation (which it is not). Will keep you posted.
But this can't be the only time you will see this reported by Linux users.
Stephen S commented 2 years ago
Actually, Poppins font was already installed on my machine. I will try to remove it instead and load it on the fly from the website itself.
Robin Shen commented 2 years ago
You may open with firefox, open the debugger to turn off poppins font in selector html, body to see if backtick displays correctly
Stephen S commented 2 years ago
BINGO ! It worked well when I disabled the font in the debugger:
So, I guess I will have to uninstall the version I have on my workstation.
But, as you know, fonts are a matter of taste and I find this one not so readable as compared with, say, Lato.
So, why not allow users to choose their own font and font size?
Robin Shen commented 2 years ago
Thanks for verification. Will disable poppins for Linux users. Allowing user to choose font family and size freely is not a good idea as UI is often tuned under a specific font/size.
When adding backtick quotes (`) in the editor, the cursor seems to backtrack. In fact the reason seems to be that the space after the backtick is too tight. Maybe that is related to the font you're using for the editor. When adding code blocks or even code within the text, it is annoying. A solution might be to allow: