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
mpv-player#14903 (reply in thread)
or mpv-player#15036 (comment)
or mpv-player#15145 (comment)
or mpv-player#15031 (comment).

This also prevents libass from decreasing performance by printing many
lines.
  • Loading branch information
guidocella committed Oct 27, 2024
1 parent 43d5612 commit 6a053e3
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 @@ -142,13 +142,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 6a053e3

Please sign in to comment.