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

--- Comment #3 from Telesto <[email protected]> ---
Created attachment 176734
  --> https://bugs.documentfoundation.org/attachment.cgi?id=176734&action=edit
Bibisect log

Bisected to
author  Luboš Luňák <[email protected]>        2021-02-25 10:05:36 +0000
committer       Luboš Luňák <[email protected]>     2021-03-01 15:56:46
+0100
commit  13f53741dabc33c5ac12ae26538a2803c6ba1073 (patch)
tree    9646a91f28e3f287f08dc0b18358a51f7805957b
parent  9cd95b10936450b5d1d60319192c25c4aea05fa3 (diff)
make sure Skia DWrite matches the given HFONT exactly (tdf#137122)
The problem appears to be that we use our private copy of the Dejavu
Sans fonts, installed using AddFontResourceExW( FR_PRIVATE ),
but that's not for whatever reason available for DirectWrite,
which made CreateFontFromLOGFONT() find the system-installed Dejavu
Sans, and if there was a difference between the two, then incorrect
glyph ids were used. Use CreateFontFaceFromHdc(), which seems
to match exactly. For private fonts this later fails the check
with GetSystemFontCollection(), which would be nice to handle
somehow, but I don't know how to get a font collection containing
those fonts other than modifying SalFont to use DirectWrite
API to install the fonts.

https://cgit.freedesktop.org/libreoffice/core/commit/?id=13f53741dabc33c5ac12ae26538a2803c6ba1073

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to