From dbfe2cd3176268b66a372d171ee5af09a2825afa Mon Sep 17 00:00:00 2001 From: Oleg Oshmyan Date: Sun, 19 Jan 2014 00:18:19 +0000 Subject: Start \k, \ko at exact start time, not right after it --- libass/ass_parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libass/ass_parse.c b/libass/ass_parse.c index c74f3b3..c3292c9 100644 --- a/libass/ass_parse.c +++ b/libass/ass_parse.c @@ -966,7 +966,7 @@ void process_karaoke_effects(ASS_Renderer *render_priv) dt = (tm_current - tm_start); if ((s1->effect_type == EF_KARAOKE) || (s1->effect_type == EF_KARAOKE_KO)) { - if (dt > 0) + if (dt >= 0) x = x_end + 1; else x = x_start; -- cgit v1.2.3 From 1d78d898ae1edde3adccd409fc276174de59f101 Mon Sep 17 00:00:00 2001 From: Oleg Oshmyan Date: Thu, 23 Jan 2014 20:21:58 +0000 Subject: fontconfig: don't compact the sorted font list Some broken fonts are dropped by Fontconfig during compacting. --- libass/ass_fontconfig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libass/ass_fontconfig.c b/libass/ass_fontconfig.c index b8ad9ec..dcb0bcf 100644 --- a/libass/ass_fontconfig.c +++ b/libass/ass_fontconfig.c @@ -188,7 +188,7 @@ static char *select_font(ASS_Library *library, FCInstance *priv, */ FcPatternDel(pat, "lang"); - fsorted = FcFontSort(priv->config, pat, FcTrue, NULL, &result); + fsorted = FcFontSort(priv->config, pat, FcFalse, NULL, &result); ffullname = match_fullname(library, priv, family, bold, italic); if (!fsorted || !ffullname) goto error; -- cgit v1.2.3