sub: add --sub-text-bold option

This was basically requested.
This commit is contained in:
wm4 2015-04-01 22:58:12 +02:00
parent 9e98702493
commit f9db94ab71
4 changed files with 6 additions and 0 deletions

View File

@ -2405,6 +2405,9 @@ OSD
``--osd-blur=<0..20.0>``, ``--sub-text-blur=<0..20.0>``
Gaussian blur factor. 0 means no blur applied (default).
``--osd-bold=<yes|no>``, ``--sub-text-bold=<yes|no>``
Format text on bold.
``--osd-border-color=<color>``, ``--sub-text-border-color=<color>``
See ``--osd-color``. Color used for the OSD/sub font border.

View File

@ -74,6 +74,7 @@ void mp_ass_set_style(ASS_Style *style, double res_y,
style->ScaleY = 1.;
style->Alignment = 1 + (opts->align_x + 1) + (opts->align_y + 2) % 3 * 4;
style->Blur = opts->blur;
style->Bold = opts->bold;
}
// Add default styles, if the track does not have any styles yet.

View File

@ -59,6 +59,7 @@ static const m_option_t style_opts[] = {
OPT_CHOICE("align-y", align_y, 0,
({"top", -1}, {"center", 0}, {"bottom", +1})),
OPT_FLOATRANGE("blur", blur, 0, 0, 20),
OPT_FLAG("bold", bold, 0),
{0}
};

View File

@ -135,6 +135,7 @@ struct osd_style_opts {
int align_x;
int align_y;
float blur;
int bold;
};
extern const struct m_sub_options osd_style_conf;