Skip to content

Rich text style SVG compatibility problem in Powerpoint #15064

@mindon

Description

@mindon

Version

v5.1.1

Reproduction link

https://k06zm.csb.app/

Steps to reproduce

  1. 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
       }
     }
   }
 },
  1. save as SVG file

  2. 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 &quot;Times New Roman&quot;">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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions