Ask Your Question

Font-rendering version 5.3 [closed]

asked 2017-02-10 03:08:26 +0200

LibreGuy gravatar image

updated 2020-09-24 13:55:00 +0200

Alex Kemp gravatar image

Can someone form the developers team tell me if the new font-rendering engine will be improved?

In Calc I use the standard Liberation Sans font at 9 pixels, and some letters are really squeezed together. This happened after updating to version 5.3. As I understand a new font-rendering engine has been implemented in version 5.3, but can we expect some improvements on the future versions? This letter-squeezing is not good :-(

Click for image

Have a look at the image and especially the word 'Amsterdam'.

As you can see in the image there is a lot of space between the first A and m.

But then the letters ste are totally squeezed together.

Will this be improved in a future version of LO?

(edit: activated screenshot)

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2020-09-24 13:54:16.979893


Took a look at it today - appears to just be a hinting artifact due to the small type size on screen.

Zoom your spreadsheet to 200% and the letter spacing issues disappear. The font render engine then has enough pixels to display the font with less shifting to line-up with screen pixels.

And the 9pt font prints just fine.

Info on Hinting and what it tries to solve. Microsoft Typography - TrueType Hinting

Nothing to fix in LO.

LibreTraining gravatar imageLibreTraining ( 2017-02-10 22:04:58 +0200 )edit

Did you look at my second image? It was fine before, and now it isn't anymore. Yes, when I zoom in it gets better ... but shouldn't it be fine in the first place, at 100% view? Don't you agree with that? I don't know how all of this rendering and hinting works. All I see is that something that was great is now not anymore. The big question is .... can it be fixed? :-)

LibreGuy gravatar imageLibreGuy ( 2017-02-10 22:22:43 +0200 )edit

No, I do not agree.

Read the hinting explanation I linked to above. It explains the issue.

There is nothing to fix. It is working as expected.

LibreTraining gravatar imageLibreTraining ( 2017-02-11 01:20:07 +0200 )edit

You are looking at it from a technical point of view. I am looking at it as being a user. All i see is that there is a difference in rendering before and after version 5.3

Before version 5.3 at normal 100% view the rendering was better than it is now. I'm not looking at technical aspects. I'm just looking at what I am seeing. I assume we both see the same? Then what makes you think the new rendering where letters are squeezed together is better than the earlier type of rendering?

LibreGuy gravatar imageLibreGuy ( 2017-02-11 01:32:19 +0200 )edit

I just compared v5.3.0.3 to v5.2.5.1 and I can see the difference you mention. It does look better on the previous version. The new font rendering engine obviously works differently.

I also tested the Lato font at 9pts on both versions. It looks good on both versions. Lato has very good hinting and it was designed to look good on screen.

Verdana and Tahoma were also designed to look good on screen. Tested Tahoma and it also looks good on both versions. Wine includes a free version of Tahoma

LibreTraining gravatar imageLibreTraining ( 2017-02-11 01:57:51 +0200 )edit

I can understand your frustration, unfortunately it is not likely anything can be done.

The new font rendering engine works differently and it is not going to be changed.

Hmmm ... Maybe I will try running Liberation Sans thru some font hinting tools and see if it improves the rendering at 9pts - like Lato and Tahoma

LibreTraining gravatar imageLibreTraining ( 2017-02-11 02:02:33 +0200 )edit

Thank you for taking time to answer my questions. I appreciate that.

I do not have the Lato font installed, and I like to use a font that comes bundled with LO. I like how Liberation Sans looks and that's why I choose to use it. It really is a shame that the rendering is quite crappy now :-s It used to be great.

I have no idea how these font hinting tools you are mentioning work, but if you can improve it, I myself and presumably many others will be very very happy!!! Thanks in advance!!!!

LibreGuy gravatar imageLibreGuy ( 2017-02-11 02:34:03 +0200 )edit

Someone recently asked what fonts are included in LO - and I could find almost nothing at all. So for the last few days I have been working on a LibreOffice Font Guide. When creating the 100 font specimen pages I have found a couple other anomalies to investigate.

Will check-out those and the hinting issue tomorrow.

LibreTraining gravatar imageLibreTraining ( 2017-02-11 03:43:17 +0200 )edit

Many thanks in advance! I truly hope the issue with Liberation Sans will be resolved.

LibreGuy gravatar imageLibreGuy ( 2017-02-11 03:59:59 +0200 )edit

I looked at the word "Amsterdam" on this web page using Linux FireFox 45.7.0 ESR with at a variety of bigger and smaller zoom settings, and it does not appear to have the space after the A, like @LibreGuy's example image is showing. So I have to agree that the way that LO is drawing fonts on the screen could be better.

EasyTrieve gravatar imageEasyTrieve ( 2017-02-11 21:39:09 +0200 )edit

2 Answers

Sort by » oldest newest most voted

answered 2017-02-10 06:11:07 +0200

LibreTraining gravatar image

updated 2017-02-12 00:48:00 +0200

Hmmmm ... when text that small is rendered onscreen in pixels the rendering engine has to make some adjustments by shifting some pixels left and right, up and down in order to draw the character.

Look at the first letter m - all three verticals are directly inline in the pixels. The rendering engine may have shifted the character to the right to make that happen. When the width of vertical lines in the characters are one pixel or less things can a bit dicey during the rendering. Compromises must be made.

Font files may also contain hinting tables which help improve the look especially at smaller type sizes. Depends on the font. Depends on the quality of the hinting.

The rendering engine may also have a lower limit on type size where it stops adjusting due to the limitations of pixels at 72 dpi.

On my phone right now, but will check this out tomorrow on a desktop computer. I will test Liberation Sans and a font I know is very well hinted down to small sizes, Lato.

Have to look into the features/limitations of the new rendering engine too.

EDIT to add image after discussion in comments above.

Updating the hinting helped!

image description

LibreOffice Calc v5.3.0.3

Line 1: Liberation Sans - 9pt - gap between A and m

Line 2: Arial - 9pt - same gap

Line 3: Liberation Sans KM - 9pt - gap gone! ... and letter t looks good. (KM=me)

So the new font rendering engine takes advantage of better hinting. It appears that "fuzzy" hinting works better.

EDIT to add font file


Just rename the file to: LiberationSansKM-Regular.otf

Install like any other font.

edit flag offensive delete link more


As was discussed on developers' IRC, it's intentional that now font layout uses kerning everywhere (unlike what happened previously, e.g., on Windows). Of course, it may require improvements with fonts hinting, as LibreTraining suggests.

Mike Kaganski gravatar imageMike Kaganski ( 2017-02-10 06:58:48 +0200 )edit

Please read my second answer (which should have been a comment actually).

LibreGuy gravatar imageLibreGuy ( 2017-02-10 16:18:02 +0200 )edit


Thanks, but I don't totally understand yet. Will your fix be implemented in the next version of LO? I don't want a fix that only looks good on my screen, but not on others'. So I hope this update will be a part of the next update to come. Will this be the case?

Your improvement looks certainly better! I do notice though the letter 'm' has become smaller in relation to the 5.2 version, so maybe a little more tuning/hinting is necessary?

LibreGuy gravatar imageLibreGuy ( 2017-02-12 01:12:44 +0200 )edit

The "fuzzy" hinting is visually closer to the actual size of the characters.

Regarding any font changes getting into the LO distribution ... I am just another user. So getting any improvements into LO would be a long process which I doubt would be successful anyway. And to "do-it-right" would require many more hours to fix/improve multiple font files. Given that it is doubtful that any such changes would actually get adopted, I do not see the value in investing all that time.

LibreTraining gravatar imageLibreTraining ( 2017-02-12 04:18:22 +0200 )edit

Totally wrong.

It's great that "just another user" created a fix for a font that could make LO visually more attractive. And what a pity that it looks like a "long process" to get that improvement to LO! It's not. All you need to do is to have a font's diff and push it to gerrit. No need to e.g. build LO; everything is doable from web interface.

If you have no time to do it, you may at least post the diff here, post license statement, and I'll do rest for you.

Mike Kaganski gravatar imageMike Kaganski ( 2017-02-12 08:25:41 +0200 )edit

