diff --git a/src/text_renderer.h b/src/text_renderer.h index 9d9ea15..5f7b3fd 100644 --- a/src/text_renderer.h +++ b/src/text_renderer.h @@ -244,7 +244,7 @@ class TextRenderer { id_buffer.reserve(expected_max); cluster_buffer.reserve(expected_max); font_buffer.reserve(expected_max); - fallback_buffer.reserve(expected_max); + fallback_buffer.reserve(expected_max*20); scaling_buffer.reserve(expected_max); int err = textshaping::string_shape(