Description: I need to show an SVG file in a HTML page I chose 1942 report font for my text; when I exported to the SVG format I noticed that the font is substituted by another one. Embracing the font name with ticks seems to solve the problem font-family="1942 report" <--- wrong rendering font-family="'1942 report'" <--- right rendering Steps to Reproduce: 1. Write a text with 1942 Report font (I image that all family fonts with more then a word in it's name show the same behaviour) 2. export to SVG 3. load the SVG in a browser Actual Results: the text font is sobstituted Expected Results: The text should be rendered with the rigth font Reproducible: Always User Profile Reset: No Additional Info:
What option do you use to export in svg? Indeed, I don't see svg format in "Save as" or "export"
Forget my previous comment, I must use Draw instead of Writer.
On pc Debian x86-64 with LO Debian package 6.3.0.4, I don't reproduce this. I created a brand new odg file, insert a Text box and typed "test" in it with font "Liberation Sans embedded" svg file shows: <font-face font-family="Liberation Sans embedded" units-per-em="2048" font-weight="normal" font-style="normal" ascent="1852" descent="423"/> ... font-family="Liberation Sans, sans-serif" font-size="635px" Do you reproduce this with a brand new file and another font included in LO containing some spaces?
The problem seems to be present only with that font. Unfortunately I don't have other font with numbers in the name. I'll try to download and use another font that have numbers in its first part name.
On Win10 with LO 6.2.5 + font retrieved from https://www.dafont.com/fr/1942-report.font, I don't reproduce this. font-family="1942 report embedded" ... font-family="1942 report, monospace"
I uninstalled LO 6.2.5 and installed 6.3.0.4, I still don't reproduce this :-( Would it be possible you attach the original file so I try to convert it?
giancarlo orru Attachments 4:16 PM (0 minutes ago) to bugzilla-daemon I put two text using 2 differente fonts that have font family that starts with numbers. The problem is shown for both text box in chrome. At this point the bug seems to be in the svg parser: both chrome and edge (in windows and surely chrome in ubuntu) show the same problem. Changing the svg code by hand in this way solve the problem <tspan xmlns="http://www.w3.org/2000/svg" class="TextParagraph" font-family="'1942 report', monospace" font-size="1693px" font-weight="400"><tspan class="TextPosition" x="1950" y="3401"><tspan fill="rgb(0,0,0)" stroke="none">Prova 1942</tspan></tspan></tspan> How can I attach the example file?
To attach a file, just click on https://bugs.documentfoundation.org/attachment.cgi?bugid=127005&action=enter
Created attachment 153511 [details] test file
You attached result file since it's the svg. We need the original file, with odg extension. The goal is to export it at SVG and try to reproduce this.
Created attachment 154241 [details] test file odg format
Created attachment 154242 [details] test file svg export
Created attachment 154244 [details] test file expected rendering
Created attachment 154263 [details] Svg generated from LO 6.3.1 Win On Win10 with LO 6.3.1, I generated the svg. If I open it on IE, font 1942 appears but it's not the case if I use Firefox.
Many thanks for sharing this good article. Very interesting ideas! https://great-saver.com/kmartfeedback-kmart-survey/
(In reply to Julien Nabet from comment #14) > Created attachment 154263 [details] > Svg generated from LO 6.3.1 Win > > On Win10 with LO 6.3.1, I generated the svg. > If I open it on IE, font 1942 appears but it's not the case if I use Firefox. Ok, so the font data is saved, but unfortunately this technology is abandoned and obsolete. Firefox will likely never implement it, see the yellow note box here: https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/SVG_fonts