office-gobmx/drawinglayer/source
Armin Le Grand (Collabora) 4a0cd89904 CairoSDPR: Handle EmphasisMarks
Handling EmphasisMarks for direct text rendering
was a hard task - the EmphasisMark stuff is deeply
buried in vcl (would have needed to move quite some
includes from vcl to public) and thus hard to use.
It is also quite old (tools Polygon, Rectangle).

It was missing in the decomposition of the
TextDecoratedPortionPrimitive2D (for good reason),
but is needed now.

I found a way using a callback lambda function to
create the needed geometry in vcl and hand back the
needed data to the caller, in this case to the
decomposition. Adding it to the decomposition of
TextDecoratedPortionPrimitive2D also guarantees
that other renderers/usages will do the correct
thing and all will look identical.

Interestingly EmphasisMarks were never added to
Metafiles (see OutputDevice::ImplDrawEmphasisMarks)
so they were not 'missing' in Metafile-based
exports. But for SDPRs they have to work. I added
another encapsulating TextHierarchyPrimitive to
encapsulate primitives that do represent
EmphasisMarks and added to ignore these in the
VclMetafileProcessor2D (as needed).

Change-Id: I5b5c1528d86a123df2beb57d8366f05aa71e77cf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171826
Tested-by: Jenkins
Reviewed-by: Armin Le Grand <Armin.Le.Grand@me.com>
2024-08-14 10:48:51 +02:00
..
animation
attribute CairoSDPR: Improve animated tiled fills 2024-07-24 17:00:56 +02:00
drawinglayeruno
dumper
geometry
primitive2d CairoSDPR: Handle EmphasisMarks 2024-08-14 10:48:51 +02:00
primitive3d Fix wrong / misleading uses of fTools::(more|less|equal) with literal 0 2024-08-02 11:31:00 +02:00
processor2d CairoSDPR: Handle EmphasisMarks 2024-08-14 10:48:51 +02:00
processor3d cid#1555415 COPY_INSTEAD_OF_MOVE 2024-08-06 09:13:52 +02:00
texture cid#1554812 COPY_INSTEAD_OF_MOVE 2024-07-29 14:50:38 +02:00
tools cid#1558088 COPY_INSTEAD_OF_MOVE 2024-08-11 20:14:54 +02:00