Tests for improvement in rendering

Tomaž Vajngerl quikee at gmail.com
Mon Nov 8 15:33:13 UTC 2021

Hi Regina,

On Fri, Nov 5, 2021 at 10:01 AM Tomaž Vajngerl <quikee at gmail.com> wrote:

> Hi Regina,
> I guess rendering the shape to primitives and then dumping the primitives
> to an xml and asserting the values should do it, however the
> Primitive2dXmlDump will probably need to be extended for 3D primitives.
> I'll try to make a test that will cover some of the rendering aspects for
> fontworks.

I have extended the Primitive2dXmlDump [1] so it also should be able to
dump 3D primitives (and introduced Primitive3dXmlDump for that). The key
here is the ScenePrimitive2D, which is the 2D "surface" on which the 3D
scene is rendered to.

With this you should be able to write tests for fontwork objects and also
other 3D objects. As an example I've added testFontWorks
(svx/qa/unit/svdraw.cxx). Tell me if there is something missing.

 [1]: https://gerrit.libreoffice.org/c/core/+/124804

Best regard,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice/attachments/20211108/648a79e3/attachment.htm>

More information about the LibreOffice mailing list