diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-10-03 19:45:20 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-10-04 20:51:56 +0200 |
commit | 6e2a7571e8ee4960f54610ba790394202c4d7aed (patch) | |
tree | 4c75d39ee79382bd27ff9f7011e6c91b5acedf17 /include/vcl | |
parent | c6f0192114f1d09a9247199ef05149e75cfacb36 (diff) |
tdf#127529 vertical text not drawn in slideshow canvas
because the canvas text drawing impl falls back to using an OutputDevice view
of the canvas to use the vcl text drawing apis to achieve vertical text
To get an OutputDevice view of the canvas there is a specific VirtualDevice
ctor available to create a VirtualDevice that, unlike the normal case, doesn't
have its own specific backing buffer, but instead draws to the underlying target
provided via the SystemGraphicsData arg
The svp/gtk impl missed that understanding and provided an ordinary
VirtualDevice with its own backing buffer, not a VirtualDevice that would draw
to the expected target surface of the canvas. So the vertical text was drawn to
a different surface than the intended one, and was just discarded.
The cairo use in the canvas long precedes the use of cairo in vcl itself.
Seeing as text is now rendered with cairo in all cases where the canvas uses
cairo its probably now pointless for canvas to have its own text rendering
path.
Change-Id: Ie3b0a43ca2b746cbfe25e2d0415315b3d5403cd2
Reviewed-on: https://gerrit.libreoffice.org/80162
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/vcl')
-rw-r--r-- | include/vcl/sysdata.hxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/vcl/sysdata.hxx b/include/vcl/sysdata.hxx index 28f991db4878..722c223f5e19 100644 --- a/include/vcl/sysdata.hxx +++ b/include/vcl/sysdata.hxx @@ -143,7 +143,8 @@ struct SystemGraphicsData long hDrawable; // a drawable void* pVisual; // the visual in use int nScreen; // the current screen of the drawable - void* pXRenderFormat; // render format for drawable + void* pXRenderFormat; // render format for drawable + void* pSurface; // the cairo surface when using svp-based backends #endif SystemGraphicsData() : nSize( sizeof( SystemGraphicsData ) ) @@ -162,6 +163,7 @@ struct SystemGraphicsData , pVisual( nullptr ) , nScreen( 0 ) , pXRenderFormat( nullptr ) + , pSurface( nullptr ) #endif { } }; |