summaryrefslogtreecommitdiffstats
path: root/DOCS
diff options
context:
space:
mode:
authorChristoph Heinrich <christoph.heinrich@student.tugraz.at>2023-11-08 00:03:48 +0100
committerDudemanguy <random342@airmail.cc>2023-12-06 19:06:41 +0000
commitc16f868dd7f0d6862a6e2cdfb12492467f288fee (patch)
treed74019112cd10285258b18994584b94d3c9194f2 /DOCS
parent21bd301372304c3b0c194999442d3c8b690d41c1 (diff)
downloadmpv-c16f868dd7f0d6862a6e2cdfb12492467f288fee.tar.bz2
mpv-c16f868dd7f0d6862a6e2cdfb12492467f288fee.tar.xz
console: automatically determine the font_hw_ratio
A simplified version of the text width estimation code from uosc. An osd_overlay is created with compute_bounds=true for measuring the width of the lower case alphabet at what's estimated to be the largest font size possible without clipping. The lower case alphabet was chosen to get decent results for proportional fonts, even if they aren't officially supported.
Diffstat (limited to 'DOCS')
-rw-r--r--DOCS/man/console.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/DOCS/man/console.rst b/DOCS/man/console.rst
index 49502b3893..c48178f207 100644
--- a/DOCS/man/console.rst
+++ b/DOCS/man/console.rst
@@ -161,7 +161,8 @@ Configurable Options
multiplied by "scale."
``font_hw_ratio``
- Default: 2.0
+ Default: auto
The ratio of font height to font width.
Adjusts table width of completion suggestions.
+ Values in the range 1.8..2.5 make sense for common monospace fonts.