options: rename --sub-ass-shaper to --sub-shaper
Because it also affects plain text subtitles.
This commit is contained in:
1 parent
3291254263
commit
d1c2ee1c82
5 files changed
+7
-6
No files matched your search
@@ -1 +1,2 @@
|
||||
rename `--sub-ass-line-spacing` to `--sub-line-spacing`
|
||||
rename `--sub-ass-shaper` to `--sub-shaper`
|
||||
@@ -2524,7 +2524,7 @@ Subtitles
|
||||
``--sub-line-spacing=<value>``
|
||||
Set line spacing value for SSA/ASS renderer.
|
||||
|
||||
``--sub-ass-shaper=<simple|complex>``
|
||||
``--sub-shaper=<simple|complex>``
|
||||
Set the text layout engine used by libass.
|
||||
|
||||
:simple: uses Fribidi only, fast, doesn't render some languages correctly
|
||||
|
||||
+3
-3
@@ -315,8 +315,8 @@ const struct m_sub_options mp_subtitle_sub_opts = {
|
||||
.flags = M_OPT_FILE | UPDATE_SUB_HARD},
|
||||
{"sub-ass-hinting", OPT_CHOICE(ass_hinting,
|
||||
{"none", 0}, {"light", 1}, {"normal", 2}, {"native", 3})},
|
||||
{"sub-ass-shaper", OPT_CHOICE(ass_shaper,
|
||||
{"simple", 0}, {"complex", 1})},
|
||||
{"sub-shaper", OPT_CHOICE(sub_shaper, {"simple", 0}, {"complex", 1})},
|
||||
{"sub-ass-shaper", OPT_REPLACED("sub-shaper")},
|
||||
{"sub-ass-prune-delay", OPT_DOUBLE(ass_prune_delay), M_RANGE(-1.0, DBL_MAX)},
|
||||
{"sub-ass-justify", OPT_BOOL(ass_justify)},
|
||||
{"sub-scale-by-window", OPT_BOOL(sub_scale_by_window)},
|
||||
@@ -343,7 +343,7 @@ const struct m_sub_options mp_subtitle_sub_opts = {
|
||||
.ass_vsfilter_color_compat = 1,
|
||||
.ass_use_video_data = 2,
|
||||
.ass_video_aspect = 0,
|
||||
.ass_shaper = 1,
|
||||
.sub_shaper = 1,
|
||||
.use_embedded_fonts = true,
|
||||
},
|
||||
.change_flags = UPDATE_OSD,
|
||||
|
||||
+1
-1
@@ -117,7 +117,7 @@ struct mp_subtitle_opts {
|
||||
char **ass_style_override_list;
|
||||
char *ass_styles_file;
|
||||
int ass_hinting;
|
||||
int ass_shaper;
|
||||
int sub_shaper;
|
||||
double ass_prune_delay;
|
||||
bool ass_justify;
|
||||
bool sub_clear_on_seek;
|
||||
|
||||
+1
-1
@@ -552,7 +552,7 @@ static void configure_ass(struct sd *sd, struct mp_osd_res *dim,
|
||||
}
|
||||
ass_set_use_margins(priv, set_use_margins);
|
||||
ass_set_line_position(priv, set_sub_pos);
|
||||
ass_set_shaper(priv, opts->ass_shaper);
|
||||
ass_set_shaper(priv, opts->sub_shaper);
|
||||
int set_force_flags = 0;
|
||||
if (total_override) {
|
||||
set_force_flags |= ASS_OVERRIDE_BIT_FONT_NAME
|
||||
|
||||
Reference in new issue
Block a user