← Back to team overview

phatch-dev team mailing list archive

[Bug 386494] Re: Justify options for Text action

 

I restored the offset values. Basically the workflow goes as follows:
1. Figure out where you want to justify (suppose top-left in this case) and set values. Note that it always snaps to the edge so that you can expect the text to be inside the image.
2. Figure out how much to offset (suppose we want to move the text a bit right and a bit down). In this case horizontal and vertical offset could be set to 5% or some other suitable value. Thanks to snap it's easier to estimate the offset value.

So the general rule is that positive values increment towards down/right
(same as the old behavior!).

Note that I did not implement any other advanced options yet. Hopefully
it's a bit better now. :)

** Attachment added: "justification2.txt"
   http://launchpadlibrarian.net/28030367/justification2.txt

-- 
Justify options for Text action
https://bugs.launchpad.net/bugs/386494
You received this bug notification because you are a member of Phatch
Developers, which is subscribed to Phatch.

Status in Phatch = Photo & Batch!: Incomplete

Bug description:
This patch implements https://blueprints.launchpad.net/phatch/+spec/text-justification . I removed the offset fields and replaced them with justification options. I changed the middle item of horizontal justification to "middle" just to be consistent with vertical justification. In both cases "middle" is also the default option selected.



References