blob: 94aa7011fc9228b0bb7e184c25cea6c66660243c [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="100px" height="100px">
<!-- Test that SVG fonts in RTL correctly render mirrored characters -->
<defs>
<font horiz-adv-x="500">
<font-face font-family="SVGFont" units-per-em="1000" ascent="800" descent="200" alphabetic="200"/>
<glyph unicode="]" glyph-name="close-bracket" d="M0 0L500 0L500 900L0 900L0 800L400 800L400 100L0 100Z"/>
<glyph unicode="[" glyph-name="open-bracket" d="M500 0L0 0L0 900L500 900L500 800L100 800L100 100L500 100Z"/>
</font>
</defs>
<g font-size="20">
<!-- SVG Font: Should produce "hello" in brackets: "[hello]" not "]hello[" -->
<text font-family="SVGFont, serif" x="20" y="20" direction="ltr" unicode-bidi="bidi-override">[hello]</text>
<!-- Regular Font: Should produce "hello" in brackets: "[hello]" not "]hello[" -->
<text x="20" y="40" direction="ltr" unicode-bidi="bidi-override">[hello]</text>
<!-- SVG Font: Should produce "שלום" in brackets: "[שלום]" not "]שלום["-->
<text font-family="SVGFont, serif" x="100" y="70" direction="rtl" unicode-bidi="bidi-override">[שלום]</text>
<!-- Regular Font: Should produce "שלום" in brackets: "[שלום]" not "]שלום["-->
<text x="100" y="90" direction="rtl" unicode-bidi="bidi-override">[שלום]</text>
</g>
</svg>