sw: add rendering for semi-transparent text

Desktop / LibreOffice - Miklos Vajna [collabora.com] - 7 January 2020 08:26 UTC

I considered passing the text color's alpha value down to the various
vcl backends, but this would need changes everywhere (cairo, opengl, pdf export, etc). It's much easier to go via DrawTransparent(), that's how semi-transparent text in Draw/Impress already works.

Change-Id: I96f15e6764c3c88ba67dd72dc8708414d7c6050c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86294

bf540873f5e2 sw: add rendering for semi-transparent text
sw/CppunitTest_sw_core_text.mk | 1 +
sw/qa/core/text/text.cxx | 32 ++++++++++++++++++
sw/source/core/text/inftxt.cxx | 75 ++++++++++++++++++++++++++++++++++++++++++
3 files changed, 108 insertions(+)

Upstream: cgit.freedesktop.org

  • Share