Текст RTL (иврит) показывает обратное, когда находится на пути SVG - PullRequest
0 голосов
/ 28 июня 2018

Я не могу правильно отобразить текст RTL на изогнутом пути в SVG. Пробовал этот кодпан но не могу показать Пробовал добавлять направление, режим письма, dir, override-bidi - ничего не работает Есть ли способ сделать это, не обращая адреса байтов текста или точек пути? В будущем я планирую использовать смесь Eng / Heb, так что не хочу менять текст вместо

<!-- Learn about this code on MDN: https://developer.mozilla.org/en-US/docs/Web/SVG/Element/textPath -->


<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 22.0.1, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
<svg version="1.2" baseProfile="tiny" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
	 x="0px" y="0px" viewBox="0 0 177.5 175" xml:space="preserve">
<defs>
    <pattern id="image" x="0" y="0" patternUnits="userSpaceOnUse" height="200" width="200">
      <image x="0" y="0" xlink:href="http://i.imgur.com/7Nlcay7.jpg" width="200" height="200"/>
    </pattern>
  </defs>
  
 <ellipse id="FillThisWithColorOrPattern" fill="url(#image)" stroke="#333333" stroke-miterlimit="10" cx="90" cy="87" rx="87.5" ry="82"/>
<circle id="Inner_1_" fill="#FF0000" cx="90" cy="87" r="35"/>
	<path id="TextLine1_Path" fill=None        
	 d="M90,137.5c-27.8,0-50.5-22.7-50.5-50.5S62.2,36.5,90,36.5s50.5,22.7,50.5,50.5S117.8,137.5,90,137.5z M90,37.5
		c-27.3,0-49.5,22.2-49.5,49.5s22.2,49.5,49.5,49.5c27.3,0,49.5-22.2,49.5-49.5S117.3,37.5,90,37.5z"/>
   <text stroke="#00FF00">
    <textPath xlink:href="#TextLine1_Path">
     שלום כיתה אלף
    </textPath>
  </text>
</svg>
...