osd: add italic font for osd

This commit is contained in:
st4t1k 2016-04-08 11:43:34 +03:00 committed by wm4
parent 4561649f2d
commit 5f4b246bcc
4 changed files with 6 additions and 0 deletions

View File

@ -2625,6 +2625,9 @@ OSD
``--osd-bold=<yes|no>``, ``--sub-text-bold=<yes|no>``
Format text on bold.
``--osd-italic=<yes|no>``, ``--sub-text-italic=<yes|no>``
Format text on italic.
``--osd-border-color=<color>``, ``--sub-text-border-color=<color>``
See ``--osd-color``. Color used for the OSD/sub font border.

View File

@ -77,6 +77,7 @@ void mp_ass_set_style(ASS_Style *style, double res_y,
style->Alignment = 1 + (opts->align_x + 1) + (opts->align_y + 2) % 3 * 4;
style->Blur = opts->blur;
style->Bold = opts->bold;
style->Italic = opts->italic;
}
void mp_ass_configure_fonts(ASS_Renderer *priv, struct osd_style_opts *opts,

View File

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

View File

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