After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 169616 - Improve "Text along a path"
Improve "Text along a path"
Status: RESOLVED OBSOLETE
Product: GIMP
Classification: Other
Component: Tools
git master
Other All
: High enhancement
: Future
Assigned To: GIMP Bugs
GIMP Bugs
: 310624 356664 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-03-08 16:12 UTC by weskaggs
Modified: 2018-05-24 11:28 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
diff implmenting text along path (10.97 KB, patch)
2005-03-08 16:14 UTC, weskaggs
committed Details | Review
patch for a number of text-related files (25.44 KB, patch)
2005-11-02 15:21 UTC, weskaggs
needs-work Details | Review

Description weskaggs 2005-03-08 16:12:29 UTC
I am rather surprised not to be able to find a bug report on this topic, since
it has often been discussed in #gimp and elsewhere.  I have worked out a very
basic implementation of it, which I present here more for discussion than
anything else:  it is far from being a finished product.  The approach I took is
to write a function "gimp_vectors_warp_vectors()" that essentially does "path
along a path" -- that is, it warps one path to follow the trajectory of a second
path.  Text along a path is done by first converting the text into a path.

For UI, I added a button to the text tool options.  A better approach would be
either to use a plug-in, or to have an "Along Path" checkbutton in the text tool
options.  For the moment, I just wanted to create the simplest possible
interface that would produce a viewable result.

What should I do to improve it?
Comment 1 weskaggs 2005-03-08 16:14:07 UTC
Created attachment 38420 [details] [review]
diff implmenting text along path

Here is a diff against cvs HEAD, incorporating the changes need to implement
what is described above.
Comment 2 Sven Neumann 2005-03-08 23:53:51 UTC
This looks great! You are right that the UI would probably need to be improved,
but first, I think, you should get this into CVS.
Comment 3 weskaggs 2005-03-09 17:00:50 UTC
Committed to HEAD:

2005-03-09  Bill Skaggs  <weskaggs@primate.ucdavis.edu>

	* app/vectors/gimpvectors-warp.c
	* app/vectors/gimpvectors-warp.h: new files implmenting
	"path along a path" functionality.

	* app/vectors/Makefile.am: new stuff added
	
	* gimp/app/vectors/gimpvectors.[ch]: actually implement
	gimp_vectors_real_stroke_get_length().

	* app/tools/gimptexttool.c
	* app/tools/gimptextoptions.c: first pass at "text
	along a path", using new functions.  See bug #169616.
Comment 4 weskaggs 2005-11-02 15:21:29 UTC
Created attachment 54228 [details] [review]
patch for a number of text-related files

I have now reworked this completely, making it work as follows.  When a text
layer is created, a path is created along with it, initially a horizontal line.
 There is an option "Render along path" in the text tool options.  If this is
checked, then the path becomes visible, and the text is "attached" to it, in
the sense that if you go into the path tool and alter the path, the text is
redrawn to follow.  You can also go back into the text tool and edit the text
and its properties, and it will be redrawn following the path until you uncheck
the option.  

The code is highly unstable and certainly a number of things are implemented
incorrectly, but I am going to attach a diff for initial code review.
Comment 5 Sven Neumann 2005-12-20 10:23:44 UTC
The path would probably have to be stored with the text, wouldn't it? The SVG snippet for the path could be saved as part of the serialization of the text layer.
Comment 6 Sven Neumann 2006-05-29 16:11:39 UTC
Raising priority so that we review this code soon so that we can finally get it into CVS.
Comment 7 weskaggs 2006-06-16 17:49:24 UTC
Copying suggestions by "Mabilat L." from bug 310624, which I am going to mark as a duplicate of this one:

"text along a path" is missing some ui options.
For instance, we cannot choose :

- select path, same as layer for "filter > map > bum map"
- position on path (in blue on screenshot)
- alignement on path (in green on screenshot)
- mirror effect (in red on screenshot)
- no distors path (in yellow on screenshot)

http://pamplemousse.truc.free.fr/tmp/UI-Options.png
Comment 8 weskaggs 2006-06-16 17:50:08 UTC
*** Bug 310624 has been marked as a duplicate of this bug. ***
Comment 9 Sven Neumann 2006-06-27 19:01:35 UTC
This patch doesn't seem to be ready for inclusion in 2.4. I suggest that we get it into CVS when 2.4 is released and implement this feature for the 2.6 release.
Comment 10 Martin Nordholts 2008-05-28 18:22:01 UTC
Let's await the GSoC 2008 project that will improve the Text Tool. Setting milestone 2.8.
Comment 11 Wai Ling Tsang 2008-08-09 03:34:10 UTC
The text along path function in SVN trunk generates artifacts on screen.  It can be reproduced as follows:

1. Click on Text Tools
2. Type some text and click close
3. Click on "Text along Path" in the Text toolbox, multiple times.
4. Artifacts appears and cannot be removed by any means.
Comment 12 Martin Nordholts 2010-01-23 09:26:12 UTC
With the current estimates we won't have time to improve this further for 2.8, but at least the basic functionality is there. Moving to 2.10.
Comment 13 Frank DeMarco 2010-09-13 03:47:33 UTC
I came to report the same behavior Wai reported in Comment #11
If I follow those steps, the bug doesn't occur
If I click "Path from Text" before "Text along Path", the artifacts appear

1. Select text tool
2. Add text to layer
3. Click "Path from text" once
4. Click "Text along Path" once

An artifact appears after that
If I continue clicking "Text along Path", more artifacts appear
They look like selections of stacks of distorted letters
I can't select them or move them

I'm using GIMP 2.4.7, I believe it's the same version that is in the Debian repository
Comment 14 Michael Natterer 2010-11-29 20:54:13 UTC
*** Bug 356664 has been marked as a duplicate of this bug. ***
Comment 15 Martin Nordholts 2011-03-14 07:31:32 UTC
Low priority compared to things on our roadmap
Comment 16 Jehan 2016-12-27 14:53:26 UTC
Current state of this bug which is a good example of why separate reports should be filled:

- Behaviors in comments 11 and 13 are not bugs. By first running "path to text", you use this new path as a lead for the "text along path" (and a text is a very warped path so obviously the result is weird). This is simply not how the feature is meant to be used. NOTABUG.

- Comment 4 is the only remaining request for enhancement with a tentative patch: attaching a vector to each text layer, you can warp the text layer. Editing the text would re-render the warped text (oppositely to now where if you change the text, you have to run a new "text along path" since the feature basically generates a path reproducing the text).
Comment 17 GNOME Infrastructure Team 2018-05-24 11:28:17 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gimp/issues/136.