Get rid of unnecessary clamping in text shaping

This commit is contained in:
Matt Brubeck 2016-04-27 10:58:16 -07:00
parent 83feda3ac2
commit 4d05bf23b8

View file

@ -424,9 +424,6 @@ impl Shaper {
char_byte_span.start = char_byte_span.end;
}
// clamp to end of text. (I don't think this will be necessary, but..)
covered_byte_span.end = cmp::min(covered_byte_span.end, byte_max);
// fast path: 1-to-1 mapping of single char and single glyph.
if glyph_span.len() == 1 && !glyph_spans_multiple_characters {
// TODO(Issue #214): cluster ranges need to be computed before