Add skip_shaping flag to avoid expensive shaping when not needed
This commit is contained in:
parent
bfb5eefbfa
commit
ad111a1df1
5 changed files with 126 additions and 29 deletions
|
|
@ -36,7 +36,7 @@
|
|||
//! let attrs = Attrs::new();
|
||||
//!
|
||||
//! // Add some text!
|
||||
//! buffer.set_text("Hello, Rust! 🦀\n", attrs);
|
||||
//! buffer.set_text("Hello, Rust! 🦀\n", attrs, false);
|
||||
//!
|
||||
//! // Perform shaping as desired
|
||||
//! buffer.shape_until_scroll();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue