diff options
author | John Stebbins <[email protected]> | 2017-03-10 12:47:50 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2017-03-10 12:47:50 -0700 |
commit | 65e24973e7deff59f93caabd1d561c8d0d2e9163 (patch) | |
tree | 31a5ceb7b0b51796261a280d0596a0d9ad0a7492 /libhb/rendersub.c | |
parent | e7e5ea0707549407495f1abb6eb8ead8ff3c3c44 (diff) |
text subs: use generic font family names (#614)
* text subs: use generic font family names
Allows the platform more flexibility in choosing the "best" font for the
platform.
* rendersub: make font configurable per platform
Use Lucida Console for mono font on windows since it chooses ugly,
difficult to read Courier New when using monospace family name.
Diffstat (limited to 'libhb/rendersub.c')
-rw-r--r-- | libhb/rendersub.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libhb/rendersub.c b/libhb/rendersub.c index 763cdfa4d..26d1058c5 100644 --- a/libhb/rendersub.c +++ b/libhb/rendersub.c @@ -675,7 +675,7 @@ static int cc608sub_post_init( hb_filter_object_t * filter, hb_job_t * job ) int width = job->title->geometry.width - job->crop[2] - job->crop[3]; int safe_height = 0.8 * job->title->geometry.height; // Use fixed widht font for CC - hb_subtitle_add_ssa_header(filter->subtitle, "Courier New", + hb_subtitle_add_ssa_header(filter->subtitle, HB_FONT_MONO, .08 * safe_height, width, height); return ssa_post_init(filter, job); } @@ -686,7 +686,7 @@ 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", + hb_subtitle_add_ssa_header(filter->subtitle, HB_FONT_SANS, .066 * job->title->geometry.height, width, height); return ssa_post_init(filter, job); |