mirror of https://github.com/mpv-player/mpv
osd: add italic font for osd
This commit is contained in:
parent
4561649f2d
commit
5f4b246bcc
|
@ -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.
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue