Using svg text renderer in 1.0.2

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
kenig
Blank Cone
Blank Cone
Posts: 12
Joined: 14 Oct 2009 16:27

Using svg text renderer in 1.0.2

Postby kenig » 01 Nov 2009 11:50

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?

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Using svg text renderer in 1.0.2

Postby VLC_help » 01 Nov 2009 13:28

You got the SVG .dll file?

kenig
Blank Cone
Blank Cone
Posts: 12
Joined: 14 Oct 2009 16:27

Re: Using svg text renderer in 1.0.2

Postby kenig » 01 Nov 2009 13:43

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

kenig
Blank Cone
Blank Cone
Posts: 12
Joined: 14 Oct 2009 16:27

Re: Using svg text renderer in 1.0.2

Postby kenig » 02 Nov 2009 08:42

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"

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Using svg text renderer in 1.0.2

Postby VLC_help » 02 Nov 2009 13:28

Does Tools -> Plugins and extensions list the plugin?

kenig
Blank Cone
Blank Cone
Posts: 12
Joined: 14 Oct 2009 16:27

Re: Using svg text renderer in 1.0.2

Postby kenig » 02 Nov 2009 16:23

I compiled without QT4, is there another way of getting the list?
maybe through the console?

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Using svg text renderer in 1.0.2

Postby VLC_help » 03 Nov 2009 16:30

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

kenig
Blank Cone
Blank Cone
Posts: 12
Joined: 14 Oct 2009 16:27

Re: Using svg text renderer in 1.0.2

Postby kenig » 05 Nov 2009 09:45

It is not in the list...

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Using svg text renderer in 1.0.2

Postby VLC_help » 05 Nov 2009 18:17

Then for some reason it doesn't register. Have you tried to debug if VLC checks that file on first startup?

kenig
Blank Cone
Blank Cone
Posts: 12
Joined: 14 Oct 2009 16:27

Re: Using svg text renderer in 1.0.2

Postby kenig » 05 Nov 2009 21:32

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?

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Using svg text renderer in 1.0.2

Postby VLC_help » 06 Nov 2009 17:43

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.")

kenig
Blank Cone
Blank Cone
Posts: 12
Joined: 14 Oct 2009 16:27

Re: Using svg text renderer in 1.0.2

Postby kenig » 07 Nov 2009 10:08

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?

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Using svg text renderer in 1.0.2

Postby VLC_help » 07 Nov 2009 16:55

For modules, it is enough to just compile the modules dir and then do make package-win32-base or similar.


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 83 guests