summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrigori Goronzy <greg@blackbox>2011-07-22 01:55:09 +0200
committerGrigori Goronzy <greg@blackbox>2011-07-22 01:55:09 +0200
commit3191ba8c9e455bda7e868540baa21e0afde2b72b (patch)
tree24a9aea7501a79bb079110d7851b621ac1371968
parent4bb1e2df3689f4f404f7ef1640b9fac7b58f2e94 (diff)
downloadlibass-3191ba8c9e455bda7e868540baa21e0afde2b72b.tar.bz2
libass-3191ba8c9e455bda7e868540baa21e0afde2b72b.tar.xz
Don't extend face runs as much as possible
This leads to fewer shaping runs, but has many unwanted side effects.
-rw-r--r--libass/ass_shaper.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/libass/ass_shaper.c b/libass/ass_shaper.c
index 5f2ec50..9ef5fd5 100644
--- a/libass/ass_shaper.c
+++ b/libass/ass_shaper.c
@@ -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);