Skip to content

Commit

Permalink
more size margin
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasp85 committed Mar 1, 2024
1 parent e70ca78 commit 21c0547
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/text_renderer.h
Original file line number Diff line number Diff line change
Expand Up @@ -240,12 +240,12 @@ class TextRenderer {
return;
}

loc_buffer.reserve(expected_max);
id_buffer.reserve(expected_max);
cluster_buffer.reserve(expected_max);
font_buffer.reserve(expected_max);
fallback_buffer.reserve(expected_max*20);
scaling_buffer.reserve(expected_max);
loc_buffer.reserve(expected_max+100);
id_buffer.reserve(expected_max+100);
cluster_buffer.reserve(expected_max+100);
font_buffer.reserve(expected_max+100);
fallback_buffer.reserve(expected_max+100);
scaling_buffer.reserve(expected_max+100);

int err = textshaping::string_shape(
string,
Expand Down

0 comments on commit 21c0547

Please sign in to comment.