1
0
mirror of https://github.com/mpv-player/mpv synced 2025-04-27 22:00:23 +00:00

stats.lua: set sans-serif as default font

sans is deprecated and unsupported on some platforms.
This commit is contained in:
m154k1 2023-07-09 12:05:23 +03:00 committed by sfan5
parent a0f1bbddff
commit cbb1af64d5
2 changed files with 3 additions and 10 deletions

View File

@ -35,13 +35,6 @@ UP Scroll one line up
DOWN Scroll one line down DOWN Scroll one line down
==== ================== ==== ==================
Font
~~~~
For optimal visual experience, a font with support for many font weights and
monospaced digits is recommended. By default, the open source font
`Source Sans Pro <https://github.com/adobe-fonts/source-sans-pro>`_ is used.
Configuration Configuration
------------- -------------
@ -110,13 +103,13 @@ Configurable Options
Clear data buffers used for drawing graphs when toggling. Clear data buffers used for drawing graphs when toggling.
``font`` ``font``
Default: Source Sans Pro Default: sans-serif
Font name. Should support as many font weights as possible for optimal Font name. Should support as many font weights as possible for optimal
visual experience. visual experience.
``font_mono`` ``font_mono``
Default: Source Sans Pro Default: monospace
Font name for parts where monospaced characters are necessary to align Font name for parts where monospaced characters are necessary to align
text. Currently, monospaced digits are sufficient. text. Currently, monospaced digits are sufficient.

View File

@ -43,7 +43,7 @@ local o = {
plot_color = "FFFFFF", plot_color = "FFFFFF",
-- Text style -- Text style
font = "sans", font = "sans-serif",
font_mono = "monospace", -- monospaced digits are sufficient font_mono = "monospace", -- monospaced digits are sufficient
font_size = 8, font_size = 8,
font_color = "FFFFFF", font_color = "FFFFFF",