Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC
Manage
Activity
Members
Labels
Plan
Issues
4k
Issue boards
Milestones
Code
Merge requests
450
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC
Commits
d8549ccd
Commit
d8549ccd
authored
13 years ago
by
Jean-Baptiste Kempf
Browse files
Options
Downloads
Patches
Plain Diff
projectM: change font path on Win32
Close
#4988
parent
67e7d9bf
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/visualization/projectm.cpp
+11
-3
11 additions, 3 deletions
modules/visualization/projectm.cpp
with
11 additions
and
3 deletions
modules/visualization/projectm.cpp
+
11
−
3
View file @
d8549ccd
...
...
@@ -74,6 +74,14 @@ static void Close ( vlc_object_t * );
#define TEXTURE_TEXT N_("Texture size")
#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
()
set_shortname
(
N_
(
"projectM"
))
set_description
(
N_
(
"libprojectM effect"
)
)
...
...
@@ -90,10 +98,10 @@ vlc_module_begin ()
add_directory
(
"projectm-preset-path"
,
"/usr/share/projectM/presets"
,
#endif
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
)
add_loadfile
(
"projectm-menu-font"
,
"/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf"
,
MENU_FONT_TXT
,
MENU_FONT_LONGTXT
,
true
)
add_loadfile
(
"projectm-menu-font"
,
FONT_PATH_MENU
,
MENU_FONT_TXT
,
MENU_FONT_LONGTXT
,
true
)
#endif
add_integer
(
"projectm-width"
,
800
,
WIDTH_TEXT
,
WIDTH_LONGTEXT
,
false
)
...
...
This diff is collapsed.
Click to expand it.
Migration Bot
@MigrationBot
mentioned in issue
#4988
·
4 years ago
mentioned in issue
#4988
mentioned in issue #4988
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment