]> git.sesse.net Git - mlt/blobdiff - src/tests/pango.c
Add "family" and "style" properties to pango producer. Deprecate
[mlt] / src / tests / pango.c
index eaf9758943afeb62bc4efc757a995102fac0addf..7eca2c6225bde1c13fa1ea9d9e189d5538cbca9c 100644 (file)
@@ -23,7 +23,7 @@ int main( int argc, char **argv )
        }
 
        // Start the consumer...
-       mlt_consumer consumer = mlt_factory_consumer( "sdl", "PAL" );
+       mlt_consumer consumer = mlt_factory_consumer( "bluefish", "NTSC" );
 
        // Create the producer(s)
        mlt_playlist pl1 = mlt_playlist_init();
@@ -33,13 +33,14 @@ int main( int argc, char **argv )
        mlt_playlist pl2 = mlt_playlist_init();
        mlt_producer title = mlt_factory_producer( "pango", NULL ); //"<span font_desc=\"Sans Bold 36\">Mutton <span font_desc=\"Luxi Serif Bold Oblique 36\">Lettuce</span> Tomato</span>" );
        mlt_playlist_append( pl2, title );
-       mlt_properties_set_int( mlt_producer_properties( title ), "video_standard", mlt_video_standard_pal );
-       mlt_properties_set( mlt_producer_properties( title ), "font", "Sans Bold 36" );
+       mlt_properties_set( mlt_producer_properties( title ), "family", "Sans" );
+       mlt_properties_set( mlt_producer_properties( title ), "size", "36" );
+       mlt_properties_set( mlt_producer_properties( title ), "weight", "700" );
        mlt_properties_set( mlt_producer_properties( title ), "text", text );
        mlt_properties_set_int( mlt_producer_properties( title ), "bgcolor", 0x0000007f );
        mlt_properties_set_int( mlt_producer_properties( title ), "pad", 8 );
        mlt_properties_set_int( mlt_producer_properties( title ), "align", 1 );
-       mlt_properties_set_int( mlt_producer_properties( title ), "x", 20 );
+       mlt_properties_set_int( mlt_producer_properties( title ), "x", 200 );
        mlt_properties_set_int( mlt_producer_properties( title ), "y", 40 );
        mlt_properties_set_double( mlt_producer_properties( title ), "mix", 0.8 );