Page 1 of 1

Using svg text renderer in 1.0.2

Posted: 01 Nov 2009 11:50
by kenig
I've compiled 1.0.2 with --enabled-svg, everything was compiled successfully but when I set --text-renderer=svg I get the following error:
main error: no text renderer module matched "svg"
j-b, anything I can do or check?

Re: Using svg text renderer in 1.0.2

Posted: 01 Nov 2009 13:28
by VLC_help
You got the SVG .dll file?

Re: Using svg text renderer in 1.0.2

Posted: 01 Nov 2009 13:43
by kenig
libsvg_plugin.dll
Size: 55.1 KB
I've searched the error within the source code and found it is coming from modules\misc\dummy\dummy.c but couldn't find anything wrong there...

Re: Using svg text renderer in 1.0.2

Posted: 02 Nov 2009 08:42
by kenig
Just compiled 1.0.3, libsvg_plugin.dll is now 316 KB but I still get the error:

main debug: looking for text renderer module: 0 candidates
main error: no text renderer module matched "svg"
main debug: looking for text renderer module: 2 candidates
main debug: thread (fontlist builder) created at priority 0 (freetype.c:475)
freetype debug: using fontsize: 2
main debug: using text renderer module "freetype"

Re: Using svg text renderer in 1.0.2

Posted: 02 Nov 2009 13:28
by VLC_help
Does Tools -> Plugins and extensions list the plugin?

Re: Using svg text renderer in 1.0.2

Posted: 02 Nov 2009 16:23
by kenig
I compiled without QT4, is there another way of getting the list?
maybe through the console?

Re: Using svg text renderer in 1.0.2

Posted: 03 Nov 2009 16:30
by VLC_help
I don't know if there is something ready, but

Code: Select all

module_t **p_list = module_list_get( NULL ); module_t *p_module; for( unsigned int i = 0; (p_module = p_list[i] ) != NULL; i++ ) { QStringList qs_item; qs_item << qfu( module_get_name( p_module, true ) ) << qfu( module_get_capability( p_module ) ) << QString::number( module_get_score( p_module ) ); #ifndef DEBUG if( qs_item.at(1).isEmpty() ) continue; #endif QTreeWidgetItem *item = new PluginTreeItem( qs_item ); treePlugins->addTopLevelItem( item ); }
shows how it is done, so you could write something similar to somewhere and print it out.
http://git.videolan.org/?p=vlc.git;a=bl ... pp;hb=HEAD

Re: Using svg text renderer in 1.0.2

Posted: 05 Nov 2009 09:45
by kenig
It is not in the list...

Re: Using svg text renderer in 1.0.2

Posted: 05 Nov 2009 18:17
by VLC_help
Then for some reason it doesn't register. Have you tried to debug if VLC checks that file on first startup?

Re: Using svg text renderer in 1.0.2

Posted: 05 Nov 2009 21:32
by kenig
I couldn't find the place where the plugins are being identified, can you please give me a direction?
What is the preferred plugin to render text instead of freetype?

Re: Using svg text renderer in 1.0.2

Posted: 06 Nov 2009 17:43
by VLC_help
I couldn't find the place where the plugins are being identified, can you please give me a direction?
You mean the part that loads them?
What is the preferred plugin to render text instead of freetype?
I think freetype is the preferred one.

Code: Select all

#define TEXTRENDERER_TEXT N_("Text rendering module") #define TEXTRENDERER_LONGTEXT N_( \ "VLC normally uses Freetype for rendering, but this allows you to use svg for instance.")

Re: Using svg text renderer in 1.0.2

Posted: 07 Nov 2009 10:08
by kenig
I'm going over /modules/misc/modules.c but can't get any debug output to the log file, if I'm changing this file, should I compile the whole application or compiling inside 'src' is enough?

Re: Using svg text renderer in 1.0.2

Posted: 07 Nov 2009 16:55
by VLC_help
For modules, it is enough to just compile the modules dir and then do make package-win32-base or similar.