Bug 168372 - SVG import: SVGs generated by Inkscape and using font names with spaces are imported with font names including apostrophes
Summary: SVG import: SVGs generated by Inkscape and using font names with spaces are i...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
Version:
(earliest affected)
6.1.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks:
 
Reported: 2025-09-12 13:01 UTC by Mike Kaganski
Modified: 2025-09-18 07:27 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
A text using Liberation Sans (2.07 KB, image/svg+xml)
2025-09-12 13:01 UTC, Mike Kaganski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Kaganski 2025-09-12 13:01:29 UTC
Created attachment 202805 [details]
A text using Liberation Sans

The attachment is generated by Inkscape. It has a text element using Liberation Sans font.

Importing it to Draw, and breaking the "SVG" object to allow selecting and inspecting the text object, the font of the text is shown 'Liberation Sans' (*including* the apostrophes), and is italicized in the toolbar / sidebar font controls.

Opening the SVG in a text editor, and removing apostrophes surrounding the font name, gives the correct font name when imported into Draw.

Possibly relevant to / causing https://ask.libreoffice.org/t/rotated-text-in-svgs-have-incorrect-font-in-draw-and-exported-pdfs/126531/
Comment 1 Saburo 2025-09-18 07:27:51 UTC
Font name has apostrophes

bibisected with linux-64-6.1
Version: 6.1.0.0.alpha1+
Build ID: 3ca7be09834a26fbd1c371deabd7a58111092676

commit 3ca7be09834a26fbd1c371deabd7a58111092676
author	Armin Le Grand <Armin.Le.Grand@cib.de>	Thu May 10 17:49:19 2018 +0200

Replace SVGFilter using SVGIO

***
adding CC: Armin Le Grand