Update cosmic-text to 0.19

This commit is contained in:
Héctor Ramón Jiménez 2026-04-23 19:43:09 +09:00
parent 1d68895e9c
commit e429a025df
No known key found for this signature in database
5 changed files with 9 additions and 15 deletions

View file

@ -102,10 +102,9 @@ impl Default for TextBounds {
}
/// A text area containing text to be rendered along with its overflow behavior.
#[derive(Clone)]
pub struct TextArea<'a> {
/// The buffer containing the text to be rendered.
pub buffer: &'a Buffer,
pub text: LayoutRunIter<'a>,
/// The left edge of the buffer.
pub left: f32,
/// The top edge of the buffer.

View file

@ -81,8 +81,7 @@ impl TextRenderer {
};
let layout_runs = text_area
.buffer
.layout_runs()
.text
.skip_while(|run| !is_run_visible(run))
.take_while(is_run_visible);