add system font loading

improve drawing
implement staggered text
begin refactor of drawing code
This commit is contained in:
2023-05-24 00:24:16 +02:00
parent 8523e44029
commit 330fa6a7f0
28 changed files with 844 additions and 207 deletions

View File

@@ -1,7 +1,10 @@
// Prevents additional console window on Windows in release, DO NOT REMOVE!!
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
use crate::{animation::timeline::calculate_timeline_entities_at_frame, fonts::get_system_fonts};
use crate::{
animation::timeline::calculate_timeline_entities_at_frame,
fonts::{get_system_font, get_system_fonts},
};
pub mod animation;
pub mod fonts;
@@ -10,6 +13,7 @@ fn main() {
tauri::Builder::default()
.invoke_handler(tauri::generate_handler![
calculate_timeline_entities_at_frame,
get_system_font,
get_system_fonts
])
.run(tauri::generate_context!())