phatch-dev team mailing list archive
-
phatch-dev team
-
Mailing list archive
-
Message #00209
[Bug 386494] Re: Justify options for Text action
"The position of text would be calculated so that the left/right bound doesn't go past edge on maximum (100%). This would be pretty much equivalent of the current behavior except that it keeps text inside bound for values between -100% and 100%."
I would not go this route. This becomes unpredictable for the user. What if the text is bigger than the image? The old behavior is the only correct one for me. The default values for the text action would be:
Horizontal Position: 50%
Vertical Position:50%
Horizontal Justification: Middle
Vertical Justification: Middle
The position fields have to be PixelFields. Be sure to pass absolute
values in pixel_fields (see the original text action). The position
*really* has to be absolute, as later I'd like to add a rotation angle
field, or draw as circle (which would need a radius), ... For this we
would change the name of the Orientatien field in "Layout", which can
everything which it is now but including: "Rotate By Angle" and
"Circle". In case of rotate by angle, an angle field would pop up and in
case of circle a radius (=pixelfield). Circle layout would be very nice
in combination with the badge action list from the library. Try it if
you didn't have yet.
--
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