diff options
Diffstat (limited to 'libhb/rendersub.c')
-rw-r--r-- | libhb/rendersub.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libhb/rendersub.c b/libhb/rendersub.c index 006f4f156..1ea4c7648 100644 --- a/libhb/rendersub.c +++ b/libhb/rendersub.c @@ -596,8 +596,10 @@ static int cc608sub_post_init( hb_filter_object_t * filter, hb_job_t * job ) // to have the header rewritten with the correct dimensions. int height = job->title->geometry.height - job->crop[0] - job->crop[1]; int width = job->title->geometry.width - job->crop[2] - job->crop[3]; + int safe_height = 0.8 * height; // Use fixed widht font for CC - hb_subtitle_add_ssa_header(filter->subtitle, "Courier New", width, height); + hb_subtitle_add_ssa_header(filter->subtitle, "Courier New", + .08 * safe_height, width, height); return ssa_post_init(filter, job); } @@ -607,7 +609,8 @@ static int textsub_post_init( hb_filter_object_t * filter, hb_job_t * job ) // to have the header rewritten with the correct dimensions. int height = job->title->geometry.height - job->crop[0] - job->crop[1]; int width = job->title->geometry.width - job->crop[2] - job->crop[3]; - hb_subtitle_add_ssa_header(filter->subtitle, "Arial", width, height); + hb_subtitle_add_ssa_header(filter->subtitle, "Arial", .066 * height, + width, height); return ssa_post_init(filter, job); } |