On Mon, Dec 24, 2012 at 12:17 PM, Brian Matherly <[email protected]> wrote:
>>Let me first thank you for fixing this issue.
>>
>>Now with dynamictext filter text alignment works fine and there is one more 
>>issue which I am facing
>>    * When I use geometry as <property 
>> name="geometry">0%/50%:100%/100%</property>
>>    * Now the position of X is not being placed at 0(zero'th) pixel on the 
>> frame instead the entire text is placed to the center of the frame
>>    * Is it possible to place text at specified position using geometry and 
>> align it with center or right ?
>>    * I am attaching a couple of images expecting.png and result.png
>
> There is the definition for the geometry:   
> [frame=]X/Y:WxH[:mix][!][;[frame=]X/Y:WxH[:mix][!]]*
> X, Y, W and H can have trailing % chars to indicate percentage of normalised 
> size
>
> For example, this will center the text on the left side of the screen:
> 0/0:50%x100%:100
> I think that is close to what you are looking for.
>
> Whem I'm feeling lazy, I just open KDENLIVE, slap the dynamictext effect on a 
> color clip, click and drag the geometry in the monitor view, and then grab 
> the geometry value in the resulting project file.
>
> ~Brian

Brian, he succinctly pointed out the use case that you previously
failed to see by coupling the two alignment properties. :-) The
problem with your workaround described above is that requires
knowledge of how wide the rendered text is so that you can set X
properly. That is not good for people who are using MLT
programmatically outside of a GUI tool. I realize that your goals may
be different than his, and quite frankly Satya could submit the patch
that does what he needs (it can simply expose a distinct "text_align"
property that sets the pango's align property).

-- 
+-DRD-+

------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Mlt-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mlt-devel

Reply via email to