Commit 2e71986b authored by Matthias Clasen's avatar Matthias Clasen
Browse files

Slightly speed up line breaking

Make a bit more use of our types.
parent dde9a87a
......@@ -362,12 +362,15 @@ pango_default_break (const gchar *text,
case G_UNICODE_PARAGRAPH_SEPARATOR:
attrs[i].is_white = TRUE;
break;
default:
case G_UNICODE_CONTROL:
if (wc == '\t' || wc == '\n' || wc == '\r' || wc == '\f')
attrs[i].is_white = TRUE;
else
attrs[i].is_white = FALSE;
break;
default:
attrs[i].is_white = FALSE;
break;
}
/* Just few spaces have variable width. So explicitly mark them.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment