Skip to content

Commit

Permalink
Set system UI font as default…
Browse files Browse the repository at this point in the history
…in subtitle grid and audio karaoke
  • Loading branch information
0tkl committed Jun 4, 2024
1 parent 80491ba commit b962e5c
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/libresrc/default_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"Drag Timing" : true,
"Inactive Lines Display Mode" : 3,
"Karaoke" : {
"Font Face" : "Verdana",
"Font Face" : "",
"Font Size" : 9
},
"Lead" : {
Expand Down Expand Up @@ -422,8 +422,8 @@
{"bool" : true}
],
"Focus Allow" : true,
"Font Face" : "Tahoma",
"Font Size" : 8,
"Font Face" : "",
"Font Size" : 10,
"Hide Overrides" : 1,
"Hide Overrides Char" : "",
"Highlight Subtitles in Frame" : true
Expand Down
13 changes: 13 additions & 0 deletions src/libresrc/default_config_macos.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"Audio" : {
"Karaoke" : {
"Font Face" : "SF Pro"
},
"Player" : "@DEFAULT_PLAYER_AUDIO@"
},
"Subtitle" : {
"Grid" : {
"Font Face" : "SF Pro"
}
}
}
10 changes: 9 additions & 1 deletion src/libresrc/default_config_platform.json.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
{
"Audio" : {
"Player" : "@DEFAULT_PLAYER_AUDIO@",
"Karaoke" : {
"Font Face" : "Noto Sans UI"
},
"Player" : "@DEFAULT_PLAYER_AUDIO@"
},
"Subtitle" : {
"Grid" : {
"Font Face" : "Noto Sans UI"
}
}
}
8 changes: 8 additions & 0 deletions src/libresrc/default_config_win.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
{
"Audio" : {
"Karaoke" : {
"Font Face" : "Segoe UI"
},
"Player" : "DirectSound"
},
"Provider" : {
"VapourSynth" : {
"Autoload User Plugins": false
}
},
"Subtitle" : {
"Grid" : {
"Font Face" : "Segoe UI"
}
}
}
4 changes: 4 additions & 0 deletions src/libresrc/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ if host_machine.system() == 'windows'
conf_platform_json = configure_file(input: 'default_config_win.json',
output: 'default_config_platform.json',
copy: true)
elif host_machine.system() == 'darwin'
conf_platform_json = configure_file(input: 'default_config_macos.json',
output: 'default_config_platform.json',
configuration: conf_platform)
else
conf_platform_json = configure_file(input: 'default_config_platform.json.in',
output: '@BASENAME@',
Expand Down

0 comments on commit b962e5c

Please sign in to comment.