Well ... maybe then the two of you can improve the font. Would be very nice! :-)

LibreGuy gravatar imageLibreGuy ( 2017-02-12 21:57:50 +0200 )edit

OK Mike, I will put it in the ToDo list to look at it a lot closer to see what needs to be done. As I said above I have found some other issues in the fonts while working on the font guide. Need to finish the LO Fonts guide, do the Separate Install GUI guide, and finish the base book index ... then I will come back to this.

LibreTraining gravatar imageLibreTraining ( 2017-02-14 00:41:46 +0200 )edit

Fine! When you have time, please leave a note here, or mail me at, or contact me at #libreoffice-dev. I would be glad to help you.

Mike Kaganski gravatar imageMike Kaganski ( 2017-02-14 06:02:52 +0200 )edit

Thank you both for fixing the problem!

LibreGuy gravatar imageLibreGuy ( 2017-02-14 20:46:01 +0200 )edit

answered 2017-02-10 16:16:04 +0200

LibreGuy gravatar image

updated 2020-09-24 13:56:25 +0200

Alex Kemp gravatar image

I don't know how to add an attachment in the 'comments' editor, so I created this answer (which should have been a comment).

I was able to find an old screenshot of a Calc file that has the word Amsterdam in it. Also this is Liberation Sans 9 pixels (please ignore the grey background which is part of the lay out).

The font rendering was great!!!

Click for image 1

Now what I did is I pasted this image into the previous image and I created an animated gif.

So now we can see how it was (great) and how it became in version 5.3 (not great at all).

Click for image 2

I don't truly understand why this hasn't been thoroughly tested before implementing the new font rendering engine. How could this have happened? If you implement something big and new, it is supposed to improve things, and that is not what is happening here as you all can see.

The only question I have right now is ... will this be improved in a future version? Can you please tell me?

(edit: activated screenshots)

edit flag offensive delete link more


  1. It was tested. It was tested by developers, and by those 2 1/2 users who volunteer to install and test alphas and betas. Furthermore, this wasn't something "big and new implemented", it was adopting code that worked on Linux for years, to also work on Win&Mac.
  2. To improve testing intensity, bug finding sessions were held by TDF, so that users could devote a couple of hours to test future versions and report regressions they find to improve their office suite.
Mike Kaganski gravatar imageMike Kaganski ( 2017-02-10 16:30:32 +0200 )edit
  1. And testing was quite successful. It allowed Khaled and others to find and fix many regressions.
  2. Then, time-based release schedule came to new 5.3.0 release - and it came to us. But the .0 release isn't recommended to those whose life depends on it. To the contrary - it's promoted for early adopters, who will further test it and help improve it.

So, I find the situation OK. If you believe something needs improvement, that's perfectly OK: please file a bug report.

Mike Kaganski gravatar imageMike Kaganski ( 2017-02-10 16:33:43 +0200 )edit

@LibreGuy: you've so much rep you should be able to edit the OP and attach stuff.

rautamiekka gravatar imagerautamiekka ( 2017-02-10 16:45:11 +0200 )edit

@rautamiekka I don't see the 'attachment' button in the comments editor.

@Mike Kaganski

I was not attacking you if that's what you think. I'm just trying to give positive feedback and things to think about when implementing new features. I do like LO very much and appreciate all the hard work the developers put in to it. Not only the font rendering changed in 5.3, but also my columns in a Calc spreadsheet got wider. These are strange things which I would expect someone to notice when testing.

LibreGuy gravatar imageLibreGuy ( 2017-02-10 22:20:14 +0200 )edit

I said the OP, not the comments.

rautamiekka gravatar imagerautamiekka ( 2017-02-11 14:39:40 +0200 )edit

My mistake. I will keep in mind for next time, thanks. (I'll leave it as it is now to prevent confusion.)

LibreGuy gravatar imageLibreGuy ( 2017-02-11 21:25:57 +0200 )edit

Question Tools

1 follower


Asked: 2017-02-10 03:08:26 +0200

Seen: 1,494 times

Last updated: Sep 24 '20