implement text rendering using directly Skia (X11)

Desktop / LibreOffice - Luboš Luňák [collabora.com] - 18 March 2020 09:47 EDT

The Cairo-based way reuses code that is used for OpenGL, but it's needlessly complicated, given that Skia itself is capable of text rendering as well. This requires a small patch for Skia so that it uses the FcPattern* we use for selecting a font. The rendering with this commit is usable, but visually the result is noticeably different, so this will need tweaks to the font rendering (TBD).

Change-Id: I058c282307106c929ccc9faa7b2bddfabf0f0a2c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90580

076926cef97c implement text rendering using directly Skia (X11)
RepositoryExternal.mk | 1 +
external/skia/UnpackedTarball_skia.mk | 1 +
external/skia/fontconfig-get-typeface.patch.0 | 32 +++++++++++
vcl/Library_vcl.mk | 3 +-
vcl/Library_vclplug_gen.mk | 9 ++-
vcl/inc/skia/gdiimpl.hxx | 3 +
vcl/inc/skia/x11/textrender.hxx | 40 +++++++++++++
vcl/inc/unx/fc_fontoptions.hxx | 2 +-
vcl/inc/unx/glyphcache.hxx | 4 +-
vcl/skia/gdiimpl.cxx | 44 ++++++++++++++
vcl/skia/x11/textrender.cxx | 79 ++++++++++++++++++++++++++
vcl/unx/generic/gdi/cairotextrender.cxx | 14 +----
vcl/unx/generic/gdi/salgdi.cxx | 5 ++
vcl/unx/generic/glyphs/freetype_glyphcache.cxx | 18 +++++-
14 files changed, 234 insertions(+), 21 deletions(-)

Upstream: cgit.freedesktop.org


  • Share