Thanks a lot, it is working fine with single line text. And when the text has multiple lines, new lines are not being aligned center properly. I have used geometry as <property name="geometry">0%/50%:100%/100%</property>
And my xml
<filter>
<property name="mlt_service">dynamictext</property>
<property name="argument">this text is going to be
center aligned
</property>
<property name="family">Chumbly BRK</property>
<property name="halign">centre</property>
<property name="size">40</property>
<property name="fgcolour">0xFFFFFFFF</property>
<property name="weight">640</property>
<property name="bgcolour">0x00000000</property>
<property name="olcolour">0xFFFFFF05</property>
<property name="outline">1</property>
<property name="geometry">0%/50%:100%/100%</property>
</filter>
I got the result as in text left alignment.png (please find it in the
attachment).
Will I get the result as in text right alignment.png?
--
-Satya.
On Fri, Dec 21, 2012 at 10:28 PM, Brian Matherly <[email protected]>wrote:
> >Hello everyone,
>
> >
> >
> >I am trying to get the text to be center aligned
> >
> >
> >Here is my xml,
> >
> >
> ><producer in="0" out="120">
> > <property name="mlt_service">colour</property>
> > <filter>
> > <property name="mlt_service">dynamictext</property>
> > <property name="argument">this text is going to be
> >center aligned
> ></property>
> > <property name="family">Chumbly BRK</property>
> > <property name="align">center</property>
> > <property name="size">40</property>
> > <property name="fgcolour">0xFFFFFFFF</property>
> > <property name="weight">640</property>
> > <property name="bgcolour">0x00000000</property>
> > <property name="olcolour">0xFFFFFF05</property>
> > <property name="outline">1</property>
> > <property name="geometry">0%/50%:100%/100%</property>
> > </filter>
> > <property name="colour">0xB10CEDff</property>
> > </producer>
> >
> >
> >but the text always comes with left alignment.
> >Can any one help me in this aspect?
>
>
> halign and valign should do what you want:
> http://www.mltframework.org/bin/view/MLT/FilterDynamictext
>
> you should change:
> <property name="align">center</property>
> to
> <property name="halign">centre</property>
>
> This will center the text inside your geometry. So make sure the geometry
> spans the entire frame.
>
> ~Brian
>
>
--
-Satya.
<<attachment: text left alignment.png>>
<<attachment: text center alignment.png>>
------------------------------------------------------------------------------ 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
