Remove prints

This commit is contained in:
Jeremy Soller 2022-10-06 16:13:44 -06:00
parent fc6904dc3b
commit daf4cb1eb8
No known key found for this signature in database
GPG key ID: 87F211AF2BE4C2FE

View file

@ -132,17 +132,10 @@ impl<'a> FontMatches<'a> {
//TODO: improve performance
for (linebreak, _) in unicode_linebreak::linebreaks(span) {
println!("linebreak {}", linebreak);
let mut glyphs_opt = None;
'words: for word_i in 0..words.len() {
for glyph_i in 0..words[word_i].glyphs.len() {
if words[word_i].glyphs[glyph_i].start == start_span + linebreak {
println!("glyph {}", words[word_i].glyphs[glyph_i].start);
println!("word '{}'", &line[
words[word_i].glyphs[0].start
..
words[word_i].glyphs[glyph_i].start
]);
glyphs_opt = Some(words[word_i].glyphs.split_off(glyph_i));
break 'words;
}