How to fit and wrap text inside SVG polygon

I simply want to know how to generate an SVG path that centers, fits, and curves inside of a SVG polygon. I assume the method of doing this would be through Javascript. Reference below.

enter image description here

45 thoughts on “How to fit and wrap text inside SVG polygon”

  1. It’s a pity you don’t have a donate button! I’d most certainly donate to this excellent blog!
    I guess for now i’ll settle for book-marking and adding your RSS
    feed to my Google account. I look forward to new updates and will talk about this site with
    my Facebook group. Chat soon!