----- Original Message -----
> From: Dan Dennedy <[email protected]>
> To: s v Satyanarayana <[email protected]>
> Cc: Brian Matherly <[email protected]>; mlt-devel 
> <[email protected]>
> Sent: Friday, December 21, 2012 1:24 PM
> Subject: Re: [Mlt-devel] Text alignment
> 
> 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.

I can't think of a use case where a person would not want the text 
justification to match the geometry alignment. So I committed a fix to make the 
text alignment match the geometry alignment.
https://github.com/mltframework/mlt/commit/986a6c27ebabb7f1b15ffa537860a165fc1cf31b

If someone has a use case that requires a block of left justified text to be in 
the center of the frame, they can just put the left edge of the geometry 
wherever it needs to be to make that happen.

The reason I have resisted the feature to pass along "producer." properties to 
the pango producer is that you now have me thinking that I might need more than 
one underlying implementation for the dynamic text filter in order to improve 
the text compositing quality. So I'd rather not expose any properties that will 
be specific to the pango based implementation.

Satya,
The latest dynamic text in git HEAD should behave the way you expect. Let me 
know if you see any problems.

~Brian


------------------------------------------------------------------------------
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