Improve API to set line attributes

This commit is contained in:
Jeremy Soller 2022-10-27 08:37:07 -06:00
parent 40175aac10
commit f133b1fca1
No known key found for this signature in database
GPG key ID: 87F211AF2BE4C2FE
3 changed files with 61 additions and 10 deletions

View file

@ -3,6 +3,7 @@
use cosmic_text::{FontSystem, SwashCache, TextAction, TextBuffer, TextMetrics};
use orbclient::{Color, EventOption, Renderer, Window, WindowFlag};
use std::{env, fs, process, thread, time::{Duration, Instant}};
use unicode_segmentation::UnicodeSegmentation;
fn redraw(window: &mut Window, buffer: &mut TextBuffer<'_>, swash_cache: &mut SwashCache) {
let bg_color = Color::rgb(0x34, 0x34, 0x34);