[Libreoffice-bugs] [Bug 135351] Wrong glyphs rendered with Skia

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri Aug 21 14:38:11 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=135351

--- Comment #22 from Mike Kaganski <mikekaganski at hotmail.com> ---
(In reply to Luboš Luňák from comment #16)
> Interestingly, "Uwqteg" is "Source" and "Enkem" is "Click", if shifted by
> two in ASCII. That suggests something uses wrong glyphs for some reason.

Nice find!

> I have no idea how to debug this though, especially since I cannot reproduce
> locally.

While I could not make the Source Sans fonts to misbehave after reinstalling, I
could repro the problem using the fonts from comment 21 and the document from
comment 20.

> On thing you could try is to modify
> WinSkiaSalGraphicsImpl::DrawTextLayout() and comment out the call to
> createDirectWriteTypeface(), which should switch text rendering from
> DirectWrite to GDI.

Making typeface to get its value from SkCreateTypefaceFromLOGFONT fixes the
problem with the font ...

(In reply to Luboš Luňák from comment #18)
> Since this is possibly a bug in Skia, one more thing you could try is to
> check other software that uses Skia, namely Chrome/Chromium. Does the
> problem show there too with the affected font?

I could not repro, neither in Chrome dialog (where I could try to modify the
"standard" fonts), nor using an html like

> <html><body><p style="font-family:Utopia">This is a <i>paragraph.</i></p></body></html>

Note that in the Chrome dialog, I could not play with italics, which seem to be
affected in the bugdoc from comment 20.

Any other code pointer I could check (if you have an advise to make debugging
easier)?

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200821/061a17d6/attachment.htm>


More information about the Libreoffice-bugs mailing list