Skip to content

Commit f2e5006

Browse files
authored
1 parent 1722fb6 commit f2e5006

2 files changed

Lines changed: 40 additions & 0 deletions

File tree

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<meta charset="utf-8">
4+
<title>SVG text: combining marks on a textPath shape as one typographic character (reference)</title>
5+
6+
<body style="margin:20px">
7+
8+
<!-- Precomposed U+00E9 (LATIN SMALL LETTER E WITH ACUTE), same straight horizontal path. -->
9+
<svg width="600" height="100">
10+
<path id="hline" d="M 50 50 L 550 50" fill="none"/>
11+
<text font-size="40px">
12+
<textPath href="#hline">caf&#x00e9; expos&#x00e9;</textPath>
13+
</text>
14+
</svg>
15+
16+
</body>
17+
</html>
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<meta charset="utf-8">
4+
<link rel="match" href="textpath-combining-marks-ref.html">
5+
<title>SVG text: combining marks on a textPath shape as one typographic character</title>
6+
<link rel="help" href="https://w3c.github.io/svgwg/master/text.html#TextLayoutIntroduction">
7+
<link rel="help" href="https://bugs.webkit.org/show_bug.cgi?id=266832">
8+
<meta name="assert" content="A base letter followed by a combining mark (e + U+0301) placed on a textPath must be shaped together as one typographic character, rendering an accented letter — not a base glyph and a dotted-circle for the lone mark.">
9+
10+
<body style="margin:20px">
11+
12+
<!-- e + U+0301 (COMBINING ACUTE ACCENT): the mark must join its base, not become its own
13+
isolated single-code-point fragment. Straight horizontal path so layout matches the
14+
precomposed reference exactly. -->
15+
<svg width="600" height="100">
16+
<path id="hline" d="M 50 50 L 550 50" fill="none"/>
17+
<text font-size="40px">
18+
<textPath href="#hline">cafe&#x0301; expose&#x0301;</textPath>
19+
</text>
20+
</svg>
21+
22+
</body>
23+
</html>

0 commit comments

Comments
 (0)