Open Carnivorg opened 6 years ago
Hi @Carnivorg,
What happens if you change the font
property in the Preferences with a font you have on your system?
Thanks in advance.
Yep - changing it to something like "Cantarell" seems to fix the issue in code blocks, but not completely in regular text.
Have you also tried changing the useProportionalFontInProse
in Preferences?
Setting useProportionalFontInProse
to false
seems to solve most of the issues. In this case, it would be nice if the default preferences for Caret on CentOS were updated!
Yes. We will work on that. Thanks for all the information provided.
So far, I've found the best solution is to install a nice coding font such as Fira Code.
cd ~/Downloads
wget https://github.com/tonsky/FiraCode/releases/download/1.205/FiraCode_1.205.zip
unzip FiraCode_1.205.zip -d Fira_Code
mkdir ~/.fonts # create a local font directory
mv Fira_Code/otf/*.otf ~/.fonts/
fc-cache -v # install font
The text cursor is aligned properly for short sentences. For longer sentences the cursor appears to become progressively misaligned with text, up to a point where it appears several characters to the left of where text is actually inserted. The effect appears more pronounced in code blocks.
You can reproduce this issue just by typing a sentence into the Caret editor.
For example, in the image below I've double-clicked the word "layout":
I'm using
centos-release-7-4.1708.el7.centos.x86_64