ajstarks / svgo

Go Language Library for SVG generation
Other
2.15k stars 170 forks source link

Really need two functions!!! #11

Closed bosom closed 10 years ago

bosom commented 10 years ago

Really need two functions. Without them, library is not complete:

  1. Read the existing svg and the ability to add or modify it
  2. Calculation text width on font and font size. It need to inscribe text in rectangle, without departing from rectangle scope. Or split text to lines, without departing size of svg image

Be able to do these functions?

ajstarks commented 10 years ago

Note that you can use the standard XML package to manipulate arbitrary SVG files. You can use JavaScript to get the width of text elements via the getBBox function.

bosom commented 10 years ago

What is the reason? Why the library is not possible to make a full and include in it this functionality?