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,
|
markup: bool,
|
||||||
scale: Option<f64>,
|
scale: Option<f64>,
|
||||||
) -> Result<TextTexture, TextError> {
|
) -> Result<TextTexture, TextError> {
|
||||||
|
let width = width.min(3840);
|
||||||
let config = Config {
|
let config = Config {
|
||||||
x,
|
x,
|
||||||
y,
|
y,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue