From d2fd394036e5c4c44b84eedc65da0132d6139c90 Mon Sep 17 00:00:00 2001 From: Guido Cella Date: Sun, 27 Oct 2024 20:10:33 +0100 Subject: [PATCH] console.lua: increase the font and border size Make the console easier to read because the current default is too small. See for example https://github.com/mpv-player/mpv/discussions/14903#discussioncomment-10794701 or https://github.com/mpv-player/mpv/pull/15036#discussion_r1794178379 or https://github.com/mpv-player/mpv/pull/15145#issuecomment-2428762898 or https://github.com/mpv-player/mpv/pull/15031#issuecomment-2402289600. This also prevents libass from decreasing performance by printing many lines. --- DOCS/man/console.rst | 4 ++-- player/lua/console.lua | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/DOCS/man/console.rst b/DOCS/man/console.rst index 4058a27b5d484..a542ef43cb5cd 100644 --- a/DOCS/man/console.rst +++ b/DOCS/man/console.rst @@ -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. diff --git a/player/lua/console.lua b/player/lua/console.lua index db60ec9e59034..5f4de8d4901b2 100644 --- a/player/lua/console.lua +++ b/player/lua/console.lua @@ -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,