text: limit width to 4k to avoid performance degradation
This commit is contained in:
parent
ece56d91d3
commit
7b5be32b21
1 changed files with 1 additions and 0 deletions
|
|
@ -170,6 +170,7 @@ fn render2(
|
|||
markup: bool,
|
||||
scale: Option<f64>,
|
||||
) -> Result<TextTexture, TextError> {
|
||||
let width = width.min(3840);
|
||||
let config = Config {
|
||||
x,
|
||||
y,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue