diff options
author | st4t1k <nik.karlis@mgmail.com> | 2016-04-08 11:43:34 +0300 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-04-08 10:58:06 +0200 |
commit | 5f4b246bcc031e166f76f5721e07faccfb788c8b (patch) | |
tree | fa0e4da7c4287c0638d7e234c679577c2d99ada3 /sub | |
parent | 4561649f2d942ae12cdf7ce93d074d75d7268bb5 (diff) | |
download | mpv-5f4b246bcc031e166f76f5721e07faccfb788c8b.tar.bz2 mpv-5f4b246bcc031e166f76f5721e07faccfb788c8b.tar.xz |
osd: add italic font for osd
Diffstat (limited to 'sub')
-rw-r--r-- | sub/ass_mp.c | 1 | ||||
-rw-r--r-- | sub/osd.c | 1 | ||||
-rw-r--r-- | sub/osd.h | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/sub/ass_mp.c b/sub/ass_mp.c index 93a797e036..2f9b39740f 100644 --- a/sub/ass_mp.c +++ b/sub/ass_mp.c @@ -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} }; @@ -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; |