Rich text style SVG compatibility problem in Powerpoint
See original GitHub issueVersion
v5.1.1
Reproduction link
Steps to reproduce
- use rich option for xAxis
name: '{i|Hello} {sub|world}',
nameLocation: "middle",
nameTextStyle: {
fontFamily: 'Times New Roman',
fontSize: 19,
padding: [6, 0],
rich: {
sub: {
fontFamily: 'Times New Roman',
fontStyle: 'italic',
verticalAlign: "bottom",
fontSize: 13
},
i: {
fontFamily: 'Times New Roman',
fontStyle: 'italic',
fontSize: 19
}
}
}
},
-
save as SVG file
-
import into a Powerpoint (text rich style lost)
What is expected?
rich text styled as they’re defined
What is actually happening?
rich text styles lost in PPT
the SVG code <text style="font: italic 19px "Times New Roman"">Hello</text>
not working in PPT, it works in Inkscape.
if being changed into <text font-style="italic" font-size="19" font-family="Times New Roman">Hello</text>
, it works in both.
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
PowerPoint issues with imported SVG image with custom fonts
I have an PowerPoint issues with imported SVG image with custom fonts. I'm using Microsoft Office 365 Business.
Read more >Why text in exported SVG images may not display correctly
When you look at a diagram exported to an SVG image in IE or some SVG editors, the text may not display correctly....
Read more >SVG exported images contain 'Viewer does not support full ...
I am not sure if this is the same issue or not. SVGs used to display a no support message in the place...
Read more >Formatted Labels and Text not exported in SVG - Community
SVG labels text formatting Powerpoint ... Powerpoint doesn't support PDF. ... the problem, but wonder if there could be an issue with a...
Read more >How would you insert a .svg file in PowerPoint? - Quora
PowerPoint does not support svg images, so you'll need to convert the image to a supported format. This is quite easy to do,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@plainheart I believe it’s a typo and should be
getFill
font-size and font-family are still in the style, not attributes
@pissang