Help with an old regression in text rendering needed

Khaled Hosny khaledhosny at eglug.org
Fri Jul 29 13:35:29 UTC 2016


On Wed, Jul 20, 2016 at 08:55:01AM +0200, Milos Sramek wrote:
> 
> The problem is demonstrated by the attached files, which show pixel
> overlays of documents rendered in LO a MSOffice. There are some
> differences visible also in the 'good' file, but these are much bigger
> in the 'bad' one where they lead to different wrapping in the second
> paragraph.
> 
> The files shows also another problem, different line spacing. This was
> perhaps inherited from OOO.
> 
> The problem is perhaps not that important for users, but for my testing
> it is a blocker

So there are two issue here, different line spacing (which shows up in
both versions) and different character spacing.

Unless you are specifically testing the line spacing, you can use fixed
line spacing to work around the first issue by avoiding the automatic
line spacing which depends on font metrics that are often interpreted
differently. I’m pretty sure LibreOffice is using the right font
metrics, but MS Office might be using the wrong ones (which is often the
case with old Windows applications) for backward compatibility. If you
can provide a test document and the specific fonts used I can give it a
look and see what is the possible source of difference.

Different character spacing can possibly be a kerning issue, this can be
tests by using a long string of characters with no kerning (aaaa's or iiii's
etc., but it depends on the font) and see if we still get differences.

Regards,
Khaled
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/libreoffice/attachments/20160729/28be90a0/attachment.sig>


More information about the LibreOffice mailing list