Commit d8549ccd authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

projectM: change font path on Win32

Close #4988
parent 67e7d9bf
...@@ -74,6 +74,14 @@ static void Close ( vlc_object_t * ); ...@@ -74,6 +74,14 @@ static void Close ( vlc_object_t * );
#define TEXTURE_TEXT N_("Texture size") #define TEXTURE_TEXT N_("Texture size")
#define TEXTURE_LONGTEXT N_("The size of the texture, in pixels.") #define TEXTURE_LONGTEXT N_("The size of the texture, in pixels.")
#ifdef WIN32
# define FONT_PATH "C:\\WINDOWS\\Fonts\\arial.ttf"
# define FONT_PATH_MENU "C:\\WINDOWS\\Fonts\\arial.ttf"
#else
# define FONT_PATH "/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf"
# define FONT_PATH_MENU "/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf"
#endif
vlc_module_begin () vlc_module_begin ()
set_shortname( N_("projectM")) set_shortname( N_("projectM"))
set_description( N_("libprojectM effect") ) set_description( N_("libprojectM effect") )
...@@ -90,10 +98,10 @@ vlc_module_begin () ...@@ -90,10 +98,10 @@ vlc_module_begin ()
add_directory( "projectm-preset-path", "/usr/share/projectM/presets", add_directory( "projectm-preset-path", "/usr/share/projectM/presets",
#endif #endif
PRESET_PATH_TXT, PRESET_PATH_LONGTXT, true ) PRESET_PATH_TXT, PRESET_PATH_LONGTXT, true )
add_loadfile( "projectm-title-font", "/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf", add_loadfile( "projectm-title-font", FONT_PATH,
TITLE_FONT_TXT, TITLE_FONT_LONGTXT, true ) TITLE_FONT_TXT, TITLE_FONT_LONGTXT, true )
add_loadfile( "projectm-menu-font", "/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf", add_loadfile( "projectm-menu-font", FONT_PATH_MENU,
MENU_FONT_TXT, MENU_FONT_LONGTXT, true ) MENU_FONT_TXT, MENU_FONT_LONGTXT, true )
#endif #endif
add_integer( "projectm-width", 800, WIDTH_TEXT, WIDTH_LONGTEXT, add_integer( "projectm-width", 800, WIDTH_TEXT, WIDTH_LONGTEXT,
false ) false )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment