5

I have been experiencing this super annoying bug with fonts in LibreOffice. Please see below screenshot. The spaces between letters are just messed, no matter what font or level of zoom I choose. When I change the zoom level, the spacing is actually changing but still looks very ugly.

I have a pretty much default instalation of Ubuntu. I installed a couple of fonts (droid, mscorefonts). I did not change any font settings.

LINK TO SCREENSHOT

Fonts in other applications looks great. When I open the very same text in Google Docs or MS Web Word, it looks perfect.

I would appreciate any help concerning this issue. Thanks!

tohuwawohu
  • 7,502
tuhyk
  • 61

6 Answers6

3

I answer this old thread because I experienced the same problem and I just solved it with a different method. I run Ubuntu 16.04 and LibreOffice 5.1.4.2.

Essentially, I took the answer proposed by Fitoschido in this thread: https://ask.libreoffice.org/en/question/7127/calibri-font-not-rendering-correctly/

In short, one has to edit (or create) ~/.config/fontconfig/fonts.conf and add the following block:

<match target="font" >
  <edit name="embeddedbitmap" mode="assign">
    <bool>false</bool>
  </edit>
</match>

This has the effect of bypassing the bitmaps of the characters embedded in MS fonts and getting Ubuntu/Linux to apply anti-aliasing as I should. Now, MS fonts look much, much better in LibreOffice.

2

This worked for me on Ubuntu 16.04 with KDE

Open KDE System Settings > Fonts > set Use anti-aliasing: field into Enabled > click Configure > dialog Configure Anti-Alias appears > set Sub-pixel rendering type: field into RGB > set Hinting style: field into Slight > press OK > press Apply > restart your programs (LibreOffice etc.).

Credit goes to http://www.ubuntubuzz.com/2016/03/how-to-fix-ugly-libreoffice-font-rendering-kde.html

1
sudo apt-get install libreoffice-gtk3
Eliah Kagan
  • 119,640
Jamie
  • 11
0

If the bug is only with a single font:
You can find the fonts in /usr/share/fonts/truetype and edit them with any application you like.
Remember that in the Ubuntu repository you can find alternative versions of almost any character; often, open versions are better than proprietary ones.
If the bug is with many fonts:
A temporary solution is to use substitution table in character styles options to substitute the bad font with the good ones. You can also set the default fonts in the Writer options.
Another solution can be to tweak the characters options for the page: right click -> characters -> position -> distance. And make it fixed by disabling the default, it should be better.
If you can't solve, please consider of downgrading your libreoffice with Synaptics package manager (Menu -> Package -> Force version).
Hope you solve, my eyes would implode with a similar bug. :)

EDIT: if one of the following solutions works try to tweak the font rendering configuration by editing the files in /etc/fonts/conf.d/; use sudo nano /etc/fonts/conf.d/FILENAME on a terminal to do it.
For example try to disable font antialiasing by editing 10-antialias.conf (replace true with false); the same for 10-hinting.conf. If nothing changes symply re-replace false with true.
Please note that you will disable these features for the whole system, so revert the changes if they doesn't help.
The last possible cause of your problem can be the graphic rendering of the driver itself. You can try to execute sudo nano /etc/libreoffice/soffice.sh and ENABLE/DISABLE the OpenGL support. Restart Libreoffice after each edit.
If you can't solve downgrade or use OpenOffice or an equivalent suite, for your eyes (I'm not kidding).
I'm sorry if I wasn't of great help, but I don't know the source code of LibreOffice, I'm only trying various possibilities. :-)
Let us know if you solve or if you discover interesting things.

0

LibreOffice doesn't use anything but the freeware font engine so all MS and Monotype fonts will look bad as they are hinted or prepped for the Windows font engine.

Also, LibreOffice doesn't license any fonts from monotype so it's not the best solution if you create a document in Times New Roman in MS office, then open it up in LibreOffice - it will default to some random opensouce (typically poor quality) font.

Richard
  • 8,588
0

I want to share how I solved my problem with the ugly font rendering in LibreOffice.

First of all, I have to point out that after a fresh OS reinstall, I usually don't install the whole office suite, but only the LibreOffice Writer. Then I open some document and the font rendering is ugly. But I noticed that when I install the whole LibreOffice suite this problem is not present - the fonts are looking fine.

So I concluded that the correct rendering depends on something that is excluded from the installed packages when you install the Writer only. I tried installing different packages and I found that this is the libreoffice-gtk package. So, check out if it is installed on your system. I use Lubuntu 14.10 (GTK interface), so I suppose that's why this works for me.

Nephente
  • 5,875