Skip to content

Instantly share code, notes, and snippets.

@phpgenefied
phpgenefied / vsftpd.md
Last active January 17, 2024 13:15 — forked from caseycoding/vsftpd.md
vsftpd with virtual users (htpasswd), s3fs
@phpgenefied
phpgenefied / README.md
Created January 6, 2022 07:20 — forked from jebeck/README.md
Curved Text in SVG

Curved Text in SVG

Curved text in SVG isn't too hard, as long as you understand how to define different kinds of curved <path> elements in SVG. When you have a curved <path> defined in a <defs> elements (usually just inside your root <svg>), to make the text inside a <text> element follow that <path>, all that's required is to insert a <textPath> inside the <text>, with an xlink:href attribute that links to the id of the defined <path>. The actual text for display also gets added inside the <textPath>, like so:

<text>
  <textPath xlink:href="#yourPath">
    Your text
  </textPath>