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 120268 - support letter spacing in the text tool
support letter spacing in the text tool
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: Tools
git master
Other All
: Normal enhancement
: 2.4
Assigned To: Sven Neumann
Sven Neumann
: 53737 118418 303057 310738 329543 (view as bug list)
Depends on: 125483
Blocks: 136740
 
 
Reported: 2003-08-19 17:54 UTC by Jakub Steiner
Modified: 2006-02-05 16:04 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Text that implements letter-spacing in an unacceptably hackish way (6.34 KB, patch)
2003-10-25 15:27 UTC, Sven Neumann
needs-work Details | Review

Description Jakub Steiner 2003-08-19 17:54:46 UTC
Letter spacing (CSS terminology)/ Tracking (Adobe terminology) support in
the text tool is missing. Although I miss it a lot, it's not a regression
since only gimp-freetype used to have that.
Comment 1 Jakub Steiner 2003-08-19 17:55:24 UTC
Marking milestone:2.2
Comment 2 Sven Neumann 2003-08-19 18:03:01 UTC
I started to work on this some time ago. It can be implemented
relatively easy by iterating over glyph clusters and inserting
placeholder characters together with shape attributes. This used to be
buggy in PangoFt2 but as a result of my hacking, it's functional now.

This approach would even allow to control the letter spacing
individually. We'd only have to find a way to store this setting
reasonably and the GUI to control this setting might be tricky.
Comment 3 Jakub Steiner 2003-08-19 18:31:55 UTC
For kerning (spacing between individual glyphs) Adobe Illustrator uses
Alt+left, Alt+right cursor key shortcuts. The spacing where the cursor
is placed is affected.
Comment 4 gsr.bugs 2003-08-21 20:38:48 UTC
For the record (people searching in the bug database), it can
be called kerning too, depending in how the text is changed
(tracking is global, kerning is about pairs, to make some
cases look better). And controlling baseline (vertical offset)
could be nice too.
Comment 5 Sven Neumann 2003-10-25 15:27:24 UTC
Created attachment 20936 [details] [review]
Text that implements letter-spacing in an unacceptably hackish way
Comment 6 Sven Neumann 2003-10-25 15:31:21 UTC
I've attached a patch that tries to implement this feature using the
existing Pango API. It works reasonably well for european scripts but
breaks with arabic and probably other scripts. My conclusion is that
it is infeasible to attempt to implement this outside of Pango. I will
look into adding this feature to Pango then.

If the patch works for you, feel free to use it. I've just added the
"letter-spacing" property to CVS so if you use the patch, the XCF
files won't break an unpatched GIMP-1.3 (> 1.3.21).
Comment 7 Sven Neumann 2003-10-25 15:46:03 UTC
Marking this bug dependant on the Pango enhancement request I just
filed  as bug #125483.
Comment 8 Sven Neumann 2003-11-08 01:06:05 UTC
*** Bug 53737 has been marked as a duplicate of this bug. ***
Comment 9 Sven Neumann 2003-11-08 01:07:09 UTC
*** Bug 118418 has been marked as a duplicate of this bug. ***
Comment 10 Dave Neary 2004-08-09 14:24:47 UTC
Comment on attachment 20936 [details] [review]
Text that implements letter-spacing in an unacceptably hackish way

setting "needs work" on this patch. Just to keep it out of the unreviewed patch
list.
Comment 11 Sven Neumann 2004-09-16 19:21:43 UTC
I don't think we want to let GIMP 2.2 depend on Pango 1.6. We should however
implement this as soon as 2.2 is released. Bumping to the Future milestone.
Comment 12 Sven Neumann 2005-03-02 13:10:46 UTC
2005-03-02  Sven Neumann  <sven@gimp.org>

	* app/text/gimptextlayout.[ch]
	* app/tools/gimptextoptions.h: allow to adjust letter-spacing.
Comment 13 Raphaël Quinet 2005-05-04 22:29:35 UTC
*** Bug 303057 has been marked as a duplicate of this bug. ***
Comment 14 Sven Neumann 2005-07-18 14:31:24 UTC
*** Bug 310738 has been marked as a duplicate of this bug. ***
Comment 15 Michael Schumacher 2006-02-02 10:22:41 UTC
*** Bug 329543 has been marked as a duplicate of this bug. ***
Comment 16 Matthew Prasinov 2006-02-04 04:20:38 UTC
so has this been done yet? does GIMP 2.2.10 support this?
Comment 17 tobias 2006-02-05 11:54:08 UTC
> so has this been done yet?

Yes.

> does GIMP 2.2.10 support this?

No, but Gimp 2.4.x will support it.
Comment 18 gsr.bugs 2006-02-05 16:03:00 UTC
I saw bug 329543 and I have to detail that, for the moment, the support
is for global spacing, but not per character spacing (kerning) as
Inkscape does. So if that is what you (Matthew Prasiniv) really mean
then better open a bug and be pretty clear about it. If you want to
check yourself the current feature, try to get a CVS snapshot (2.3.x)
and test yourself.
Comment 19 gsr.bugs 2006-02-05 16:04:38 UTC
I saw bug 329543 and I have to detail that, for the moment, the support
is for global spacing, but not per character spacing (kerning) as
Inkscape does. So if that is what you (Matthew Prasinov) really mean
then better open a bug and be pretty clear about it. If you want to
check yourself the current feature, try to get a CVS snapshot (2.3.x)
and test yourself.