Skip to content

Commit

Permalink
console.lua: increase the font and border size
Browse files Browse the repository at this point in the history
Make the console easier to read because the current default is too
small. See for example
#14903 (reply in thread)
or #15036 (comment)
or #15145 (comment)
or #15031 (comment).

This also prevents libass from decreasing performance by printing many
lines.
  • Loading branch information
guidocella authored and kasper93 committed Oct 27, 2024
1 parent e00d8dc commit d2fd394
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions DOCS/man/console.rst
Original file line number Diff line number Diff line change
Expand Up @@ -154,13 +154,13 @@ Configurable Options
aligned correctly.

``font_size``
Default: 16
Default: 24

Set the font size used for the REPL and the console. This will be
multiplied by ``display-hidpi-scale``.

``border_size``
Default: 1
Default: 1.5

Set the font border size used for the REPL and the console.

Expand Down
4 changes: 2 additions & 2 deletions player/lua/console.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ local assdraw = require 'mp.assdraw'
-- Default options
local opts = {
font = "",
font_size = 16,
border_size = 1,
font_size = 24,
border_size = 1.5,
scale_with_window = "auto",
case_sensitive = true,
history_dedup = true,
Expand Down

0 comments on commit d2fd394

Please sign in to comment.