You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The main use case here is being able to reuse a Buffer both for layout and drawing. iced does not know the color of the text during layout.
Color doesn't really affect anything but drawing, right? It seems it'd make more sense to provide a list of color spans as an argument to draw? Or maybe we could change BufferLine::set_attrs_list to not trigger a reset if only the colors differ?
I would say we shouldn't need to rerun the layout if the colors change since this doesn't affect the layout itself. The only parts in Attr that affect the layout would be those that would be family, stretch, style and weight. Meta And Color should just be Update-able somehow.
The main use case here is being able to reuse a Buffer both for layout and drawing.
iced
does not know the color of the text during layout.Color doesn't really affect anything but drawing, right? It seems it'd make more sense to provide a list of color spans as an argument to draw? Or maybe we could change
BufferLine::set_attrs_list
to not trigger a reset if only the colors differ?cosmic-text/src/buffer_line.rs
Lines 69 to 72 in f92a205
The text was updated successfully, but these errors were encountered: