]> 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 fb56113e5c1b3bfe386d053e86d482e36709cbe0..7eca2c6225bde1c13fa1ea9d9e189d5538cbca9c 100644 (file)
@@ -33,8 +33,9 @@ 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 );