office-gobmx/svgio
Mike Kaganski 86a8a3a43b tdf#160594: Use the recommended fallback of 0.5em for ex in font-size
This fixes the error of identical treatment of em and ex in font-size,
which violated https://drafts.csswg.org/css-values-4/#font-relative-length.
The fix uses the fallback of 0.5em for ex, similar to the code used in
SvgNumber::solveNonPercentage. A follow-up should implement the correct
use of "x-height of the first available font".

Change-Id: Id9d581994e158d629d9752299ad93ac7e9fe4cad
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166234
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-04-18 18:21:15 +02:00
..
inc tdf#160593: make sure to use current element's font size for em unit 2024-04-18 18:21:09 +02:00
qa/cppunit tdf#160594: Use the recommended fallback of 0.5em for ex in font-size 2024-04-18 18:21:15 +02:00
source tdf#160594: Use the recommended fallback of 0.5em for ex in font-size 2024-04-18 18:21:15 +02:00
CppunitTest_svgio.mk tdf#160386: Add support for switch element 2024-03-27 23:44:40 +01:00
CppunitTest_svgio_read.mk
CppunitTest_svgio_tools.mk tdf#160386: Add support for switch element 2024-03-27 23:44:40 +01:00
IwyuFilter_svgio.yaml
Library_svgio.mk tdf#160386: Add support for switch element 2024-03-27 23:44:40 +01:00
Makefile
Module_svgio.mk
README.md
svgio.component

SVG Reader

Introduction

The svgio module is used to read SVG (Scalable Vector Graphics[1]) files. It is an XML based format for vector graphics.

This module contains svgio/source/svgreader which is used for embedding an SVG file with "Insert -> Picture -> From File".

SVG is an open standard provided by the World Wide Web Consortium (W3C).

[1] Scalable Vector Graphics

How does it work?

svgio module uses sax for reading xml and turns it into drawinglayer primitives. The rendering is done via drawinglayer primitives. For more information, you should refer to drawinglayer documentation.

Known Bugs

Known remaining bugs for this module are gathered here:

Dependencies

Direct dependencies for emfio are drawinglayer and sax.

References

Documentation for the SVG format is available on the W3C website: