summaryrefslogtreecommitdiffstats
path: root/profile
diff options
context:
space:
mode:
authorOneric <oneric@oneric.stub>2021-03-26 17:30:25 +0100
committerOneric <oneric@oneric.stub>2021-04-22 23:56:34 +0200
commit1140b6b885c89d37eef13dc1f31f144e9a76a4d7 (patch)
tree7fc25926f73032bed2e5c85702196128df70d91c /profile
parent006c46b5a0eee4d410b87f20b9c435dd252a7109 (diff)
downloadlibass-1140b6b885c89d37eef13dc1f31f144e9a76a4d7.tar.bz2
libass-1140b6b885c89d37eef13dc1f31f144e9a76a4d7.tar.xz
Fix embedded and memory fonts
Previously only both only worked when ass_set_fonts was called after all embedded and memory fonts were already added. Especially for embedded fonts this meant it won't work for most users, except mpv, including our own utilities, even if extract_fonts was set. Now that it works, enable extract_fonts in our utilities. GitHub: fixes #266
Diffstat (limited to 'profile')
-rw-r--r--profile/profile.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/profile/profile.c b/profile/profile.c
index e7f64f5..b89d10b 100644
--- a/profile/profile.c
+++ b/profile/profile.c
@@ -49,6 +49,7 @@ static void init(int frame_w, int frame_h)
}
ass_set_message_cb(ass_library, msg_callback, NULL);
+ ass_set_extract_fonts(ass_library, 1);
ass_renderer = ass_renderer_init(ass_library);
if (!ass_renderer) {