Chart test failures on mac: text size differences

Khaled Hosny khaledhosny at eglug.org
Fri Feb 24 19:40:31 UTC 2017


On Fri, Feb 24, 2017 at 05:41:25PM +0000, Tamas Zolnai wrote:
> Hi Khaled,
> 
> I see you're working on text rendering, so I thought that my findings
> might be usefull for you. I had a look at chart test failures on Mac
> and found that it is because of text size differences. (I checked your
> latest change [1], but the differences are still there.)
> Both text width and height is different (comparing Windows and Mac).
> Interestingly when I changed the font to a bundled, monospace font
> (e.g. Liberation Mono, DejaVu Sans Mono), width differences
> disappeared and only height differences remained. So there are at
> least two kind of issues here. One which is about the proportional
> fonts character width and one related to the text height.
> I added a minimal test case to the source [2] with which it's easier
> to debug the second issue (for the first issue the test case's font
> need to be changed to a bundled, proportional font).

We need to first who Chart is calculating the text width and depth,
namely which function(s) it uses from vcl, to be able to debug it and
see where are these differences coming from.

Regards,
Khaled


More information about the LibreOffice mailing list