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 118547 - Convert Text Layer To Pixels / Render Text Layer
Convert Text Layer To Pixels / Render Text Layer
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: Tools
1.x
Other All
: Normal enhancement
: 2.0
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2003-07-29 04:30 UTC by Patrick McFarland
Modified: 2004-01-05 00:34 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Patrick McFarland 2003-07-29 04:30:39 UTC
There should a command to covert text layers (and any non-rendered object)
to  something thats rendered and "permanent."
Comment 1 Henrik Brix Andersen 2003-08-22 17:59:06 UTC
Exactly why is this needed?

In what situation would you want to render a text layer to a simple
pixel layer and throw away any chance of editing the text?
Comment 2 Patrick McFarland 2003-08-22 22:08:07 UTC
Editing text after the layer has been altered using any tool or filter
makes Gimp re-render the layer, removing anything you've done to the
layer. This command would force Gimp to lock out editing the text so
you cant screw things up accidently.
Comment 3 Sven Neumann 2003-08-23 10:47:13 UTC
As soon as undo of text editing is working properly, this will be less
of an issue. Ideally of course the user would be informed when she is
trying to pixel-manipulatd a text layer offering the choice to convert
to pixels.
Comment 4 Patrick McFarland 2003-08-26 09:37:51 UTC
Hrm, yeah, that would probably be better than my suggestion. Will
something like that appear in 1.3.x soon?
Comment 5 Raphaël Quinet 2003-08-26 10:30:18 UTC
Yes, this will be available soon.  It all depends on the meaning of
"soon", though...
Comment 6 Sven Neumann 2003-08-26 11:05:06 UTC
Raphael, what makes you think this is going to appear soon? The
current internal design of The GIMP makes it almost impossible to
implement this feature. I don't see this coming anytime soon.
Comment 7 Raphaël Quinet 2003-08-26 11:36:22 UTC
As I said, it all depends on the meaning of "soon".  Next century could
still be "soon" if you think about geological timescales...

OK, my comment was not helpful.  I should have added a smiley or
abstained from making stupid comments.
Comment 8 Dave Neary 2003-10-21 11:48:53 UTC
Sven, is this part of the text tool's planned feature set for 2.0?

If not, will it be considered for 2.2?

Cheers,
Dave.
Comment 9 Sven Neumann 2003-10-21 13:06:14 UTC
I think it's essential for 2.0. We won't get the automatic conversion
but the user should have a chance to change the layer to a pixel if
only to get a preview in the layers dialog instead of the text layer icon.
Comment 10 Dave Neary 2003-10-21 18:07:05 UTC
A kind of a sucky workaround I've been using for this is to duplicate
the text layer, clear the bottom copy, and then merge the top copy
down. That keeps the old text layer bounds, and the merge operation
removes the text layer attribute. However, characteristics like
opacity and linkedness aren't conserved in the operation.

Perhaps not something that would be suitable for a proper
implementation, but it's the workaround I use.

Cheers,
Dave.
Comment 11 Sven Neumann 2003-12-25 12:35:07 UTC
So where should this functionality go from a user interface
perspective point of view? The implementation should be straight-forward.
Comment 12 Dave Neary 2003-12-26 20:54:01 UTC
How about adding a Layers->Text submenu which will contain a number of
these entries eventually, but which for the moment will just have
"Convert to bitmap"? The text menu could be greyed out for layers
which aren't text layers.

Alternatively, the same menu item could go in the context menu in the
layers dock, and again it would be greyed out for layer types other
than text layers. 

It could even go in both...

Cheers,
Dave.

Comment 13 Sven Neumann 2004-01-05 00:29:05 UTC
I've checked in some code that allows to drop the text object from a
text layer. To the user the layer now appears as an ordinary text layer.

2004-01-05  Sven Neumann  <sven@gimp.org>

   * app/core/core-enums.[ch]: added GIMP_UNDO_TEXT_LAYER to
   GimpUndoType enum.

   * app/core/gimpimage-undo-push.[ch]: added new undo function
   gimp_image_undo_push_text_layer().

   * app/text/gimptextlayer.[ch]: renamed gimp_text_layer_render() to
   gimp_layer_text_layer_flush().
   Added new function gimp_text_layer_discard().

   * app/text/gimptextlayer-transform.c: changed accordingly.

   * app/gui/image-menu.c
   * app/gui/layers-commands.[ch]	
   * app/gui/layers-menu.c: added menu entries that allow to discard
   the text information of a text layer (bug #118547).

   * app/widgets/gimppreviewrendererlayer.c
   (gimp_preview_renderer_layer_render): treat text layers without a
   text object like ordinary layers.

Comment 14 Sven Neumann 2004-01-05 00:34:43 UTC
It appears as an ordinary layer, of course.