Re: changing the shape of a text layer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I like the idea of having this functionality available. I have tried the
patch and it seems very capable. There appears to be bug which presented
itself when I did the following:

Create a "blue" text layer.
Create a "red" text layer positioned above the blue layer.
Resize the red text layer.
Activate the blue layer.

OR

Create a "blue" text layer.
Create a "red" text layer positioned above the blue layer.
Resize the blue layer.
Activate the red layer.
Activate the blue layer.

In both cases, the top-left of the blue layer's rectangle frame gets set
to the bottom-right of the red layer's resized frame. This change does not
occur unless one of the layers is resized.

--------

As a general comment, I would point out that this interface might present
a problem in the future when "in-place" text editing is implemented. Since
the primary function of the tool is text input, perhaps it would be better
to require a modal key (ALT?) when adjusting the frame so that, in the
future, unmodified mouse clicks could be used to specify cursor location
and text selections.


> I've been working on using the new "rectangle tool" interface
> to allow changing the shape of a text layer by moving edges
> around.  (Sven set up the infrastructure for this years ago,
> but it has lacked a UI.)Â  I have attached a patch with a trial
> implementation to the relevant enhancement request in
> Bugzilla:
> http://bugzilla.gnome.org/show_bug.cgi?id=122707
> Sven suggests, and I agree, that it would be good to have input
> from the UI team before making changes to SVN trunk, hence
> this email.  Here is a summary of how the trial implementation
> handles things:1) If the user clicks on an existing text layer, and no
> rectangle
> yet exists there, we create a rectangle to frame the layer,
> and allow the user to modify it.
> 2) If the user has modified the rectangle for an existing text layer,
> we change the layer shape or position accordingly.
> 3) If the active layer is not a text layer, or if it is but the user
> has clicked outside it, and the rectangle that has been swept out is too
> small, we want to use dynamic text, so we halt the rectangle interface.
> 4) Otherwise, we use the new rectangle that the user has
> swept out as our text box, keeping the rectangle interface alive so
> that the user can modify it.
> The rectangle interface is exactly identical to the one in the rectangle
> select tool, except that I have tentatively assumed that modifier keys
> aren't going to come into play.  However, everything should be
> considered open to change right now.
> So, I am hoping to get some feedback from the UI team about this
> stuff.
> If you want to experiment with the trial implementation, you can
> find an updated patch in the above-mentioned bug report.  To
> the best of my knowledge, everything works as intended except
> Undo, which is a bit glitchy. Â
> _______________________________________________
> Gimp-developer mailing list
> Gimp-developer@xxxxxxxxxxxxxxxxxxxxxx
> https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
>


_______________________________________________
Gimp-developer mailing list
Gimp-developer@xxxxxxxxxxxxxxxxxxxxxx
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer


[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux