summaryrefslogtreecommitdiff
path: root/.buckconfig
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@centrum.cz>2021-02-25 10:05:36 +0000
committerLuboš Luňák <l.lunak@collabora.com>2021-03-01 15:56:46 +0100
commit13f53741dabc33c5ac12ae26538a2803c6ba1073 (patch)
tree9646a91f28e3f287f08dc0b18358a51f7805957b /.buckconfig
parent9cd95b10936450b5d1d60319192c25c4aea05fa3 (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. Change-Id: I10d8fcb618f3b4decbb0198274331d7beaf843d6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111522 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to '.buckconfig')
0 files changed, 0 insertions, 0 deletions