Merge main into feat/artboard-rect-guides

This commit is contained in:
dotCooCoo committed 2026-12-02 07:25:40 -08:00
commit f5b4d0ef8a
5 files changed
+1277 -395

No files matched your search

+2 -2
View File
@@ -143,8 +143,8 @@ fn the_fonts_folder_next_to_a_document_is_an_absolute_path() {
let (_dir, root) = folder("relative");
std::fs::create_dir_all(root.join("pkg/Fonts")).unwrap();
let cwd = std::env::current_dir().unwrap();
let up = "../".repeat(cwd.components().count().saturating_sub(1));
let relative = format!("{up}{}", root.join("pkg/doc.vectorcraft").strip_prefix("/").unwrap().display());
let up: PathBuf = cwd.components().skip(1).map(|_| std::path::Component::ParentDir).collect();
let relative = up.join(root.join("pkg/doc.vectorcraft").strip_prefix("/").unwrap()).display().to_string();
assert!(Path::new(&relative).is_relative());
let mut s = session_for(&root);
let mut doc = vectorcraft_doc::Document::new(100.0, 100.0);