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: RESOLVED FIXED
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: Xisco Faulí
URL:
Whiteboard: target:26.8.0
Keywords: bibisected, bisected, regression
Depends on:
Blocks: SVG-Import
  Show dependency treegraph
 
Reported: 2025-09-12 13:01 UTC by Mike Kaganski
Modified: 2026-01-23 10:33 UTC (History)
3 users (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
Comment 3 Xisco Faulí 2026-01-22 18:42:05 UTC
https://gerrit.libreoffice.org/c/core/+/197864
Comment 4 Commit Notification 2026-01-23 10:33:16 UTC
Xisco Fauli committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/99d19aebd33d7834017ec09b83e081623e714112

tdf#168372: remove surrounding apostrophes in font-family

It will be available in 26.8.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.