Add markdown sample

This commit is contained in:
Jeremy Soller 2022-10-26 15:37:26 -06:00
parent 77d416b2fd
commit 851e55d950
No known key found for this signature in database
GPG key ID: 87F211AF2BE4C2FE
10 changed files with 155 additions and 11 deletions

View file

@ -3,7 +3,7 @@ name = "rich-text"
version = "0.1.0"
authors = ["Jeremy Soller <jeremy@system76.com>"]
edition = "2021"
license = "MPL2"
license = "MIT OR Apache-2.0"
publish = false
[dependencies]
@ -12,7 +12,3 @@ env_logger = "0.9"
fontdb = "0.9"
log = "0.4"
orbclient = "0.3.35"
unicode-segmentation = "1.7"
[features]
mono = []

View file

@ -4,7 +4,6 @@ use cosmic_text::{Attrs, Color, Family, FontSystem, Style, SwashCache,
TextAction, TextBuffer, TextBufferLine, TextMetrics, Weight};
use orbclient::{EventOption, Renderer, Window, WindowFlag};
use std::{env, fs, process, thread, time::{Duration, Instant}};
use unicode_segmentation::UnicodeSegmentation;
fn main() {
env_logger::init();