Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8921295
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T06:30:14+00:00 2026-06-15T06:30:14+00:00

How do I make the text on a path ( see screenshot ) extend

  • 0

How do I make the text on a path (see screenshot) extend so that it follows the entire textPath?

I have tried using the method attribute value stretch but it doesn’t work like I expect – it doesn’t stretch the text along the path.

Is there a way to make this work in all browsers?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T06:30:16+00:00Added an answer on June 15, 2026 at 6:30 am

    The way to spread out the text over the entire textPath is to use the textLength attribute. Also see this other question for how to compute a good value for textLength. Here’s how to do it:

    <svg viewBox="0 0 500 300" version="1.1">
         <defs>
             <path id="s3" d="M 10,90 Q 100,15 200,70" />
         </defs>
         <text font-size="20">
             <textPath xlink:href="#s3" textLength="205">
               Short text
             </textPath>
         </text>
         <use xlink:href="#s3" fill="none" stroke="black" stroke-width="1"/>
     </svg>
    

    Viewable example: http://jsfiddle.net/zkZ2n/

    enter image description here

    Here’s the bugreport for Firefox not supporting textLength: https://bugzilla.mozilla.org/show_bug.cgi?id=569722

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using html to make text in a JLabel span multiple lines. However
How to make UILabel text editable on UILongPressGestureRecognizer . So that on long press
I'm using PHP 5.2 to make a website I like to have explicit names
I have code that will check to see if an image is on the
I have a force-download script that produces good results with PDF and plain text,
I am using Lion. I have an error that outputs on every new terminal
I'm trying to make a function that recursively builds a path for a specific
What is an easy way to make text blinking in jQuery and a way
I have a function: char *make_text(void) { char txt[MAXLEN]; //make something return txt; }
Hey, I'm just wondering if there's any easy function to make text suitable to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.