erkyrath / lectrote

The IF interpreter in an Electron shell
Other
248 stars 28 forks source link

Font messed up / ugly on Linux #118

Open xeyownt opened 4 years ago

xeyownt commented 4 years ago

On Debian Buster, the font looks ugly / messed up. Seems like a RGB hinting issue.

In fact, the issue is exactly similar to the one others reported for vscode (https://github.com/Microsoft/vscode/issues/35675).

In my case, the workaround was to downgrade libfreetype6 to 2.8.0-2, and I also had to downgrade libcairo2 to Stretch version 1.14.8-1:

The complete recipe:

wget http://snapshot.debian.org/archive/debian/20170630T215111Z/pool/main/f/freetype/libfreetype6_2.8-0.2_amd64.deb
wget http://snapshot.debian.org/archive/debian/20170630T215111Z/pool/main/f/freetype/libfreetype6_2.8-0.2_i386.deb
wget http://ftp.de.debian.org/debian/pool/main/c/cairo/libcairo2_1.14.8-1_amd64.deb
wget http://ftp.de.debian.org/debian/pool/main/c/cairo/libcairo2_1.14.8-1_i386.deb
sudo dpkg -i libfreetype6_2.8-0.2_*
sudo dpkg -i libcairo2*
sudo apt-mark hold libfreetype6
xeyownt commented 4 years ago

Ok, coming back to say that although this indeed fix the issue, it also breaks the package dependencies (strange that dpkg did not reported that but anyway).

So I still have a Debian Strech VM, and I'll run the game in that box.

xeyownt commented 4 years ago

Just for the records, I settled to running Debian Stretch in a schroot environment (https://wiki.debian.org/Schroot), which is a bit lighter than running a VM.