On Fri, Dec 21, 2012 at 9:56 AM, s v Satyanarayana <[email protected]> wrote: > 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).
The pango producer has an undocumented align property for the alignment of multi-line text (text alignment as opposed to geometry alignment), but this is not exposed by the dynamictext filter. Brian, you might want to consider adding support for properties that begin with "producer." and apply them to the underlying service of dynamictext using mlt_properties_pass(). Of course, some details of this might depend upon rework you might have in progress. Satya, in light of this problem and the other recent problem you faced, you might want to switch to using a combination of pango and the affine transition, but you will need to use that with multiple tracks, which is not going to be convenient. As a compromise, you could use pango as a producer with the watermark filter (which uses the less accurate composite transition). > 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. > > ------------------------------------------------------------------------------ > 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 > -- +-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
