21

On every operating system whenever I install LibreOffice it always seems to have an issue with properly spacing characters.

Here are some examples:
Ugly kerning

The first word is the exact same word in the same document and the same font, and yet, it looks different. (around letter e and n)

Second word has a strange gap between p and a

In the last word A and d almost overlap.

All of these are regular fonts. Nothing fancy. Any way to fix this?

P.S. Format>Character>Postition>Pair Kerning is already enabled.

Zanna
  • 72,312
Rtsne42
  • 1,217

6 Answers6

1

The kerning issues are very likely due to issues introduced in LibreOffice 5.3.

While LO 5.3 did introduce a feature targeted at complex glyph positioning (GPOS) and ligature replacement, etc., this new font rendering engine (or the tech is was attached to) was also somewhat broken/sloppy in regards to traditional kerning.

Because this question was asked shortly after the release of 5.3, the new engine seems the likely suspect here. (Although, as one commenter above notes, we don't know the LO version in question here.)

Thus, the old workaround was to fall back to LO 5.2.x. Very recently, however, LO 7.4 was released which has finally (6 years later) addressed some of these kerning issues. (Well, 7.4 looks good to me thus far, but I have no expectations it will stay fixed--or fixed for all--when it comes to free software.)

If, however, you are seeing kerning issues due to hardware, OS, or app settings (maybe you turned off kerning, font smoothing, or something else), no version of LO will likely help. These issues are typically related to things like anti-aliasing and sub-pixel positioning features such as ClearType. If things look better printed or zoomed in, it's probably not LO's fault.

juanitogan
  • 166
  • 4
0

Go to Tools - Options - (Options will pop up) Select Libreoffice - View. Then check mark the boxes - Hardware Acceleration, Anti-aliasing, Show Preview of Fonts, and Screen Font Anti-aliasing. If you have any memory problems after, uncheck Show Preview of Fonts.

Nishnabe
  • 398
0

in my case the entire text had slightly overlapping characters and none of the previous solutions worked for me. The only workaround was to set the font scale factor to a value other than 100, such as 99% or 101%, in format->Character->Scale width

0

The weird letter spacing is due to bugs which have been resolved in LibreOffice 5.3.

At the time of writing, version 5.3.0 is available through a PPA, type the following into a terminal to ensure the latest version is installed:

sudo add-apt-repository ppa:libreoffice/ppa
sudo apt-get update
sudo apt-get install libreoffice
Tyson
  • 199
0

Maybe try to disable the "hardware acceleration" option under the Tools>Properties menu, then LibreOffice>View.

It helped me to solve some letter glitches like that in the past.

Taz8du29
  • 307
  • 1
  • 7
0

Your issue can probably be fixed by adding these settings to ~/.config/fontconfig/fonts.conf:

<match target="font">
 <edit name="rgba" mode="assign">
  <const>rgb</const>
 </edit>
</match>
<match target="font">
 <edit name="hinting" mode="assign">
  <bool>true</bool>
 </edit>
</match>
<match target="font">
 <edit name="hintstyle" mode="assign">
  <const>hintslight</const>
 </edit>
</match>
<match target="font">
 <edit name="antialias" mode="assign">
  <bool>true</bool>
 </edit>
</match>

This snippet does the following:

  • Enables subpixel antialiasing, which improves the looks of many fonts (this is the same system used by ClearType on Windows)
  • Sets font hinting to slight (this is usually the global default, but LibreOffice seems to not see it)
  • Turns on normal antialiasing (this works in conjunction with subpixel antialiasing)

Font hinting causes letters to be aligned with the pixel grid on your monitor, which can possibly cause kerning issues. By setting this to slight, inter-character space is preserved.

These issues usually only occur with Windows fonts or fonts designed to be metrically equivalent (such as the default LibreOffice font), for those are not designed with the concern of snapping to a pixel grid.

iczero
  • 344