diff --git a/Cargo.toml b/Cargo.toml index d73faad..bc0f991 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,10 +10,7 @@ license = "EPL-2.0" [dependencies] anyhow = "1.0" camino = "1.1" -console = "0.15" clap = { version = "4.4", features = ["derive"] } -fontconfig = "0.8" -harfbuzz_rs = "2.0" indexmap = "2.2" rational = "1.5" serde = { version = "1.0.188", features = ["derive"] } diff --git a/question.png b/question.png deleted file mode 100644 index 4172624..0000000 Binary files a/question.png and /dev/null differ diff --git a/src/iotro.rs b/src/iotro.rs index 98b5a50..94eca89 100644 --- a/src/iotro.rs +++ b/src/iotro.rs @@ -7,7 +7,7 @@ use std::{ str::FromStr }; use svgwriter::{ - tags::{Group, Rect, TagWithPresentationAttributes as _, Text}, + tags::{Group, Rect, TagWithPresentationAttributes, Text}, Graphic }; @@ -134,14 +134,14 @@ impl Debug for Language<'_> { } #[repr(u16)] -pub(crate) enum FontSize { +enum FontSize { Huge = 72, Large = 56, Big = 44 } #[repr(u16)] -pub(crate) enum FontWeight { +enum FontWeight { Normal = 400, SemiBold = 500, Bold = 700 diff --git a/src/main.rs b/src/main.rs index 5b163f2..6c9a7ee 100644 --- a/src/main.rs +++ b/src/main.rs @@ -3,19 +3,16 @@ #![forbid(elided_lifetimes_in_paths, unsafe_code)] mod iotro; -mod question; mod render; mod time; -use self::{ - iotro::Language, - question::Question, +use crate::{ render::{ffmpeg::FfmpegOutputFormat, Renderer}, time::{parse_date, parse_time, Date, Time} }; use camino::Utf8PathBuf as PathBuf; use clap::Parser; -use console::style; +use iotro::Language; use rational::Rational; use serde::{Deserialize, Serialize}; use serde_with::{serde_as, DisplayFromStr}; @@ -172,15 +169,9 @@ struct ProjectSource { start: Option