1
0
Fork 0
forked from wry/wry

text: limit width to 4k to avoid performance degradation

This commit is contained in:
Julian Orth 2024-09-08 14:48:20 +02:00
parent ece56d91d3
commit 7b5be32b21

View file

@ -170,6 +170,7 @@ fn render2(
markup: bool,
scale: Option<f64>,
) -> Result<TextTexture, TextError> {
let width = width.min(3840);
let config = Config {
x,
y,