Don't render invisibles with elements (#20841)
Turns out that in the case you have a somehow valid utf-8 file that contains almost all ascii control characters, we run out of element arena space. Fixes: #20652 Release Notes: - Fixed a crash when opening a file containing a very large number of ascii control characters on one line.
This commit is contained in:
parent
f0c7e62adc
commit
d4c5c0f05e
4 changed files with 119 additions and 65 deletions
|
@ -29,7 +29,7 @@ pub struct LineLayout {
|
|||
}
|
||||
|
||||
/// A run of text that has been shaped .
|
||||
#[derive(Debug)]
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct ShapedRun {
|
||||
/// The font id for this run
|
||||
pub font_id: FontId,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue