On Tue, Feb 12, 2013 at 5:02 PM, s v Satyanarayana <s.sv...@gmail.com> wrote:
> Hello everyone,
>
> I have tried to overlay text on color and text occupies entire width of the
> frame. In this case, if I try to increase the text size then it does not
> increase text size.
> For example:
>
> I have applied text size as 25, text has more characters so that text
> occupies entire width of the frame.
> Now, for the same text, I have tried to increase the text size to 55 but
> there is no change in text size.
>
> I have tried with the following script
> If text size is 25
>         <producer in="0" out="120">
>  <property name="mlt_service">colour</property>
>  <property name="colour">0x0099FFFF</property>
>           <filter>
>             <property name="mlt_service">dynamictext</property>
>             <property name="argument"><![CDATA[Darkness cannot drive out
> darkness;only light can do that
>
> ]]></property>
>             <property name="family">Sansation</property>
>             <property name="size">25</property>
>    <property name="halign">left</property>
>             <property name="fgcolour">0xffffffff</property>
>             <property name="weight">400</property>
>             <property name="bgcolour">0x00000000</property>
>             <property name="olcolour">0x00000000</property>
>             <property name="geometry">0%/2%:100%/100%</property>

The problem is here in the geometry, which defines a _bounding_
rectangle. You also need to take into consideration that composite
retains the aspect ratio of the second input (the text image that
pango generated). Look at how wide that text is, but you only gave it
100% of the profile's width (640 pixels?). The composite scales down
inputs to fit inside the bounding rectangle. When you go higher in
text size, then it is downscaled! Try changing the first 100% to 1000%
and see the difference.

>           </filter>
>       </producer>
> I have attached the output as slide-25.png
>
> If text size is 55, for the above script, I have changed 25 as 55
>   <property name="size">55</property>
> For this output looks like slide-55.png
>
> Is there any way to get text at specified size?

Use an extremely large size in your geometry to prevent down-scaling.

> here some characters in the
> text can be overflowed if text has more characters.

You can put a line break in your CDATA section to create multiple
lines of text, but the pango producer is simple and does not do
word-wrapping.

-- 
+-DRD-+

------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
Mlt-devel mailing list
Mlt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlt-devel

Reply via email to