]> granicus.if.org Git - libass/commitdiff
Don't extend face runs as much as possible
authorGrigori Goronzy <greg@blackbox>
Thu, 21 Jul 2011 23:55:09 +0000 (01:55 +0200)
committerGrigori Goronzy <greg@blackbox>
Thu, 21 Jul 2011 23:55:09 +0000 (01:55 +0200)
This leads to fewer shaping runs, but has many unwanted side effects.

libass/ass_shaper.c

index 5f2ec5076a0173caf2634d313cd8992d61d5424c..9ef5fd5ee5ce97fd10ec37f3be1f611415eb8bf8 100644 (file)
@@ -317,11 +317,6 @@ void ass_shaper_find_runs(ASS_Shaper *shaper, ASS_Renderer *render_priv,
         // skip drawings
         if (info->symbol == 0xfffc)
             continue;
-        // initialize face_index to continue with the same face, if possible
-        // XXX: can be problematic in some cases, for example if a font misses
-        // a single glyph, like space (U+0020)
-        if (i > 0)
-            info->face_index = last->face_index;
         // set size and get glyph index
         ass_font_get_index(render_priv->fontconfig_priv, info->font,
                 info->symbol, &info->face_index, &info->glyph_index);