mirror of
https://github.com/mpv-player/mpv
synced 2025-01-27 18:13:15 +00:00
Enable ass_line_spacing option.
Patch by Thomas Reitmayr (treitmayr devbase at). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24574 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
fdb78c2bea
commit
351a62dbc4
@ -85,6 +85,7 @@ void ass_set_use_margins(ass_renderer_t* priv, int use);
|
||||
void ass_set_aspect_ratio(ass_renderer_t* priv, double ar);
|
||||
void ass_set_font_scale(ass_renderer_t* priv, double font_scale);
|
||||
void ass_set_hinting(ass_renderer_t* priv, ass_hinting_t ht);
|
||||
void ass_set_line_spacing(ass_renderer_t* priv, double line_spacing);
|
||||
|
||||
/**
|
||||
* \brief set font lookup defaults
|
||||
|
@ -228,6 +228,7 @@ void ass_configure(ass_renderer_t* priv, int w, int h, int unscaled) {
|
||||
else
|
||||
hinting = ass_hinting & 3;
|
||||
ass_set_hinting(priv, hinting);
|
||||
ass_set_line_spacing(priv, ass_line_spacing);
|
||||
}
|
||||
|
||||
void ass_configure_fonts(ass_renderer_t* priv) {
|
||||
|
@ -2063,6 +2063,11 @@ void ass_set_hinting(ass_renderer_t* priv, ass_hinting_t ht)
|
||||
}
|
||||
}
|
||||
|
||||
void ass_set_line_spacing(ass_renderer_t* priv, double line_spacing)
|
||||
{
|
||||
priv->settings.line_spacing = line_spacing;
|
||||
}
|
||||
|
||||
int ass_set_fonts(ass_renderer_t* priv, const char* default_font, const char* default_family)
|
||||
{
|
||||
if (priv->settings.default_font)
|
||||
|
Loading…
Reference in New Issue
Block a user