Add skip_shaping flag to avoid expensive shaping when not needed

This commit is contained in:
Héctor Ramón Jiménez 2023-04-19 00:24:43 +02:00
parent bfb5eefbfa
commit ad111a1df1
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
5 changed files with 126 additions and 29 deletions

View file

@ -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();