GNOME Bugzilla – Bug 118547
Convert Text Layer To Pixels / Render Text Layer
Last modified: 2004-01-05 00:34:43 UTC
There should a command to covert text layers (and any non-rendered object) to something thats rendered and "permanent."
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?
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.
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.
Hrm, yeah, that would probably be better than my suggestion. Will something like that appear in 1.3.x soon?
Yes, this will be available soon. It all depends on the meaning of "soon", though...
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.
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.
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.
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.
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.
So where should this functionality go from a user interface perspective point of view? The implementation should be straight-forward.
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.
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.
It appears as an ordinary layer, of course.