diff options
author | Oneric <oneric@oneric.stub> | 2021-03-26 17:30:25 +0100 |
---|---|---|
committer | Oneric <oneric@oneric.stub> | 2021-04-22 23:56:34 +0200 |
commit | 1140b6b885c89d37eef13dc1f31f144e9a76a4d7 (patch) | |
tree | 7fc25926f73032bed2e5c85702196128df70d91c /test | |
parent | 006c46b5a0eee4d410b87f20b9c435dd252a7109 (diff) | |
download | libass-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 'test')
-rw-r--r-- | test/test.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/test.c b/test/test.c index 6726fed..c378e48 100644 --- a/test/test.c +++ b/test/test.c @@ -99,6 +99,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) { |