From ca9c81b0d30d630a950a0d830fe8d98ab0131eef Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 4 Jan 2013 16:10:17 +0100 Subject: sub: add --sub-text-* options to unstyled text subtitles font Before this commit, the --osd-* options (like --osd-font-size etc.) configured both the OSD and subtitle font. Make them separate, and add --sub-text-* options (like --sub-text-size etc.). Now --osd-* affects the OSD font only, and --sub-text-* unstyled text subtitles only. --- DOCS/man/en/changes.rst | 3 +++ DOCS/man/en/options.rst | 62 ++++++++++++++++++++++++------------------------- core/cfg-mplayer.h | 3 +++ core/options.h | 1 + sub/ass_mp.c | 2 +- sub/osd_libass.c | 2 +- 6 files changed, 40 insertions(+), 33 deletions(-) diff --git a/DOCS/man/en/changes.rst b/DOCS/man/en/changes.rst index b82bef5167..e8efef843f 100644 --- a/DOCS/man/en/changes.rst +++ b/DOCS/man/en/changes.rst @@ -110,6 +110,9 @@ Command line switches -endpos --length --cursor-autohide-delay --cursor-autohide -sub-fuzziness --autosub-match + -subfont --sub-text-font + -font --osd-font + -subfont-* --sub-text-*, --osd-* -subfont-text-scale --sub-scale -spugauss --sub-gauss -vobsub --sub (pass the .idx file) diff --git a/DOCS/man/en/options.rst b/DOCS/man/en/options.rst index 0bf7ae60d4..9beb5a1a3d 100644 --- a/DOCS/man/en/options.rst +++ b/DOCS/man/en/options.rst @@ -1231,26 +1231,24 @@ search for video segments from other files, and will also ignore any chapter order specified for the main file. ---osd-back-color=<#RRGGBB> - See ``--osd-color``. Color used for OSD text background. +--osd-back-color=<#RRGGBB>, --sub-text-back-color=<#RRGGBB> + See ``--osd-color``. Color used for OSD/sub text background. ---osd-border-color=<#RRGGBB> - See ``--osd-color``. Color used for the OSD font border. +--osd-border-color=<#RRGGBB>, --sub-text-border-color=<#RRGGBB> + See ``--osd-color``. Color used for the OSD/sub font border. - *Note*: ignored when ``--osd-back-color`` is specified (or more - exactly: when that option is not set to completely transparent). + *NOTE*: ignored when ``--osd-back-color``/``--sub-text-back-color`` is + specified (or more exactly: when that option is not set to completely + transparent). ---osd-border-size= - Size of the OSD font border in scaled pixels (see ``--osd-font-size`` for - details). A value of 0 disables borders. +--osd-border-size=, --sub-text-border-size= + Size of the OSD/sub font border in scaled pixels (see ``--osd-font-size`` + for details). A value of 0 disables borders. Default: 2.5. ---osd-color=<#RRGGBB|#AARRGGBB> - Specify the color used for OSD. This is also used for unstyled text - subtitles. This option (and most other ``--osd-`` options) are ignored - when ASS subtitles are rendered, unless the ``--no-ass`` option is - specified. +--osd-color=<#RRGGBB|#AARRGGBB>, --sub-text-color=<#RRGGBB|#AARRGGBB> + Specify the color used for OSD/unstyled text subtitles. The color is specified as a RGB hex triplet, and each 2-digit group expresses a color value in the range 0 (``00``) to 255 (`FF`). @@ -1268,19 +1266,21 @@ --osd-duration=