Date: prev next · Thread: first prev next last
2016 Archives by date, by thread · List index


Would it be helpful to look at the way that OutputDevice handles laying out text?

When I was looking at this code early last year I found that I had to try to understand what 
OutputDevice did before I could come even *close* to understanding what SalLayout was attempting. 

For instance, the DX array code looks suspiciously like it was adopted from the way that EMF (and I 
guess Windows GDI?) handles text layout. 

If I were to start a Wiki page, would that be at all helpful? It would be rough, but if others 
wanted to correct my mistakes and misunderstandings then could this be helpful in any way?

Chris

On 2 Feb 2016, at 8:15 PM, Miklos Vajna <vmiklos@collabora.co.uk> wrote:

Hi,

I think the problem to solve is that we have different layout on Linux,
Windows and OS X, which means it's next to impossible to write unit
tests that assert the text is laid out correctly, since there can be
small differences today. The hope is that this is the root cause of e.g.
the chart tests which are not enabled by default today.

As far as I know, there are two ways you can solve this:

- use the Linux stack everywhere (fontconfig, freetype, harfbuzz?
 something like that), IIRC that's what e.g. Chromium does
- create a 4th layout in VCL, which is just a stub, but gives exactly
 the same results in all platforms, to allow writing unit tests that
 are executed in all platforms

Regards,

Miklos
_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.