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/
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
Font family is read here: https://opengrok.libreoffice.org/xref/core/svgio/source/svgreader/svgstyleattributes.cxx?r=f127f708f6ccc941beabaacc7be18daf478a79cd#1652
https://gerrit.libreoffice.org/c/core/+/197864
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.