Google chrome SVG背景文本在Safari和Chrome中被截断

Google chrome SVG背景文本在Safari和Chrome中被截断,google-chrome,svg,safari,Google Chrome,Svg,Safari,我试图在我的页面中呈现一个动态的svg图像。图像和文本工作正常,但在Safari和Chrome中可视化时背景文本会被截断 我在html中使用的代码如下 <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="1106px" height="auto" viewBox="0 0 110

我试图在我的页面中呈现一个动态的svg图像。图像和文本工作正常,但在Safari和Chrome中可视化时背景文本会被截断

我在html中使用的代码如下

<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="1106px" height="auto" viewBox="0 0 1106 558" enable-background="new 0 0 1106 558" xml:space="preserve" preserveAspectRatio="xMinYMin none">
  <g id="light_1">
       <rect x="334" y="256" fill="#B60C05" width="726" height="58"/>
       <text transform="matrix(1.5 0 0 1 345 301)" fill="#FFFFFF" font-family="'Open Sans'" font-size="50" letter-spacing="3.333">SCULTURE - DESIGN</text>
  </g>
  <g id="light_3">
      <text transform="matrix(1.1 0 0 1 500 239)" fill="#B60C05" font-family="Work Sans" font-size="36" letter-spacing="1.5" font-weight="300">ALESSANDRA POLITI PAGNONI</text>
  </g>
</svg>

建筑设计
亚历桑德拉·波利蒂·帕格诺尼
下面是一个css样式的示例(检查在Firefox或Safari/Chrome中打开时的外观)


有人能帮我解决这个问题吗?

依靠浏览器来呈现文本-尤其是使用自定义字体-完全相同不是一个好主意。解决问题的最佳方法是不使用
元素,而是将所有文本转换为路径(大纲)。这样,所有浏览器都能保证显示完全相同的文本。

谢谢,我会试试你的建议