From e67211f07036a29014aeec2e27179b7488d416ab Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Sat, 21 Nov 2026 17:17:06 -0800 Subject: [PATCH 1/4] Fix #8583: document tab titles draw in a condensed face, so more tabs fit Desktop builds with a craft-fonts checkout that has Noto Sans Condensed SemiBold in its opt-in Latin catalog (fonts/latin-manifest.txt) embed that one face as vectorcraft_text::CONDENSED_UI_FONT. Tab titles draw in a new theme::FONT_TAB family headed by it, scaled to the x-height of the interface's semibold face, with the semibold faces after it on its baseline. In a 1280 pt window, 9 tabs named "Poster draft N" fit whole instead of 8. Without CRAFT_FONTS_DIR, on the web, or with a checkout that lacks the row (a build warning), FONT_TAB is the semibold family and tabs look as before. The tab tests that count tabs measure in the semibold face. --- crates/text/build.rs | 71 +++++++++++++++++++----- crates/text/src/craft_fonts.rs | 3 + crates/text/src/lib.rs | 11 +++- crates/ui-egui/src/chrome/tabs.rs | 9 +-- crates/ui-egui/src/i18n/tests.rs | 1 + crates/ui-egui/src/tests/tab_overflow.rs | 41 +++++++++++++- crates/ui-egui/src/theme.rs | 53 +++++++++++++++++- crates/ui-egui/src/ui_fonts.rs | 2 +- docs/development.md | 6 ++ docs/ui-parity.md | 1 + 10 files changed, 171 insertions(+), 27 deletions(-) diff --git a/crates/text/build.rs b/crates/text/build.rs index 5402ddbe07..5979c6557c 100644 --- a/crates/text/build.rs +++ b/crates/text/build.rs @@ -12,6 +12,10 @@ //! `fonts//` beside the wasm instead of embedding (`cargo xtask web-fonts` copies them //! there; `apps/vectorcraft-web/src/fonts.rs` fetches them). A list line the manifest lacks is left //! out with a warning, never an error, and never costs the desktop its fonts. +//! +//! On native targets it writes `CONDENSED_UI_FONT`: the condensed face document tab titles draw in +//! (`CONDENSED_UI_FACE`), the one row it reads from the opt-in `fonts/latin-manifest.txt`. A +//! checkout without that row leaves it `None` with a warning, never an error. use std::fmt::Write as _; use std::path::{Path, PathBuf}; @@ -25,7 +29,7 @@ fn main() { println!("cargo::rerun-if-changed=web-fonts.txt"); println!("cargo::rerun-if-changed=build/web_fonts.rs"); let required = std::env::var_os("CRAFT_FONTS_REQUIRED").is_some(); - let (mut fonts, mut web) = (String::new(), String::new()); + let (mut fonts, mut web, mut condensed) = (String::new(), String::new(), String::from("None")); if let Some(dir) = std::env::var_os("CRAFT_FONTS_DIR").filter(|d| !d.is_empty()).map(PathBuf::from) { let dir = from_workspace(dir); match craft_fonts(&dir) { @@ -48,8 +52,16 @@ fn main() { Err(e) if required => println!("cargo::error=web-fonts.txt: {e}"), Err(e) => println!("cargo::warning=web build fetches no craft fonts: web-fonts.txt: {e}"), } + if std::env::var("CARGO_CFG_TARGET_ARCH").is_ok_and(|a| a != "wasm32") { + match condensed_ui_font(&dir) { + Ok(entry) => condensed = format!("Some({entry})"), + Err(e) => println!("cargo::warning=document tabs draw in the interface face: CRAFT_FONTS_DIR={}: {e}", dir.display()), + } + } } - let src = format!("pub static CRAFT_FONTS: &[CraftFont] = &[\n{fonts}];\npub static WEB_FONTS: &[WebFont] = &[\n{web}];\n"); + let src = format!( + "pub static CRAFT_FONTS: &[CraftFont] = &[\n{fonts}];\npub static WEB_FONTS: &[WebFont] = &[\n{web}];\npub static CONDENSED_UI_FONT: Option = {condensed};\n" + ); let out = PathBuf::from(std::env::var_os("OUT_DIR").unwrap_or_default()).join("craft_fonts.rs"); // Unchanged output keeps its mtime. Rewritten just before this crate compiles, it can read as // newer than that compile where cargo's recorded times lose their sub-second part (ecryptfs @@ -91,23 +103,52 @@ fn craft_fonts(dir: &Path) -> Result { if wasm && !(*family == WEB_FONT.0 && *style == WEB_FONT.1) { continue; } - let path = dir.join(file).canonicalize().map_err(|e| format!("{file}: {e}"))?; - // The manifest is supplier data: embed only regular files inside the checkout. - if !path.starts_with(&root) || !path.is_file() { - return Err(format!("{file}: not a file inside the font checkout")); - } - println!("cargo::rerun-if-changed={}", path.display()); - let scripts: Vec = scripts.split(',').map(|s| format!("{:?}", s.trim())).collect(); - let _ = writeln!( - out, - " CraftFont {{ family: {family:?}, style: {style:?}, scripts: &[{}], bytes: include_bytes!({:?}) }},", - scripts.join(", "), - path.display().to_string(), - ); + let _ = writeln!(out, " {},", craft_font(dir, &root, family, style, file, scripts)?); } Ok(out) } +/// The `CraftFont { .. }` initialiser of one manifest row of the checkout `dir` (canonical `root`). +fn craft_font(dir: &Path, root: &Path, family: &str, style: &str, file: &str, scripts: &str) -> Result { + let path = dir.join(file).canonicalize().map_err(|e| format!("{file}: {e}"))?; + // The manifest is supplier data: embed only regular files inside the checkout. + if !path.starts_with(root) || !path.is_file() { + return Err(format!("{file}: not a file inside the font checkout")); + } + println!("cargo::rerun-if-changed={}", path.display()); + let scripts: Vec = scripts.split(',').map(|s| format!("{:?}", s.trim())).collect(); + Ok(format!( + "CraftFont {{ family: {family:?}, style: {style:?}, scripts: &[{}], bytes: include_bytes!({:?}) }}", + scripts.join(", "), + path.display().to_string(), + )) +} + +/// The condensed craft-fonts face (family, style) document tab titles draw in, from the opt-in +/// Latin catalog. +const CONDENSED_UI_FACE: (&str, &str) = ("Noto Sans", "Condensed SemiBold"); + +/// The `CraftFont { .. }` initialiser of [`CONDENSED_UI_FACE`]'s row in `fonts/latin-manifest.txt`. +fn condensed_ui_font(dir: &Path) -> Result { + let manifest = dir.join("fonts/latin-manifest.txt"); + // A checkout without the catalog is watched through its folder, so the build runs again once + // the catalog appears. + let watched = if manifest.is_file() { manifest.clone() } else { dir.join("fonts") }; + println!("cargo::rerun-if-changed={}", watched.display()); + let text = std::fs::read_to_string(&manifest).map_err(|e| format!("{}: {e} (an older craft-fonts?)", manifest.display()))?; + let root = dir.canonicalize().map_err(|e| format!("{}: {e}", dir.display()))?; + let row = text + .lines() + .map(str::trim) + .filter(|l| !l.is_empty() && !l.starts_with('#')) + .map(|l| l.split(" | ").map(str::trim).collect::>()) + .find(|f| f.first() == Some(&CONDENSED_UI_FACE.0) && f.get(1) == Some(&CONDENSED_UI_FACE.1)); + let Some([family, style, file, scripts, ..]) = row.as_deref() else { + return Err(format!("{} {} not in {} (an older craft-fonts?)", CONDENSED_UI_FACE.0, CONDENSED_UI_FACE.1, manifest.display())); + }; + craft_font(dir, &root, family, style, file, scripts) +} + /// One `WebFont { .. }` initialiser per `web-fonts.txt` line, from its craft-fonts manifest row, and /// the listed faces the manifest lacks (an older craft-fonts checkout), which are left out. fn web_font_entries(dir: &Path) -> Result<(String, Vec), String> { diff --git a/crates/text/src/craft_fonts.rs b/crates/text/src/craft_fonts.rs index 24eef3de40..68ddc548b9 100644 --- a/crates/text/src/craft_fonts.rs +++ b/crates/text/src/craft_fonts.rs @@ -3,6 +3,9 @@ //! Built with `CRAFT_FONTS_DIR=`, [`CRAFT_FONTS`] holds every font in its //! manifest (Japanese UI and document fonts, Arabic fonts and Noto Sans Thai); built without it, //! it is empty and that text falls back to the installed system fonts. Release builds always set it. See `build.rs`. +//! [`CONDENSED_UI_FONT`] is the condensed face document tab titles draw in, from the checkout's +//! opt-in Latin catalog: `None` on wasm32, without `CRAFT_FONTS_DIR`, or with a checkout that +//! lacks it. /// A font from the optional craft-fonts build input (empty unless built with `CRAFT_FONTS_DIR`). pub struct CraftFont { diff --git a/crates/text/src/lib.rs b/crates/text/src/lib.rs index 7b70b9c5a2..2028639af4 100644 --- a/crates/text/src/lib.rs +++ b/crates/text/src/lib.rs @@ -37,7 +37,7 @@ pub mod thread; pub use bitmap::GlyphImage; pub use context_alternates::{ContextAlternate, ContextAlternates, alternate_changes, alternates_in_context, is_alternate_feature}; -pub use craft_fonts::{CRAFT_FONTS, CraftFont, WEB_FONTS, WebFont}; +pub use craft_fonts::{CONDENSED_UI_FONT, CRAFT_FONTS, CraftFont, WEB_FONTS, WebFont}; pub use features::{ EXTRA_FEATURES, LIGATURE_TRACKING_LIMITS, MAX_FEATURE_VALUE, MAX_STYLE_FEATURES, OtFeatures, explicit_ligatures, ligatures_suppressed_by, }; @@ -1059,6 +1059,15 @@ pub fn line_metrics(data: &[u8], index: u32) -> Option<(f32, f32, f32, f32)> { Some((f32::from(m.units_per_em.max(1)), m.ascent, m.descent, m.leading)) } +/// The x-height of the font at `index` of `data`, at its default axis settings, in ems. `None` if +/// the font can't be read or gives no x-height. +pub fn x_height(data: &[u8], index: u32) -> Option { + use skrifa::MetadataProvider; + let f = skrifa::FontRef::from_index(data, index).ok()?; + let m = f.metrics(skrifa::instance::Size::unscaled(), skrifa::instance::LocationRef::default()); + m.x_height.filter(|h| *h > 0.0).map(|h| h / f32::from(m.units_per_em.max(1))) +} + #[cfg(test)] mod tests; #[cfg(test)] diff --git a/crates/ui-egui/src/chrome/tabs.rs b/crates/ui-egui/src/chrome/tabs.rs index b92d1e5d04..1aff4fe1a9 100644 --- a/crates/ui-egui/src/chrome/tabs.rs +++ b/crates/ui-egui/src/chrome/tabs.rs @@ -56,7 +56,7 @@ pub(crate) fn window_tab(app: &VectorcraftApp, ui: &mut Ui, w: crate::doc_window ui.painter().rect_filled(strip, 0.0, t.tab_strip); ui.painter().line_segment([strip.left_bottom(), strip.right_bottom()], Stroke::new(1.0, t.border)); let title = document_window_title(app, w).unwrap_or_default(); - let galley = ui.painter().layout_no_wrap(title, theme::semibold(title_size), t.text_strong); + let galley = ui.painter().layout_no_wrap(title, theme::tab_font(title_size), t.text_strong); let r = egui::Rect::from_min_size(strip.min, vec2((galley.size().x + 28.0).min(strip.width()), strip.height() - 1.0)); ui.painter().rect_filled(r, 0.0, t.panel); ui.painter().line_segment([r.right_top(), r.right_bottom()], Stroke::new(1.5, t.border)); @@ -190,7 +190,8 @@ fn tab_close_box(ui: &Ui, t: &Tokens, xr: egui::Rect, w: f32, id: egui::Id) -> O /// (#746). The first tab that doesn't fit whole fills the room left before the » button with its /// title shortened, when that room holds some of the title (#8584). When the active tab is among /// the last ones and the tabs from it to the end leave room, the tab before them fills that room -/// instead. An active tab wider than the whole strip is shortened to it. +/// instead. An active tab wider than the whole strip is shortened to it. Titles draw in +/// [`theme::FONT_TAB`], a condensed face in builds with craft-fonts (#8583). /// Each view Window › New Window opened has a tab of its own. Windows floating have no tab /// ([`crate::doc_windows`]); while the current window is a floating one, the tab of the window the /// strip shows is the highlighted one. A tab dragged more than [`crate::doc_windows::TEAR_OFF`] @@ -224,7 +225,7 @@ pub fn doc_tabs(app: &mut VectorcraftApp, ui: &mut Ui) { let title = window_tab_title(app, w, d); let (text, color) = if Some(w) == shown { (title.clone(), t.text_strong) } else { (view_tab_name(d, crate::doc_windows::label(app, w)), t.text_dim) }; - let galley = ui.painter().layout_no_wrap(text.clone(), theme::semibold(title_size), color); + let galley = ui.painter().layout_no_wrap(text.clone(), theme::tab_font(title_size), color); (w, text, title, galley) }) .collect(); @@ -258,7 +259,7 @@ pub fn doc_tabs(app: &mut VectorcraftApp, ui: &mut Ui) { break; } let color = if Some(*win) == shown { t.text_strong } else { t.text_dim }; - let (galley, fits) = shortened_title(ui.ctx(), text, theme::semibold(title_size), color, left - TAB_PADDING); + let (galley, fits) = shortened_title(ui.ctx(), text, theme::tab_font(title_size), color, left - TAB_PADDING); (galley, left.max(0.0), true, fits) } else { (galley.clone(), *w, false, true) diff --git a/crates/ui-egui/src/i18n/tests.rs b/crates/ui-egui/src/i18n/tests.rs index 2ca2c76e03..7954785e30 100644 --- a/crates/ui-egui/src/i18n/tests.rs +++ b/crates/ui-egui/src/i18n/tests.rs @@ -1498,6 +1498,7 @@ fn bundled_fonts_cover_the_catalogs() { egui::FontFamily::Proportional, egui::FontFamily::Name(crate::theme::FONT_UI.into()), egui::FontFamily::Name(crate::theme::FONT_UI_SEMIBOLD.into()), + egui::FontFamily::Name(crate::theme::FONT_TAB.into()), egui::FontFamily::Name(crate::theme::FONT_MONO.into()), ]; for l in LANGUAGES.iter().filter(|l| !l.source.is_empty()) { diff --git a/crates/ui-egui/src/tests/tab_overflow.rs b/crates/ui-egui/src/tests/tab_overflow.rs index 59af211e17..c9f9edec0a 100644 --- a/crates/ui-egui/src/tests/tab_overflow.rs +++ b/crates/ui-egui/src/tests/tab_overflow.rs @@ -44,6 +44,12 @@ fn frame_sized(app: &mut VectorcraftApp, ctx: &egui::Context, size: egui::Vec2, texts } +/// The interface fonts with tab titles in the semibold face, as in a build without craft-fonts' +/// condensed face: the tab counts below are measured in it. +fn install_semibold_tab_fonts(ctx: &egui::Context) { + ctx.set_fonts(crate::theme::interface_fonts_with(None)); +} + fn click(at: Pos2, pressed: bool) -> Event { Event::PointerButton { pos: at, button: PointerButton::Primary, pressed, modifiers: Default::default() } } @@ -61,7 +67,7 @@ fn the_tab_that_does_not_fit_whole_fills_the_rest_of_the_strip() { app.session.set_active(0); app.sync_views(); let ctx = egui::Context::default(); - crate::theme::install_fonts(&ctx); + install_semibold_tab_fonts(&ctx); let texts = frame(&mut app, &ctx, 0.0, vec![]); let mut tabs: Vec<(String, egui::Rect)> = texts.into_iter().filter(|(t, _)| t.starts_with("Tab test")).collect(); tabs.sort_by(|a, b| a.1.left().total_cmp(&b.1.left())); @@ -100,7 +106,7 @@ fn inactive_tabs_show_the_name_alone_so_more_tabs_fit() { app.session.set_active(0); app.sync_views(); let ctx = egui::Context::default(); - crate::theme::install_fonts(&ctx); + install_semibold_tab_fonts(&ctx); let texts = frame(&mut app, &ctx, 0.0, vec![]); let mut tabs: Vec<(String, egui::Rect)> = texts.into_iter().filter(|(t, _)| t.starts_with("Tab test")).collect(); tabs.sort_by(|a, b| a.1.left().total_cmp(&b.1.left())); @@ -118,6 +124,35 @@ fn inactive_tabs_show_the_name_alone_so_more_tabs_fit() { assert!(texts.iter().any(|(t, _)| t == "Tab test 2 @ 100 % (RGB/Preview)"), "the tooltip shows the whole title: {texts:?}"); } +/// With craft-fonts' condensed face, tab titles draw in it at the semibold face's x-height, and +/// more tabs fit whole in the strip of a 1280 pt window than with the semibold face (#8583). +#[test] +fn tab_titles_in_the_condensed_face_fit_more_tabs() { + let Some(condensed) = vectorcraft_text::CONDENSED_UI_FONT.as_ref() else { + eprintln!("skipped: built without craft-fonts' condensed face (set CRAFT_FONTS_DIR to a craft-fonts checkout that has it)"); + return; + }; + let mut app = VectorcraftApp::new(Session::new(), Default::default()); + for i in 0..24 { + app.run("file.new", json!({"width": 100, "height": 100, "name": format!("Poster draft {i}")})).unwrap(); + } + app.session.set_active(0); + app.sync_views(); + let mut whole_tabs = |face: Option<&vectorcraft_text::CraftFont>| { + let ctx = egui::Context::default(); + ctx.set_fonts(crate::theme::interface_fonts_with(face)); + let texts = frame_sized(&mut app, &ctx, egui::vec2(1280.0, 700.0), 0.0, vec![]); + let whole = texts.iter().filter(|(t, _)| t.starts_with("Poster draft") && !t.ends_with('…')).count(); + // The height of an x, in the tab font and in semibold text. + let x = |font: egui::FontId| ctx.fonts_mut(|f| f.layout_no_wrap("x".into(), font, egui::Color32::WHITE)).rows[0].glyphs[0].uv_rect.size.y; + (whole, x(crate::theme::tab_font(40.0)), x(crate::theme::semibold(40.0))) + }; + let (semibold, _, _) = whole_tabs(None); + let (narrow, x_tab, x_semibold) = whole_tabs(Some(condensed)); + assert!(narrow > semibold, "more tabs fit whole in the condensed face: {narrow} against {semibold}"); + assert!((x_tab - x_semibold).abs() <= 1.0, "an x is {x_tab} pt tall in a tab title and {x_semibold} pt in semibold text"); +} + /// With the last document active, the tabs from it to the end leave room before the » button, and /// the tab before them fills that room with its title shortened instead of the strip ending short /// of the » button (#8584). @@ -132,7 +167,7 @@ fn with_the_last_document_active_the_tab_before_the_shown_ones_fills_the_room() app.session.set_active(7); app.sync_views(); let ctx = egui::Context::default(); - crate::theme::install_fonts(&ctx); + install_semibold_tab_fonts(&ctx); let texts = frame(&mut app, &ctx, 0.0, vec![]); let mut tabs: Vec<(String, egui::Rect)> = texts.into_iter().filter(|(t, _)| t.starts_with("Tab test")).collect(); tabs.sort_by(|a, b| a.1.left().total_cmp(&b.1.left())); diff --git a/crates/ui-egui/src/theme.rs b/crates/ui-egui/src/theme.rs index f539ddbe71..11e8af8e22 100644 --- a/crates/ui-egui/src/theme.rs +++ b/crates/ui-egui/src/theme.rs @@ -494,16 +494,29 @@ pub fn strong_selected_text(ui: &mut egui::Ui) { pub const FONT_UI: &str = "ui"; pub const FONT_UI_SEMIBOLD: &str = "ui-semibold"; pub const FONT_MONO: &str = "mono"; +/// The family document tab titles draw in. In a build with craft-fonts' condensed face +/// ([`vectorcraft_text::CONDENSED_UI_FONT`]), that face heads it, at the x-height of the +/// [`FONT_UI_SEMIBOLD`] face, followed by the faces of [`FONT_UI_SEMIBOLD`] on its baseline, so +/// more tabs fit in the strip (#8583). Without it the family is [`FONT_UI_SEMIBOLD`]'s. +pub const FONT_TAB: &str = "tab"; pub fn semibold(size: f32) -> FontId { FontId::new(size, FontFamily::Name(FONT_UI_SEMIBOLD.into())) } +/// A document tab's title font ([`FONT_TAB`]). +pub fn tab_font(size: f32) -> FontId { + FontId::new(size, FontFamily::Name(FONT_TAB.into())) +} +/// Whether `family` draws semibold text and takes the bold fallback faces. +pub(crate) fn is_semibold(family: &FontFamily) -> bool { + matches!(family, FontFamily::Name(name) if [FONT_UI_SEMIBOLD, FONT_TAB].contains(&&**name)) +} pub fn mono(size: f32) -> FontId { FontId::new(size, FontFamily::Name(FONT_MONO.into())) } /// Installs the interface's fonts and binds the families the panels and dialogs draw in -/// ([`FONT_UI`], [`FONT_UI_SEMIBOLD`], [`FONT_MONO`]). egui 0.37 only bundles its own faces when +/// ([`FONT_UI`], [`FONT_UI_SEMIBOLD`], [`FONT_TAB`], [`FONT_MONO`]). egui 0.37 only bundles its own faces when /// its `default_fonts` feature is on (this crate enables it); without any face a family lays out /// tofu, and the `egui_kittest` harness alone panics on a missing glyph. Every context that shows /// these families needs this once: [`crate::VectorcraftApp::ui`] calls it on its first pass, and @@ -520,6 +533,11 @@ pub fn install_fonts(ctx: &egui::Context) { /// whether egui applied them at once or deferred them to the next pass (it must not take input /// or draw with fallback metrics while they are pending). pub fn interface_fonts() -> FontDefinitions { + interface_fonts_with(vectorcraft_text::CONDENSED_UI_FONT.as_ref()) +} + +/// [`interface_fonts`] with `condensed` as the face that heads [`FONT_TAB`]. +pub(crate) fn interface_fonts_with(condensed: Option<&vectorcraft_text::CraftFont>) -> FontDefinitions { let mut fonts = FontDefinitions::default(); let (ui, semi, mono) = interface_faces(&mut fonts); let stack = |fonts: &FontDefinitions, family: FontFamily| fonts.families.get(&family).cloned().unwrap_or_default(); @@ -529,13 +547,42 @@ pub fn interface_fonts() -> FontDefinitions { let family = |faces: Vec<&str>, fallback: &[String]| -> Vec { faces.into_iter().map(str::to_owned).chain(fallback.iter().cloned()).collect() }; fonts.families.insert(FontFamily::Proportional, family(ui.clone(), &fallback)); - fonts.families.insert(FontFamily::Name(FONT_UI_SEMIBOLD.into()), family(semi, &fallback)); + let semi = family(semi, &fallback); + let tab = tab_faces(&mut fonts, &semi, condensed); + fonts.families.insert(FontFamily::Name(FONT_UI_SEMIBOLD.into()), semi); + fonts.families.insert(FontFamily::Name(FONT_TAB.into()), tab); fonts.families.insert(FontFamily::Name(FONT_UI.into()), family(ui, &fallback)); fonts.families.insert(FontFamily::Name(FONT_MONO.into()), family(mono, &mono_fallback)); add_craft_fonts(&mut fonts); fonts } +/// The faces of [`FONT_TAB`], added to `fonts`: `condensed`, scaled to the x-height of the first +/// face of `semi` (the [`FONT_UI_SEMIBOLD`] stack), then a copy of each face of `semi` on its +/// baseline. `semi` itself without `condensed`, or when either face's x-height can't be read. +fn tab_faces(fonts: &mut FontDefinitions, semi: &[String], condensed: Option<&vectorcraft_text::CraftFont>) -> Vec { + let x_height = |data: &FontData| vectorcraft_text::x_height((*data.font).as_ref(), data.index).map(|h| h * data.tweak.scale); + let reference = semi.first().and_then(|head| fonts.font_data.get(head)).and_then(|data| x_height(data)); + let Some((f, reference)) = condensed.zip(reference) else { return semi.to_vec() }; + let Some(own) = vectorcraft_text::x_height(f.bytes, 0) else { return semi.to_vec() }; + let name = craft_font_name(f); + let head = FontData::from_static(f.bytes).tweak(egui::epaint::text::FontTweak { scale: reference / own, ..Default::default() }); + // `baseline_copies` reads the head of each family it is given: here only this one. + let mut row = FontDefinitions::empty(); + row.font_data.insert(name.clone(), Arc::new(head.clone())); + row.families.insert(FontFamily::Name(FONT_TAB.into()), vec![name.clone()]); + let mut faces = vec![name.clone()]; + for face in semi { + let Some(data) = fonts.font_data.get(face).cloned() else { continue }; + for (copy, data, _) in crate::ui_fonts::baseline_copies(&row, &format!("{face} / {name}"), &data) { + fonts.font_data.insert(copy.clone(), Arc::new(data)); + faces.push(copy); + } + } + fonts.font_data.insert(name, Arc::new(head)); + faces +} + /// The interface's own faces, added to `fonts`: the names of the regular, semibold and monospace /// faces that head their families, in order. #[cfg(feature = "interface-fonts")] @@ -587,7 +634,7 @@ fn add_craft_fonts(fonts: &mut FontDefinitions) { } } for (family, stack) in fonts.families.iter_mut() { - let bold = *family == FontFamily::Name(FONT_UI_SEMIBOLD.into()); + let bold = is_semibold(family); let copy = |f: &vectorcraft_text::CraftFont| { let name = craft_font_name(f); copies.get(&(family.clone(), name.clone())).cloned().unwrap_or(name) diff --git a/crates/ui-egui/src/ui_fonts.rs b/crates/ui-egui/src/ui_fonts.rs index 73c1a30891..cb419067e1 100644 --- a/crates/ui-egui/src/ui_fonts.rs +++ b/crates/ui-egui/src/ui_fonts.rs @@ -454,7 +454,7 @@ mod tests { let bottom = |g: &egui::epaint::text::Glyph| g.pos.y + g.uv_rect.offset.y + g.uv_rect.size.y; let glyphs = |text: &str, font: FontId| ctx.fonts_mut(|f| f.layout_no_wrap(text.into(), font, egui::Color32::WHITE)).rows[0].glyphs.clone(); for family in families { - let semibold = family == FontFamily::Name(crate::theme::FONT_UI_SEMIBOLD.into()); + let semibold = crate::theme::is_semibold(&family); for &(regular, bold, c) in &probes { let face = if semibold { bold } else { regular }; for size in [13.0_f32, 24.0, 40.0] { diff --git a/docs/development.md b/docs/development.md index fb30fad2bb..66f925324e 100644 --- a/docs/development.md +++ b/docs/development.md @@ -174,6 +174,12 @@ CRAFT_FONTS_DIR="$PWD/../craft-fonts" cargo xtask ci # also runs the Japanese- Noto Sans Georgian for the Georgian interface), after the UI fonts and before the installed fonts `ui_fonts.rs` discovers for other scripts. On the web, Noto Sans Georgian is fetched at startup and reaches the UI through `ui_fonts.rs`. +- Document tab titles: on desktop builds, `crates/text/build.rs` also reads one row of the + checkout's opt-in `fonts/latin-manifest.txt`, Noto Sans Condensed SemiBold, as + `vectorcraft_text::CONDENSED_UI_FONT`. `theme::FONT_TAB` draws the titles in it at the + x-height of the interface's semibold face, so more tabs fit in the strip. Without + `CRAFT_FONTS_DIR`, on the web, or with a checkout that lacks the row (a build warning), tab + titles draw in the semibold face. - Tests that need Japanese or Georgian glyphs skip with a message when built without craft-fonts. The FreeBSD CI job and every release job (`release.yml`) check craft-fonts out at a pinned commit; release packages carry each embedded font's `OFL-.txt`. diff --git a/docs/ui-parity.md b/docs/ui-parity.md index e9fd857a9d..8b5a9f315a 100644 --- a/docs/ui-parity.md +++ b/docs/ui-parity.md @@ -443,6 +443,7 @@ next unit in the order a right-click on a ruler lists them, from Feet back to Po | A middle-click on a document tab or its × closes it as the × does; closing a modified document's last view asks to save first (VectorCraft addition, as in PhotoCraft) | done | #6506; `chrome::tests::a_middle_click_on_a_tab_closes_it_as_the_close_box_does`; not scored | | When the document tabs don't all fit, the first tab that doesn't fit whole fills the room before the » button with its title shortened and ending in "…", once that room leaves at least 40 pt for the title; with the active tab among the last ones, the tab before the ones shown fills the room left at the start instead; an active tab wider than the strip is shortened to it, and a tab narrower than 25 pt shows no ×; the tooltip of a shortened tab shows the whole title, wrapped to the window (VectorCraft's own rule) | done | #8584; `tests::tab_overflow`; not scored | | An inactive document tab shows the document's name, the view number and the unsaved-changes mark, without the zoom and the mode in parentheses (the color mode and view, or the opacity mask being edited); the active tab keeps its whole title, and an inactive tab's tooltip shows the whole title (VectorCraft's own rule) | done | #8582; `tests::tab_overflow::inactive_tabs_show_the_name_alone_so_more_tabs_fit`; not scored | +| Document tab titles draw in a condensed face (craft-fonts' Noto Sans Condensed SemiBold) at the x-height of the interface's semibold face, so more tabs fit; builds without that face draw them in the semibold face (VectorCraft's own rule) | done | #8583; `tests::tab_overflow::tab_titles_in_the_condensed_face_fit_more_tabs`; not scored | | Panels hidden by Tab or Shift+Tab show for a while when the pointer rests on the left or right edge of the window, over the canvas, and hide again when it moves away; Tab shows them for good | done | Part of #5661; `window.panels.peek` ([Workspace basics](https://web.archive.org/web/2014/https://helpx.adobe.com/illustrator/using/workspace-basics.html), "Hide or show all panels"); VectorCraft's own choices: the 6 pt band and the 0.3 s delays, only the docked panels on that side show (floating panels, Tools and the Control bar stay hidden), and nothing shows in Presentation Mode; `panel_docking::tests::resting_on_the_right_edge_shows_the_hidden_panels_over_the_canvas_until_the_pointer_leaves` and the tests after it | | Behaviour | Status | Notes | From 99c4a82b3088efaebb181d065f2c2b9d090e99b1 Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Sat, 21 Nov 2026 19:43:40 -0800 Subject: [PATCH 2/4] Tabs: fallback glyphs in tab titles sit on the condensed face's baseline The tab family's copies of the semibold faces took the copy made for egui's empty Proportional family, which has no baseline shift, instead of the one made for the tab family. They now take the tab family's copy. egui's own faces stay under their own names, as in the semibold family: egui skips some of their characters (the Ubuntu logo, two symbols in its emoji face) only under those names. ui_fonts::baseline_copies measured a fallback face without its own FontTweak scale, while egui draws the face and its y_offset_factor at that scale. The shift now uses it, so a scaled fallback (Inter SemiBold at 0.92) sits on the row's baseline. Faces added before this change are at scale 1 and keep their shift. Without the condensed face the tab family is no longer bound, and tabs draw in theme::tab_title_font: the tab family when the context's fonts bind it, otherwise the semibold family as it is. Fonts an embedder adds to the semibold family then reach tab titles too, and an embedder's own definitions that bind only the other families keep working. The condensed face and the lookup of its catalog row move to build/condensed_ui_face.rs, which the crate's tests include. With CRAFT_FONTS_REQUIRED=1, an unreadable catalog, a malformed row for the face or a row whose file can't be embedded is a build error; a checkout without the catalog or the row still gives a warning. A checkout whose catalog names the condensed face without its file is watched through the file's folder inside the checkout, so the build runs again once the file appears. docs/development.md lists FONT_TAB among the families an embedder adds fonts to. ASSETS.md and NOTICE name the face, and the docs/ui-parity.md row says official builds wait for the craft-fonts pin to move. Tests: with the monospace face standing in for the condensed face, and without craft-fonts, one test checks the tab family's x-height, the baseline of a character only the semibold face has, and that the characters egui skips draw in a tab title as in semibold text. Two tab-strip tests check that titles are laid out in the tab family with a stand-in face and in the semibold family without one. The condensed-face test checks the x-height at 200 pt, the shortened-title test also runs in the tab font, the install_fonts test checks the tab family, and ui_fonts' no-craft-fonts test allows the condensed face, which a checkout can give alone. A text-crate test finds the face's row as craft-fonts' catalog has it and rejects malformed rows for it. Two comments use American spelling. --- ASSETS.md | 2 +- NOTICE | 2 + crates/text/build.rs | 52 +++++++----- crates/text/build/condensed_ui_face.rs | 45 ++++++++++ crates/text/src/lib.rs | 3 + crates/ui-egui/src/chrome/tabs.rs | 7 +- crates/ui-egui/src/chrome/tests.rs | 22 ++--- crates/ui-egui/src/i18n/tests.rs | 3 + crates/ui-egui/src/tests/tab_overflow.rs | 79 +++++++++++++++++- crates/ui-egui/src/theme.rs | 101 +++++++++++++++++++---- crates/ui-egui/src/ui_fonts.rs | 26 +++--- crates/ui-egui/tests/install_fonts.rs | 14 +++- docs/development.md | 8 +- docs/ui-parity.md | 2 +- 14 files changed, 299 insertions(+), 67 deletions(-) create mode 100644 crates/text/build/condensed_ui_face.rs diff --git a/ASSETS.md b/ASSETS.md index 2812067e00..b949197d4c 100644 --- a/ASSETS.md +++ b/ASSETS.md @@ -24,7 +24,7 @@ Generated-in-code art is original and has no file to list. This covers the defau **Font files are never committed here.** Fonts shared by the Crafting Apps live in [storytold/craft-fonts](https://github.com/storytold/craft-fonts). The small Latin UI/document fonts below predate that rule and stay. -**Optional build input: craft-fonts.** Builds made with `CRAFT_FONTS_DIR=` (all official releases) embed the Japanese fonts listed in its [`ATTRIBUTION.md`](https://github.com/storytold/craft-fonts/blob/main/ATTRIBUTION.md): BIZ UDPGothic Regular and Bold, Shippori Mincho Regular and BIZ UDMincho Regular (web builds: BIZ UDPGothic Regular only), all under the SIL Open Font License 1.1. They are not files in this repository; release packages carry each one's `OFL-.txt`. Builds without `CRAFT_FONTS_DIR` embed none of them. +**Optional build input: craft-fonts.** Builds made with `CRAFT_FONTS_DIR=` (all official releases) embed the Japanese fonts listed in its [`ATTRIBUTION.md`](https://github.com/storytold/craft-fonts/blob/main/ATTRIBUTION.md): BIZ UDPGothic Regular and Bold, Shippori Mincho Regular and BIZ UDMincho Regular (web builds: BIZ UDPGothic Regular only), all under the SIL Open Font License 1.1. They are not files in this repository; release packages carry each one's `OFL-.txt`. Builds without `CRAFT_FONTS_DIR` embed none of them. Desktop builds with a checkout whose opt-in `fonts/latin-manifest.txt` lists Noto Sans Condensed SemiBold (The Noto Project Authors, SIL Open Font License 1.1, from the [notofonts/latin-greek-cyrillic NotoSans-v2.015 release](https://github.com/notofonts/latin-greek-cyrillic/releases/tag/NotoSans-v2.015)) also embed that face, for document tab titles. | Asset | Author | Source | Licence | Notes | |---|---|---|---|---| diff --git a/NOTICE b/NOTICE index 434cd3e524..99470afd8e 100644 --- a/NOTICE +++ b/NOTICE @@ -45,6 +45,8 @@ fonts listed in https://github.com/storytold/craft-fonts/blob/main/ATTRIBUTION.m Shippori Mincho, BIZ UDMincho, Noto Sans CJK SC and Noto Sans Arabic in the current manifest; web builds BIZ UDPGothic Regular only) under the SIL Open Font License 1.1. Their license texts ship with the release packages as OFL-.txt. +Desktop builds with a craft-fonts checkout whose fonts/latin-manifest.txt lists Noto Sans Condensed +SemiBold (Copyright 2022 The Noto Project Authors, SIL Open Font License 1.1) also embed that face. PDF import decodes CJK text with Adobe's CMap resources (https://github.com/adobe-type-tools/cmap-resources), compiled into the app through the hayro-cmap crate under the BSD 3-Clause License: diff --git a/crates/text/build.rs b/crates/text/build.rs index 5979c6557c..2658094965 100644 --- a/crates/text/build.rs +++ b/crates/text/build.rs @@ -14,12 +14,16 @@ //! out with a warning, never an error, and never costs the desktop its fonts. //! //! On native targets it writes `CONDENSED_UI_FONT`: the condensed face document tab titles draw in -//! (`CONDENSED_UI_FACE`), the one row it reads from the opt-in `fonts/latin-manifest.txt`. A -//! checkout without that row leaves it `None` with a warning, never an error. +//! (`build/condensed_ui_face.rs`), the one row it reads from the opt-in `fonts/latin-manifest.txt`. +//! A checkout without the catalog or that row leaves it `None` with a warning, never an error; an +//! unreadable catalog, a malformed row or a file that can't be embedded is an error with +//! `CRAFT_FONTS_REQUIRED=1`. use std::fmt::Write as _; use std::path::{Path, PathBuf}; +#[path = "build/condensed_ui_face.rs"] +mod condensed_ui_face; #[path = "build/web_fonts.rs"] mod web_fonts; @@ -28,6 +32,7 @@ fn main() { println!("cargo::rerun-if-env-changed=CRAFT_FONTS_REQUIRED"); println!("cargo::rerun-if-changed=web-fonts.txt"); println!("cargo::rerun-if-changed=build/web_fonts.rs"); + println!("cargo::rerun-if-changed=build/condensed_ui_face.rs"); let required = std::env::var_os("CRAFT_FONTS_REQUIRED").is_some(); let (mut fonts, mut web, mut condensed) = (String::new(), String::new(), String::from("None")); if let Some(dir) = std::env::var_os("CRAFT_FONTS_DIR").filter(|d| !d.is_empty()).map(PathBuf::from) { @@ -55,7 +60,8 @@ fn main() { if std::env::var("CARGO_CFG_TARGET_ARCH").is_ok_and(|a| a != "wasm32") { match condensed_ui_font(&dir) { Ok(entry) => condensed = format!("Some({entry})"), - Err(e) => println!("cargo::warning=document tabs draw in the interface face: CRAFT_FONTS_DIR={}: {e}", dir.display()), + Err((e, true)) if required => println!("cargo::error=CRAFT_FONTS_DIR={}: {e}", dir.display()), + Err((e, _)) => println!("cargo::warning=document tabs draw in the interface face: CRAFT_FONTS_DIR={}: {e}", dir.display()), } } } @@ -108,7 +114,7 @@ fn craft_fonts(dir: &Path) -> Result { Ok(out) } -/// The `CraftFont { .. }` initialiser of one manifest row of the checkout `dir` (canonical `root`). +/// The `CraftFont { .. }` initializer of one manifest row of the checkout `dir` (canonical `root`). fn craft_font(dir: &Path, root: &Path, family: &str, style: &str, file: &str, scripts: &str) -> Result { let path = dir.join(file).canonicalize().map_err(|e| format!("{file}: {e}"))?; // The manifest is supplier data: embed only regular files inside the checkout. @@ -124,29 +130,33 @@ fn craft_font(dir: &Path, root: &Path, family: &str, style: &str, file: &str, sc )) } -/// The condensed craft-fonts face (family, style) document tab titles draw in, from the opt-in -/// Latin catalog. -const CONDENSED_UI_FACE: (&str, &str) = ("Noto Sans", "Condensed SemiBold"); - -/// The `CraftFont { .. }` initialiser of [`CONDENSED_UI_FACE`]'s row in `fonts/latin-manifest.txt`. -fn condensed_ui_font(dir: &Path) -> Result { +/// The `CraftFont { .. }` initializer of the condensed face's row in `fonts/latin-manifest.txt` +/// (`build/condensed_ui_face.rs`). The error says whether the checkout is broken: one without the +/// catalog or the row is an older craft-fonts, and an unreadable catalog, a malformed row or a row +/// whose file can't be embedded is broken. +fn condensed_ui_font(dir: &Path) -> Result { + let (family, style) = condensed_ui_face::FACE; let manifest = dir.join("fonts/latin-manifest.txt"); // A checkout without the catalog is watched through its folder, so the build runs again once // the catalog appears. let watched = if manifest.is_file() { manifest.clone() } else { dir.join("fonts") }; println!("cargo::rerun-if-changed={}", watched.display()); - let text = std::fs::read_to_string(&manifest).map_err(|e| format!("{}: {e} (an older craft-fonts?)", manifest.display()))?; - let root = dir.canonicalize().map_err(|e| format!("{}: {e}", dir.display()))?; - let row = text - .lines() - .map(str::trim) - .filter(|l| !l.is_empty() && !l.starts_with('#')) - .map(|l| l.split(" | ").map(str::trim).collect::>()) - .find(|f| f.first() == Some(&CONDENSED_UI_FACE.0) && f.get(1) == Some(&CONDENSED_UI_FACE.1)); - let Some([family, style, file, scripts, ..]) = row.as_deref() else { - return Err(format!("{} {} not in {} (an older craft-fonts?)", CONDENSED_UI_FACE.0, CONDENSED_UI_FACE.1, manifest.display())); + let text = std::fs::read_to_string(&manifest).map_err(|e| { + let older = e.kind() == std::io::ErrorKind::NotFound; + (format!("{}: {e}{}", manifest.display(), if older { " (an older craft-fonts?)" } else { "" }), !older) + })?; + let row = condensed_ui_face::row(&text).map_err(|e| (format!("{}: {e}", manifest.display()), true))?; + let Some((file, scripts)) = row else { + return Err((format!("{family} {style} not in {} (an older craft-fonts?)", manifest.display()), false)); }; - craft_font(dir, &root, family, style, file, scripts) + let root = dir.canonicalize().map_err(|e| (format!("{}: {e}", dir.display()), true))?; + // A row whose file is missing is watched through the file's folder inside the checkout (or the + // checkout's `fonts/`), so the build runs again once the file appears. + craft_font(dir, &root, family, style, file, scripts).map_err(|e| { + let inside = dir.join(file).parent().and_then(|p| p.canonicalize().ok()).filter(|p| p.starts_with(&root) && p.is_dir()); + println!("cargo::rerun-if-changed={}", inside.unwrap_or_else(|| dir.join("fonts")).display()); + (e, true) + }) } /// One `WebFont { .. }` initialiser per `web-fonts.txt` line, from its craft-fonts manifest row, and diff --git a/crates/text/build/condensed_ui_face.rs b/crates/text/build/condensed_ui_face.rs new file mode 100644 index 0000000000..c70e2cb2a4 --- /dev/null +++ b/crates/text/build/condensed_ui_face.rs @@ -0,0 +1,45 @@ +//! The condensed craft-fonts face document tab titles draw in, and its row in the checkout's opt-in +//! Latin catalog (`fonts/latin-manifest.txt`). Shared by `build.rs` and the crate's tests +//! (`#[path]`-included by both, so it has no dependencies). + +/// The condensed face's family and style. +pub const FACE: (&str, &str) = ("Noto Sans", "Condensed SemiBold"); + +/// The file and scripts fields of [`FACE`]'s row in the catalog `text`: `None` when no row names +/// the face, and an error when the row that names it does not have the catalog's 8 fields or leaves +/// the file or scripts empty. +pub fn row(text: &str) -> Result, String> { + for line in text.lines().map(str::trim).filter(|l| !l.is_empty() && !l.starts_with('#')) { + let fields: Vec<&str> = line.split(" | ").map(str::trim).collect(); + match fields.as_slice() { + [family, style, file, scripts, _, _, _, _] if (*family, *style) == FACE && !file.is_empty() && !scripts.is_empty() => { + return Ok(Some((*file, *scripts))); + } + [family, style, ..] if (*family, *style) == FACE => return Err(format!("malformed manifest line: {line}")), + _ => {} + } + } + Ok(None) +} + +#[cfg(test)] +mod tests { + use super::*; + + /// The face's row as storytold/craft-fonts#72 adds it to the catalog is found, rows for other + /// faces are not taken for it, and a row naming it without its file or scripts, or with one of + /// them empty, is an error. + #[test] + fn the_catalog_row_names_the_face() { + let catalog = "# Latin presentation fonts for the Crafting Apps (opt-in).\n\ + Inter | SemiBold | fonts/inter/Inter-SemiBold.ttf | Latn | OFL-1.1 | fonts/inter/OFL.txt | 78a843fade9d4612a5567302fb595b56976eb5fcebf4fea5a5912d638bafcde3 | https://github.com/rsms/inter/releases/download/v4.1/Inter-4.1.zip#extras/ttf/Inter-SemiBold.ttf\n\ + Noto Sans | Condensed SemiBold | fonts/noto-sans-condensed/NotoSans-CondensedSemiBold.ttf | Latn | OFL-1.1 | fonts/noto-sans-condensed/OFL.txt | b41ecd0838ecd17b706432a01c0d63f8bf977d851cc2cf37242324233edb9294 | https://github.com/notofonts/latin-greek-cyrillic/releases/download/NotoSans-v2.015/NotoSans-v2.015.zip#NotoSans/unhinted/ttf/NotoSans-CondensedSemiBold.ttf\n"; + assert_eq!(row(catalog), Ok(Some(("fonts/noto-sans-condensed/NotoSans-CondensedSemiBold.ttf", "Latn")))); + let rest = "OFL-1.1 | fonts/a/OFL.txt | 00 | https://example.com/a.zip"; + assert_eq!(row(&format!("Noto Sans | SemiBold | fonts/a.ttf | Latn | {rest}\n")), Ok(None), "another style"); + assert_eq!(row(&format!("# Noto Sans | Condensed SemiBold | fonts/a.ttf | Latn | {rest}\n")), Ok(None), "a comment"); + assert_eq!(row("Inter | Bold\n"), Ok(None), "a short row for another face"); + assert!(row(&format!("Noto Sans | Condensed SemiBold | fonts/a.ttf | {rest}\n")).is_err(), "a row without its scripts"); + assert!(row(&format!("Noto Sans | Condensed SemiBold | fonts/a.ttf | | {rest}\n")).is_err(), "a row with empty scripts"); + } +} diff --git a/crates/text/src/lib.rs b/crates/text/src/lib.rs index 2028639af4..d1e82be440 100644 --- a/crates/text/src/lib.rs +++ b/crates/text/src/lib.rs @@ -1068,6 +1068,9 @@ pub fn x_height(data: &[u8], index: u32) -> Option { m.x_height.filter(|h| *h > 0.0).map(|h| h / f32::from(m.units_per_em.max(1))) } +#[cfg(test)] +#[path = "../build/condensed_ui_face.rs"] +mod condensed_ui_face_build; #[cfg(test)] mod tests; #[cfg(test)] diff --git a/crates/ui-egui/src/chrome/tabs.rs b/crates/ui-egui/src/chrome/tabs.rs index 1aff4fe1a9..782309a3f0 100644 --- a/crates/ui-egui/src/chrome/tabs.rs +++ b/crates/ui-egui/src/chrome/tabs.rs @@ -56,7 +56,7 @@ pub(crate) fn window_tab(app: &VectorcraftApp, ui: &mut Ui, w: crate::doc_window ui.painter().rect_filled(strip, 0.0, t.tab_strip); ui.painter().line_segment([strip.left_bottom(), strip.right_bottom()], Stroke::new(1.0, t.border)); let title = document_window_title(app, w).unwrap_or_default(); - let galley = ui.painter().layout_no_wrap(title, theme::tab_font(title_size), t.text_strong); + let galley = ui.painter().layout_no_wrap(title, theme::tab_title_font(ui, title_size), t.text_strong); let r = egui::Rect::from_min_size(strip.min, vec2((galley.size().x + 28.0).min(strip.width()), strip.height() - 1.0)); ui.painter().rect_filled(r, 0.0, t.panel); ui.painter().line_segment([r.right_top(), r.right_bottom()], Stroke::new(1.5, t.border)); @@ -213,6 +213,7 @@ pub fn doc_tabs(app: &mut VectorcraftApp, ui: &mut Ui) { ui.painter().line_segment([strip.left_bottom(), strip.right_bottom()], Stroke::new(1.0, t.border)); // On the Home screen no tab is the current one. let shown = crate::doc_windows::tab_window(app).filter(|_| app.ui.home.is_none()); + let title_font = theme::tab_title_font(ui, title_size); // The windows under the tabs, with the text each tab shows, its whole title and the text laid // out; `active` is the position of the highlighted one. An inactive tab shows the name alone, // without the zoom and the mode in parentheses (color mode and view, or the opacity mask being @@ -225,7 +226,7 @@ pub fn doc_tabs(app: &mut VectorcraftApp, ui: &mut Ui) { let title = window_tab_title(app, w, d); let (text, color) = if Some(w) == shown { (title.clone(), t.text_strong) } else { (view_tab_name(d, crate::doc_windows::label(app, w)), t.text_dim) }; - let galley = ui.painter().layout_no_wrap(text.clone(), theme::tab_font(title_size), color); + let galley = ui.painter().layout_no_wrap(text.clone(), title_font.clone(), color); (w, text, title, galley) }) .collect(); @@ -259,7 +260,7 @@ pub fn doc_tabs(app: &mut VectorcraftApp, ui: &mut Ui) { break; } let color = if Some(*win) == shown { t.text_strong } else { t.text_dim }; - let (galley, fits) = shortened_title(ui.ctx(), text, theme::tab_font(title_size), color, left - TAB_PADDING); + let (galley, fits) = shortened_title(ui.ctx(), text, title_font.clone(), color, left - TAB_PADDING); (galley, left.max(0.0), true, fits) } else { (galley.clone(), *w, false, true) diff --git a/crates/ui-egui/src/chrome/tests.rs b/crates/ui-egui/src/chrome/tests.rs index 3b889b1f09..b78968442e 100644 --- a/crates/ui-egui/src/chrome/tests.rs +++ b/crates/ui-egui/src/chrome/tests.rs @@ -29,27 +29,29 @@ fn the_tabs_after_the_leading_one_are_drawn_whole() { assert_eq!(super::tab_room(None, false, 120.0, 119.99), 119.99, "no leading tab"); } -/// A shortened title shows at every width that holds "…", fractional ones included (#8584). +/// A shortened title shows at every width that holds "…", fractional ones included (#8584), in the +/// semibold face and in the tab titles' face (the condensed one in a build with craft-fonts, #8583). #[test] fn a_shortened_title_fits_at_fractional_widths() { let ctx = egui::Context::default(); crate::theme::install_fonts(&ctx); - let font = crate::theme::semibold(13.0); let title = "Untitled-12 @ 66.67 % (RGB/Preview)"; let mut too_wide = vec![]; let mut output = ctx.run_ui(egui::RawInput::default(), |ui| { - let (ellipsis, _) = super::shortened_title(ui.ctx(), "…", font.clone(), egui::Color32::WHITE, 1000.0); - let mut width = ellipsis.size().x.ceil() + 1.0; - while width < 200.0 { - let (galley, fits) = super::shortened_title(ui.ctx(), title, font.clone(), egui::Color32::WHITE, width); - if !fits { - too_wide.push((width, galley.size().x)); + for font in [crate::theme::semibold(13.0), crate::theme::tab_title_font(ui, 13.0)] { + let (ellipsis, _) = super::shortened_title(ui.ctx(), "…", font.clone(), egui::Color32::WHITE, 1000.0); + let mut width = ellipsis.size().x.ceil() + 1.0; + while width < 200.0 { + let (galley, fits) = super::shortened_title(ui.ctx(), title, font.clone(), egui::Color32::WHITE, width); + if !fits { + too_wide.push((font.family.clone(), width, galley.size().x)); + } + width += 0.25; } - width += 0.25; } }); output.textures_delta.clear(); - assert!(too_wide.is_empty(), "shortened titles wider than their room (room, width): {too_wide:?}"); + assert!(too_wide.is_empty(), "shortened titles wider than their room (family, room, width): {too_wide:?}"); } /// Tabs 100 wide at 0, 100, 200…, for documents `docs` (a document listed twice has two views). diff --git a/crates/ui-egui/src/i18n/tests.rs b/crates/ui-egui/src/i18n/tests.rs index 7954785e30..6136913184 100644 --- a/crates/ui-egui/src/i18n/tests.rs +++ b/crates/ui-egui/src/i18n/tests.rs @@ -1501,6 +1501,9 @@ fn bundled_fonts_cover_the_catalogs() { egui::FontFamily::Name(crate::theme::FONT_TAB.into()), egui::FontFamily::Name(crate::theme::FONT_MONO.into()), ]; + // The tab family is bound only in builds with craft-fonts' condensed face. + let tab = egui::FontFamily::Name(crate::theme::FONT_TAB.into()); + let families: Vec = families.into_iter().filter(|f| *f != tab || fonts.definitions().families.contains_key(f)).collect(); for l in LANGUAGES.iter().filter(|l| !l.source.is_empty()) { let (entries, _) = parse_entries(l.source); let cjk_checked = japanese_ui_font && l.code == "ja"; diff --git a/crates/ui-egui/src/tests/tab_overflow.rs b/crates/ui-egui/src/tests/tab_overflow.rs index c9f9edec0a..7b389001d5 100644 --- a/crates/ui-egui/src/tests/tab_overflow.rs +++ b/crates/ui-egui/src/tests/tab_overflow.rs @@ -145,12 +145,87 @@ fn tab_titles_in_the_condensed_face_fit_more_tabs() { let whole = texts.iter().filter(|(t, _)| t.starts_with("Poster draft") && !t.ends_with('…')).count(); // The height of an x, in the tab font and in semibold text. let x = |font: egui::FontId| ctx.fonts_mut(|f| f.layout_no_wrap("x".into(), font, egui::Color32::WHITE)).rows[0].glyphs[0].uv_rect.size.y; - (whole, x(crate::theme::tab_font(40.0)), x(crate::theme::semibold(40.0))) + let tab = if face.is_some() { crate::theme::tab_font(200.0) } else { crate::theme::semibold(200.0) }; + (whole, x(tab), x(crate::theme::semibold(200.0))) }; let (semibold, _, _) = whole_tabs(None); let (narrow, x_tab, x_semibold) = whole_tabs(Some(condensed)); assert!(narrow > semibold, "more tabs fit whole in the condensed face: {narrow} against {semibold}"); - assert!((x_tab - x_semibold).abs() <= 1.0, "an x is {x_tab} pt tall in a tab title and {x_semibold} pt in semibold text"); + // Two points at 200 pt: a pixel of rounding on each glyph. The faces' own x-heights differ by + // about 8 pt at this size. + assert!((x_tab - x_semibold).abs() <= 2.0, "at 200 pt an x is {x_tab} pt tall in a tab title and {x_semibold} pt in semibold text"); +} + +/// The tab strip lays its titles out in the tab family's own face when it has one: the monospace +/// face stands in for craft-fonts' condensed face, which CI's craft-fonts checkout does not have +/// (#8583). +#[test] +fn tab_titles_draw_in_the_tab_familys_face() { + let stand_in = vectorcraft_text::CraftFont { + family: "Stand-in", + style: "Regular", + scripts: &["Latn"], + bytes: include_bytes!("../../../../assets/fonts/JetBrainsMono-Regular.ttf"), + }; + let mut app = VectorcraftApp::new(Session::new(), Default::default()); + app.run("file.new", json!({"width": 100, "height": 100, "name": "Tab test"})).unwrap(); + app.sync_views(); + let ctx = egui::Context::default(); + ctx.set_fonts(crate::theme::interface_fonts_with(Some(&stand_in))); + let titles = title_fonts(&mut app, &ctx); + assert_eq!(titles.len(), 1, "{titles:?}"); + for (title, font) in titles { + assert_eq!(font.family, egui::FontFamily::Name(crate::theme::FONT_TAB.into()), "{title}"); + } +} + +/// The fonts the tab strip lays its "Tab test" titles out in. +fn title_fonts(app: &mut VectorcraftApp, ctx: &egui::Context) -> Vec<(String, egui::FontId)> { + let mut out = ctx.run_ui(egui::RawInput { screen_rect: Some(egui::Rect::from_min_size(Pos2::ZERO, SIZE)), ..Default::default() }, |ui| { + egui::CentralPanel::default().show(ui, |ui| chrome::doc_tabs(app, ui)); + }); + out.textures_delta.clear(); + fn walk(s: &egui::Shape, v: &mut Vec<(String, egui::FontId)>) { + match s { + egui::Shape::Text(t) if t.galley.text().starts_with("Tab test") => { + v.extend(t.galley.job.sections.first().map(|s| (t.galley.text().to_owned(), s.format.font_id.clone()))); + } + egui::Shape::Vec(list) => list.iter().for_each(|s| walk(s, v)), + _ => {} + } + } + let mut fonts = vec![]; + for c in &out.shapes { + walk(&c.shape, &mut fonts); + } + fonts +} + +/// Without the condensed face the tab family is not bound, and tab titles draw in the semibold +/// family as it is, with a face added to it later (#8583). +#[test] +fn tab_titles_draw_in_semibold_where_the_tab_family_is_not_bound() { + let mut app = VectorcraftApp::new(Session::new(), Default::default()); + for i in 0..3 { + app.run("file.new", json!({"width": 100, "height": 100, "name": format!("Tab test {i}")})).unwrap(); + } + app.session.set_active(0); + app.sync_views(); + // A face put at the head of the semibold family after the interface's, as an embedder may. + let mut fonts = crate::theme::interface_fonts_with(None); + let added = "Added semibold".to_owned(); + fonts.font_data.insert( + added.clone(), + std::sync::Arc::new(egui::FontData::from_static(include_bytes!("../../../../assets/fonts/JetBrainsMono-Regular.ttf"))), + ); + fonts.families.entry(egui::FontFamily::Name(crate::theme::FONT_UI_SEMIBOLD.into())).or_default().insert(0, added); + let ctx = egui::Context::default(); + ctx.set_fonts(fonts); + let titles = title_fonts(&mut app, &ctx); + assert_eq!(titles.len(), 3, "{titles:?}"); + for (title, font) in titles { + assert_eq!(font.family, egui::FontFamily::Name(crate::theme::FONT_UI_SEMIBOLD.into()), "{title}"); + } } /// With the last document active, the tabs from it to the end leave room before the » button, and diff --git a/crates/ui-egui/src/theme.rs b/crates/ui-egui/src/theme.rs index 11e8af8e22..2743922495 100644 --- a/crates/ui-egui/src/theme.rs +++ b/crates/ui-egui/src/theme.rs @@ -497,16 +497,23 @@ pub const FONT_MONO: &str = "mono"; /// The family document tab titles draw in. In a build with craft-fonts' condensed face /// ([`vectorcraft_text::CONDENSED_UI_FONT`]), that face heads it, at the x-height of the /// [`FONT_UI_SEMIBOLD`] face, followed by the faces of [`FONT_UI_SEMIBOLD`] on its baseline, so -/// more tabs fit in the strip (#8583). Without it the family is [`FONT_UI_SEMIBOLD`]'s. +/// more tabs fit in the strip (#8583). Without it the family is not bound, and tab titles draw in +/// [`FONT_UI_SEMIBOLD`] ([`tab_title_font`]). pub const FONT_TAB: &str = "tab"; pub fn semibold(size: f32) -> FontId { FontId::new(size, FontFamily::Name(FONT_UI_SEMIBOLD.into())) } -/// A document tab's title font ([`FONT_TAB`]). -pub fn tab_font(size: f32) -> FontId { +/// A font in [`FONT_TAB`], which is bound only with the condensed face: see [`tab_title_font`]. +pub(crate) fn tab_font(size: f32) -> FontId { FontId::new(size, FontFamily::Name(FONT_TAB.into())) } +/// The font document tab titles draw in on `ui`: the [`FONT_TAB`] family when `ui`'s fonts bind +/// it (with the condensed face), otherwise [`semibold`]. +pub fn tab_title_font(ui: &egui::Ui, size: f32) -> FontId { + let font = tab_font(size); + if ui.ctx().fonts(|f| f.definitions().families.contains_key(&font.family)) { font } else { semibold(size) } +} /// Whether `family` draws semibold text and takes the bold fallback faces. pub(crate) fn is_semibold(family: &FontFamily) -> bool { matches!(family, FontFamily::Name(name) if [FONT_UI_SEMIBOLD, FONT_TAB].contains(&&**name)) @@ -516,7 +523,7 @@ pub fn mono(size: f32) -> FontId { } /// Installs the interface's fonts and binds the families the panels and dialogs draw in -/// ([`FONT_UI`], [`FONT_UI_SEMIBOLD`], [`FONT_TAB`], [`FONT_MONO`]). egui 0.37 only bundles its own faces when +/// ([`FONT_UI`], [`FONT_UI_SEMIBOLD`], [`FONT_MONO`], and [`FONT_TAB`] with the condensed face). egui 0.37 only bundles its own faces when /// its `default_fonts` feature is on (this crate enables it); without any face a family lays out /// tofu, and the `egui_kittest` harness alone panics on a missing glyph. Every context that shows /// these families needs this once: [`crate::VectorcraftApp::ui`] calls it on its first pass, and @@ -548,9 +555,10 @@ pub(crate) fn interface_fonts_with(condensed: Option<&vectorcraft_text::CraftFon |faces: Vec<&str>, fallback: &[String]| -> Vec { faces.into_iter().map(str::to_owned).chain(fallback.iter().cloned()).collect() }; fonts.families.insert(FontFamily::Proportional, family(ui.clone(), &fallback)); let semi = family(semi, &fallback); - let tab = tab_faces(&mut fonts, &semi, condensed); + if let Some(tab) = tab_faces(&mut fonts, &semi, condensed) { + fonts.families.insert(FontFamily::Name(FONT_TAB.into()), tab); + } fonts.families.insert(FontFamily::Name(FONT_UI_SEMIBOLD.into()), semi); - fonts.families.insert(FontFamily::Name(FONT_TAB.into()), tab); fonts.families.insert(FontFamily::Name(FONT_UI.into()), family(ui, &fallback)); fonts.families.insert(FontFamily::Name(FONT_MONO.into()), family(mono, &mono_fallback)); add_craft_fonts(&mut fonts); @@ -559,28 +567,38 @@ pub(crate) fn interface_fonts_with(condensed: Option<&vectorcraft_text::CraftFon /// The faces of [`FONT_TAB`], added to `fonts`: `condensed`, scaled to the x-height of the first /// face of `semi` (the [`FONT_UI_SEMIBOLD`] stack), then a copy of each face of `semi` on its -/// baseline. `semi` itself without `condensed`, or when either face's x-height can't be read. -fn tab_faces(fonts: &mut FontDefinitions, semi: &[String], condensed: Option<&vectorcraft_text::CraftFont>) -> Vec { +/// baseline. egui's own faces are listed under their own names, uncopied, as in the semibold +/// family: egui skips some of their characters (the Ubuntu logo, for one) only under those names. +/// `None` without `condensed`, or when either face's x-height can't be read. +fn tab_faces(fonts: &mut FontDefinitions, semi: &[String], condensed: Option<&vectorcraft_text::CraftFont>) -> Option> { let x_height = |data: &FontData| vectorcraft_text::x_height((*data.font).as_ref(), data.index).map(|h| h * data.tweak.scale); - let reference = semi.first().and_then(|head| fonts.font_data.get(head)).and_then(|data| x_height(data)); - let Some((f, reference)) = condensed.zip(reference) else { return semi.to_vec() }; - let Some(own) = vectorcraft_text::x_height(f.bytes, 0) else { return semi.to_vec() }; + let reference = semi.first().and_then(|head| fonts.font_data.get(head)).and_then(|data| x_height(data))?; + let f = condensed?; + let own = vectorcraft_text::x_height(f.bytes, 0)?; let name = craft_font_name(f); let head = FontData::from_static(f.bytes).tweak(egui::epaint::text::FontTweak { scale: reference / own, ..Default::default() }); - // `baseline_copies` reads the head of each family it is given: here only this one. + // `baseline_copies` reads the head of each family it is given. `row` also has egui's empty + // Proportional and Monospace families, whose copies are not this family's. + let tab = FontFamily::Name(FONT_TAB.into()); let mut row = FontDefinitions::empty(); row.font_data.insert(name.clone(), Arc::new(head.clone())); - row.families.insert(FontFamily::Name(FONT_TAB.into()), vec![name.clone()]); + row.families.insert(tab.clone(), vec![name.clone()]); let mut faces = vec![name.clone()]; for face in semi { + if FontDefinitions::builtin_font_names().contains(&face.as_str()) { + faces.push(face.clone()); + continue; + } let Some(data) = fonts.font_data.get(face).cloned() else { continue }; - for (copy, data, _) in crate::ui_fonts::baseline_copies(&row, &format!("{face} / {name}"), &data) { + for (copy, data, _) in + crate::ui_fonts::baseline_copies(&row, &format!("{face} / {name}"), &data).into_iter().filter(|(_, _, f)| f.contains(&tab)) + { fonts.font_data.insert(copy.clone(), Arc::new(data)); faces.push(copy); } } fonts.font_data.insert(name, Arc::new(head)); - faces + Some(faces) } /// The interface's own faces, added to `fonts`: the names of the regular, semibold and monospace @@ -831,4 +849,57 @@ mod tests { assert_eq!(ctx.global_style().interaction.tooltip_delay, f32::INFINITY); assert_eq!(ctx.global_style().visuals.window_fill, Tokens::for_brightness(Brightness::Light).panel); } + + /// The face heading the tab family draws an x as tall as the semibold face does, and a + /// character it lacks falls back to the semibold face (drawn at its own 0.92 scale) on its + /// baseline (#8583). The monospace face stands in for craft-fonts' condensed face, which CI's + /// craft-fonts checkout does not have. + #[cfg(feature = "interface-fonts")] + #[test] + fn the_tab_family_keeps_the_semibold_x_height_and_baseline() { + let stand_in = vectorcraft_text::CraftFont { + family: "Stand-in", + style: "Regular", + scripts: &["Latn"], + bytes: include_bytes!("../../../assets/fonts/JetBrainsMono-Regular.ttf"), + }; + let mut defs = interface_fonts_with(Some(&stand_in)); + assert_eq!(defs.families[&FontFamily::Name(FONT_TAB.into())][0], craft_font_name(&stand_in)); + // The semibold face alone, as it draws a character in its own family. + defs.families.insert(FontFamily::Name("probe".into()), vec!["Inter-SemiBold".to_owned()]); + let ctx = egui::Context::default(); + ctx.set_pixels_per_point(2.0); + ctx.set_fonts(defs); + let mut output = ctx.run_ui(egui::RawInput::default(), |_| {}); + output.textures_delta.clear(); + let glyphs = |text: &str, font: FontId| ctx.fonts_mut(|f| f.layout_no_wrap(text.into(), font, Color32::WHITE)).rows[0].glyphs.clone(); + let x = |font: FontId| glyphs("x", font)[0].uv_rect.size.y; + let (x_tab, x_semibold) = (x(tab_font(200.0)), x(semibold(200.0))); + // Two points at 200 pt: a pixel of rounding on each glyph. The faces' own x-heights differ + // by about 10 pt at this size. + assert!((x_tab - x_semibold).abs() <= 2.0, "at 200 pt an x is {x_tab} pt tall in a tab title and {x_semibold} pt in semibold text"); + // egui skips some characters of its own faces (the Ubuntu logo, two symbols in its emoji + // face); a tab title draws them as semibold text does. + for c in ['\u{534D}', '\u{5350}', '\u{E0FF}', '\u{EFFD}', '\u{F0FF}', '\u{F200}'] { + let has = |font: FontId| ctx.fonts_mut(|f| f.has_glyph(&font, c)); + let name = format!("U+{:04X}", u32::from(c)); + assert_eq!(has(tab_font(13.0)), has(semibold(13.0)), "{name} has a glyph in a tab title as in semibold text"); + if has(semibold(13.0)) { + // Both families take it from the same fallback face, which draws it at one size. + let size = |font: FontId| glyphs(&c.to_string(), font).first().map(|g| g.uv_rect.size); + assert_eq!(size(tab_font(13.0)), size(semibold(13.0)), "{name} draws at the same size in a tab title as in semibold text"); + } + } + let bottom = |g: &egui::epaint::text::Glyph| g.pos.y + g.uv_rect.offset.y + g.uv_rect.size.y; + // U+0182, which Inter has and the monospace face lacks. + let c = 'Ƃ'; + for size in [13.0_f32, 24.0, 40.0, 100.0] { + let own = glyphs(&c.to_string(), FontId::new(size, FontFamily::Name("probe".into()))); + let row = glyphs(&format!("H{c}"), tab_font(size)); + assert_eq!((own.len(), row.len()), (1, 2), "{c} lays out as one glyph"); + // Half a point: one device pixel at 2 pixels per point, for each glyph's rounding. + let drift = (bottom(&row[1]) - row[0].pos.y) - (bottom(&own[0]) - own[0].pos.y); + assert!(drift.abs() <= 0.5, "at {size} pt, {c} ends {drift:.2} pt below the tab family's baseline"); + } + } } diff --git a/crates/ui-egui/src/ui_fonts.rs b/crates/ui-egui/src/ui_fonts.rs index cb419067e1..8e2d07ff5c 100644 --- a/crates/ui-egui/src/ui_fonts.rs +++ b/crates/ui-egui/src/ui_fonts.rs @@ -239,7 +239,7 @@ pub(crate) fn baseline_copies(defs: &FontDefinitions, name: &str, data: &FontDat let mut copies: Vec<(String, FontData, Vec)> = vec![]; for (family, stack) in &defs.families { let head = stack.first().and_then(|head| Some((head.as_str(), defs.font_data.get(head)?))); - let shift = head.and_then(|(_, data)| row_metrics(data)).map_or(0.0, |row| baseline_shift(row, (*data.font).as_ref(), data.index)); + let shift = head.and_then(|(_, data)| row_metrics(data)).map_or(0.0, |row| baseline_shift(row, data)); if let Some((_, _, families)) = copies.iter_mut().find(|(_, copy, _)| copy.tweak.y_offset_factor.to_bits() == shift.to_bits()) { families.push(family.clone()); continue; @@ -266,15 +266,19 @@ fn em_metrics(data: &[u8], index: u32) -> Option<(f32, f32)> { Some((ascent / upem, (ascent - descent + gap) / upem)) } -/// The `y_offset_factor` that puts the glyphs of the face at `index` of `face` on the baseline of -/// the row's first face, whose ascent, row height and offset in ems are `row`. egui draws a -/// fallback glyph's baseline at its face's ascent plus half the difference between the two row -/// heights, so a face with a taller ascent or descent sits off the baseline by the shift computed -/// here, in ems of the font size, limited to half an em either way. -fn baseline_shift(row: (f32, f32, f32), face: &[u8], index: u32) -> f32 { +/// The `y_offset_factor` that puts the glyphs of the fallback face `data` on the baseline of the +/// row's first face, whose ascent, row height and offset in ems are `row`. egui draws a fallback +/// glyph's baseline at its face's ascent plus half the difference between the two row heights, so a +/// face with a taller ascent or descent sits off the baseline by the shift computed here, in ems of +/// the font size, limited to half an em either way. egui scales the face's metrics and its +/// `y_offset_factor` by the face's own `FontTweak` scale, so both are measured at that scale. +fn baseline_shift(row: (f32, f32, f32), data: &FontData) -> f32 { let (row_ascent, row_height, row_offset) = row; - let shift = em_metrics(face, index).map_or(0.0, |(ascent, height)| row_ascent + row_offset - (ascent + 0.5 * (row_height - height))); - if shift.is_finite() { shift.clamp(-0.5, 0.5) } else { 0.0 } + let scale = data.tweak.scale; + let shift = em_metrics((*data.font).as_ref(), data.index) + .map_or(0.0, |(ascent, height)| row_ascent + row_offset - scale * ascent - 0.5 * (row_height - scale * height)); + let factor = if shift.is_finite() { shift.clamp(-0.5, 0.5) / scale } else { 0.0 }; + if factor.is_finite() { factor } else { 0.0 } } /// Call `f` with the text of `shape` and the shapes it holds. @@ -375,8 +379,10 @@ mod tests { fonts.finish(&ctx); frame(&ctx, &mut fonts, "日本語の文字 Layer 1"); if vectorcraft_text::CRAFT_FONTS.is_empty() { + // The condensed tab face is read from its own catalog, so a checkout can give it alone. + let condensed = vectorcraft_text::CONDENSED_UI_FONT.as_ref().map(crate::theme::craft_font_name); let names: Vec = ctx.fonts(|f| f.definitions().font_data.keys().cloned().collect()); - assert!(names.iter().all(|n| !n.starts_with("craft-fonts")), "{names:?}"); + assert!(names.iter().all(|n| !n.starts_with("craft-fonts") || Some(n) == condensed.as_ref()), "{names:?}"); } assert!(has_glyph(&ctx, 'L')); } diff --git a/crates/ui-egui/tests/install_fonts.rs b/crates/ui-egui/tests/install_fonts.rs index d7ebcaab27..56d49bc3bc 100644 --- a/crates/ui-egui/tests/install_fonts.rs +++ b/crates/ui-egui/tests/install_fonts.rs @@ -33,7 +33,8 @@ fn frame(ctx: &egui::Context, draw: impl FnMut(&mut egui::Ui)) { fn every_family_the_panels_draw_in_is_bound() { let ctx = context(); frame(&ctx, |ui| { - for font in [theme::semibold(12.0), theme::mono(12.0), FontId::new(12.0, FontFamily::Name(theme::FONT_UI.into()))] { + let tab = theme::tab_title_font(ui, 12.0); + for font in [theme::semibold(12.0), tab, theme::mono(12.0), FontId::new(12.0, FontFamily::Name(theme::FONT_UI.into()))] { ui.label(egui::RichText::new("Gaussian Blur").font(font)); } }); @@ -45,6 +46,17 @@ fn every_family_the_panels_draw_in_is_bound() { let installed: Vec<&str> = INTERFACE_FACES.into_iter().filter(|face| definitions.font_data.contains_key(*face)).collect(); let family = |family: FontFamily| definitions.families[&family].clone(); let named = |name: &str| family(FontFamily::Name(name.into())); + // The tab family is bound, headed by craft-fonts' condensed face and followed by the semibold + // faces, when the build has that face and both faces give an x-height to match. + let x_height = |name: &String| definitions.font_data.get(name).and_then(|d| vectorcraft_text::x_height((*d.font).as_ref(), d.index)); + let semibold_head = named(theme::FONT_UI_SEMIBOLD).first().and_then(x_height); + match vectorcraft_text::CONDENSED_UI_FONT.as_ref().filter(|f| vectorcraft_text::x_height(f.bytes, 0).is_some() && semibold_head.is_some()) { + None => assert!(!definitions.families.contains_key(&FontFamily::Name(theme::FONT_TAB.into()))), + Some(f) => { + assert_eq!(named(theme::FONT_TAB)[0], format!("craft-fonts {} {}", f.family, f.style)); + assert!(named(theme::FONT_TAB).len() > named(theme::FONT_UI_SEMIBOLD).len(), "the semibold faces follow the condensed one"); + } + } if cfg!(feature = "interface-fonts") { assert_eq!(installed, INTERFACE_FACES); assert_eq!(named(theme::FONT_UI)[0], "Inter"); diff --git a/docs/development.md b/docs/development.md index 66f925324e..950b996ed9 100644 --- a/docs/development.md +++ b/docs/development.md @@ -178,8 +178,9 @@ CRAFT_FONTS_DIR="$PWD/../craft-fonts" cargo xtask ci # also runs the Japanese- checkout's opt-in `fonts/latin-manifest.txt`, Noto Sans Condensed SemiBold, as `vectorcraft_text::CONDENSED_UI_FONT`. `theme::FONT_TAB` draws the titles in it at the x-height of the interface's semibold face, so more tabs fit in the strip. Without - `CRAFT_FONTS_DIR`, on the web, or with a checkout that lacks the row (a build warning), tab - titles draw in the semibold face. + `CRAFT_FONTS_DIR`, on the web, or with a checkout that lacks the row (a build warning), + `theme::FONT_TAB` is not bound and tab titles draw in the semibold family + (`theme::tab_title_font`). - Tests that need Japanese or Georgian glyphs skip with a message when built without craft-fonts. The FreeBSD CI job and every release job (`release.yml`) check craft-fonts out at a pinned commit; release packages carry each embedded font's `OFL-.txt`. @@ -205,7 +206,8 @@ font that has them to each of the families below (`ctx.add_font` with an `Insert family). The panels and dialogs draw in their own egui families (`theme::FONT_UI`, `FONT_UI_SEMIBOLD`, -`FONT_MONO`), and egui panics drawing text in a family no font is bound to. `VectorcraftApp::logic` +`FONT_MONO`, and `FONT_TAB` for document tab titles in builds with the condensed face), and egui +panics drawing text in a family no font is bound to. `VectorcraftApp::logic` binds them on its first frame; an embedder that draws the panels or dialogs without it calls `theme::install_fonts` once on its context, with or without `interface-fonts`. It replaces the context's font definitions, so the embedder's own fonts are added after it. diff --git a/docs/ui-parity.md b/docs/ui-parity.md index 8b5a9f315a..b6fa3393c1 100644 --- a/docs/ui-parity.md +++ b/docs/ui-parity.md @@ -443,7 +443,7 @@ next unit in the order a right-click on a ruler lists them, from Feet back to Po | A middle-click on a document tab or its × closes it as the × does; closing a modified document's last view asks to save first (VectorCraft addition, as in PhotoCraft) | done | #6506; `chrome::tests::a_middle_click_on_a_tab_closes_it_as_the_close_box_does`; not scored | | When the document tabs don't all fit, the first tab that doesn't fit whole fills the room before the » button with its title shortened and ending in "…", once that room leaves at least 40 pt for the title; with the active tab among the last ones, the tab before the ones shown fills the room left at the start instead; an active tab wider than the strip is shortened to it, and a tab narrower than 25 pt shows no ×; the tooltip of a shortened tab shows the whole title, wrapped to the window (VectorCraft's own rule) | done | #8584; `tests::tab_overflow`; not scored | | An inactive document tab shows the document's name, the view number and the unsaved-changes mark, without the zoom and the mode in parentheses (the color mode and view, or the opacity mask being edited); the active tab keeps its whole title, and an inactive tab's tooltip shows the whole title (VectorCraft's own rule) | done | #8582; `tests::tab_overflow::inactive_tabs_show_the_name_alone_so_more_tabs_fit`; not scored | -| Document tab titles draw in a condensed face (craft-fonts' Noto Sans Condensed SemiBold) at the x-height of the interface's semibold face, so more tabs fit; builds without that face draw them in the semibold face (VectorCraft's own rule) | done | #8583; `tests::tab_overflow::tab_titles_in_the_condensed_face_fit_more_tabs`; not scored | +| Document tab titles draw in a condensed face (craft-fonts' Noto Sans Condensed SemiBold) at the x-height of the interface's semibold face, so more tabs fit; builds without that face draw them in the semibold face (VectorCraft's own rule) | done; release builds pending | #8583; `tests::tab_overflow::tab_titles_in_the_condensed_face_fit_more_tabs`, `theme::tests::the_tab_family_keeps_the_semibold_x_height_and_baseline`; the release and FreeBSD workflows pin a craft-fonts commit without the face, so official builds draw tab titles in the semibold face until that pin moves past storytold/craft-fonts#72; not scored | | Panels hidden by Tab or Shift+Tab show for a while when the pointer rests on the left or right edge of the window, over the canvas, and hide again when it moves away; Tab shows them for good | done | Part of #5661; `window.panels.peek` ([Workspace basics](https://web.archive.org/web/2014/https://helpx.adobe.com/illustrator/using/workspace-basics.html), "Hide or show all panels"); VectorCraft's own choices: the 6 pt band and the 0.3 s delays, only the docked panels on that side show (floating panels, Tools and the Control bar stay hidden), and nothing shows in Presentation Mode; `panel_docking::tests::resting_on_the_right_edge_shows_the_hidden_panels_over_the_canvas_until_the_pointer_leaves` and the tests after it | | Behaviour | Status | Notes | From 43315db6b433b95b12802725f81b66a452fd25e4 Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Wed, 25 Nov 2026 09:49:22 -0800 Subject: [PATCH 3/4] Tabs: document tab titles draw in the condensed face through craft-ui's tab-title role Desktop builds call `Embed::tab_face()`, which embeds the Noto Sans Condensed SemiBold row of the checkout's `fonts/latin-manifest.txt` with the `tab` role. craft-ui draws semibold document tab titles in it, scaled to the semibold face's x-height. The document font list leaves that face out. Web builds and builds without the face draw tab titles in the semibold face. The craft-libs crates point at storytold/craft-libs#3545's head until it merges. --- Cargo.lock | 170 +++++++++++++++++--------------- Cargo.toml | 68 ++++++------- apps/vectorcraft-web/Cargo.toml | 2 +- crates/text/build.rs | 9 +- crates/text/src/craft_fonts.rs | 13 ++- docs/development.md | 5 + docs/ui-parity.md | 1 + 7 files changed, 150 insertions(+), 118 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 5c9393ef10..13a3db8a71 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1134,7 +1134,7 @@ dependencies = [ [[package]] name = "craft" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "craft-automation", "craft-behavior", @@ -1175,7 +1175,7 @@ dependencies = [ [[package]] name = "craft-affinity" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "crc32fast", "flate2", @@ -1186,7 +1186,7 @@ dependencies = [ [[package]] name = "craft-appkit" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "block2 0.6.2", "objc2-app-kit 0.3.2", @@ -1196,7 +1196,7 @@ dependencies = [ [[package]] name = "craft-atomic" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "rustix 1.1.6", ] @@ -1204,7 +1204,7 @@ dependencies = [ [[package]] name = "craft-automation" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "base64 0.23.1", "craft-behavior", @@ -1229,7 +1229,7 @@ dependencies = [ [[package]] name = "craft-behavior" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "accesskit", "bitflags 2.13.2", @@ -1247,7 +1247,7 @@ dependencies = [ [[package]] name = "craft-browse" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "craft-behavior", "craft-docpath", @@ -1265,7 +1265,7 @@ dependencies = [ [[package]] name = "craft-cdr" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "crc32fast", "flate2", @@ -1274,7 +1274,7 @@ dependencies = [ [[package]] name = "craft-cloud-ui" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "egui", ] @@ -1282,7 +1282,7 @@ dependencies = [ [[package]] name = "craft-cms" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "md-5", "rayon", @@ -1291,12 +1291,12 @@ dependencies = [ [[package]] name = "craft-codepage" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" [[package]] name = "craft-color-ui" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "craft-behavior", "craft-cms", @@ -1316,7 +1316,7 @@ dependencies = [ [[package]] name = "craft-control" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "getrandom 0.3.4", "serde", @@ -1326,7 +1326,7 @@ dependencies = [ [[package]] name = "craft-dds" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "rayon", ] @@ -1334,7 +1334,7 @@ dependencies = [ [[package]] name = "craft-dialogs" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "block2 0.6.2", "craft-atomic", @@ -1359,7 +1359,7 @@ dependencies = [ [[package]] name = "craft-docpath" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "serde", ] @@ -1367,7 +1367,7 @@ dependencies = [ [[package]] name = "craft-draw" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "craft-behavior", "craft-color-ui", @@ -1386,7 +1386,7 @@ dependencies = [ [[package]] name = "craft-dxf" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "craft-codepage", "encoding_rs", @@ -1398,12 +1398,12 @@ dependencies = [ [[package]] name = "craft-eps" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" [[package]] name = "craft-font-catalog" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "fontique", "harfrust 0.13.3", @@ -1418,7 +1418,7 @@ dependencies = [ [[package]] name = "craft-font-manager" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "craft-behavior", "craft-font-catalog", @@ -1434,14 +1434,24 @@ dependencies = [ "skrifa 0.47.0", ] +[[package]] +name = "craft-font-os-windows" +version = "0.1.0" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +dependencies = [ + "windows-registry", + "windows-sys 0.61.2", +] + [[package]] name = "craft-font-store" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "cap-primitives", "craft-atomic", "craft-font-catalog", + "craft-font-os-windows", "flate2", "log", "ruzstd", @@ -1459,12 +1469,12 @@ dependencies = [ [[package]] name = "craft-fonts-build" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" [[package]] name = "craft-gif" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "gif", ] @@ -1472,7 +1482,7 @@ dependencies = [ [[package]] name = "craft-gzip" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "flate2", ] @@ -1480,7 +1490,7 @@ dependencies = [ [[package]] name = "craft-host" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "bitflags 2.13.2", "craft-i18n", @@ -1493,7 +1503,7 @@ dependencies = [ [[package]] name = "craft-i18n" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "chrono", "fixed_decimal", @@ -1521,7 +1531,7 @@ dependencies = [ [[package]] name = "craft-image-codecs" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "craft-dds", "craft-jpeg", @@ -1548,7 +1558,7 @@ dependencies = [ [[package]] name = "craft-imaging" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "craft-behavior", "craft-color-ui", @@ -1566,7 +1576,7 @@ dependencies = [ [[package]] name = "craft-jpeg" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "thiserror 2.0.21", ] @@ -1574,7 +1584,7 @@ dependencies = [ [[package]] name = "craft-jxl" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "brotli-decompressor 5.0.3", "jixel", @@ -1585,7 +1595,7 @@ dependencies = [ [[package]] name = "craft-keymap" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "craft-host", "craft-i18n", @@ -1600,7 +1610,7 @@ dependencies = [ [[package]] name = "craft-layers" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "craft-behavior", "craft-i18n", @@ -1614,7 +1624,7 @@ dependencies = [ [[package]] name = "craft-menu" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "craft-behavior", "craft-host", @@ -1632,7 +1642,7 @@ dependencies = [ [[package]] name = "craft-metadata" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "brotli-decompressor 6.3.2", "chrono", @@ -1644,7 +1654,7 @@ dependencies = [ [[package]] name = "craft-metafile" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "encoding_rs", "image", @@ -1655,7 +1665,7 @@ dependencies = [ [[package]] name = "craft-mime" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "chrono", "craft-codepage", @@ -1665,7 +1675,7 @@ dependencies = [ [[package]] name = "craft-pages" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "craft-behavior", "craft-keymap", @@ -1681,7 +1691,7 @@ dependencies = [ [[package]] name = "craft-pdf" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "hayro-interpret", "hayro-syntax", @@ -1693,7 +1703,7 @@ dependencies = [ [[package]] name = "craft-platform" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "async-channel", "async-io", @@ -1724,7 +1734,7 @@ dependencies = [ [[package]] name = "craft-plotter" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "kurbo 0.13.1", "thiserror 2.0.21", @@ -1733,7 +1743,7 @@ dependencies = [ [[package]] name = "craft-print" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "craft-behavior", "craft-host", @@ -1757,7 +1767,7 @@ dependencies = [ [[package]] name = "craft-proof" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "log", "miniz_oxide 0.9.1", @@ -1768,7 +1778,7 @@ dependencies = [ [[package]] name = "craft-ps" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "craft-eps", "flate2", @@ -1782,7 +1792,7 @@ dependencies = [ [[package]] name = "craft-psd" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "encoding_rs", "flate2", @@ -1793,7 +1803,7 @@ dependencies = [ [[package]] name = "craft-quit" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "dispatch2", "egui", @@ -1806,7 +1816,7 @@ dependencies = [ [[package]] name = "craft-review" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "base64 0.23.1", "craft-behavior", @@ -1825,7 +1835,7 @@ dependencies = [ [[package]] name = "craft-settings" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "craft-atomic", "craft-host", @@ -1842,7 +1852,7 @@ dependencies = [ [[package]] name = "craft-stream-codecs" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "fax", "hayro-ccitt", @@ -1853,7 +1863,7 @@ dependencies = [ [[package]] name = "craft-svg" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "craft-image-codecs", "craft-xml", @@ -1874,7 +1884,7 @@ dependencies = [ [[package]] name = "craft-table" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "craft-behavior", "craft-keymap", @@ -1886,7 +1896,7 @@ dependencies = [ [[package]] name = "craft-text" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "craft-behavior", "craft-font-manager", @@ -1911,7 +1921,7 @@ dependencies = [ [[package]] name = "craft-theme" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "bitflags 2.13.2", "craft-tracked", @@ -1926,7 +1936,7 @@ dependencies = [ [[package]] name = "craft-theme-store" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "craft-atomic", "craft-behavior", @@ -1941,7 +1951,7 @@ dependencies = [ [[package]] name = "craft-tiff" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "serde", "thiserror 2.0.21", @@ -1951,7 +1961,7 @@ dependencies = [ [[package]] name = "craft-time" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "serde", "thiserror 2.0.21", @@ -1960,7 +1970,7 @@ dependencies = [ [[package]] name = "craft-timeline" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "craft-behavior", "craft-keymap", @@ -1975,12 +1985,12 @@ dependencies = [ [[package]] name = "craft-tracked" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" [[package]] name = "craft-ui" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "craft-cloud-ui", "craft-ui-canvas", @@ -1994,7 +2004,7 @@ dependencies = [ [[package]] name = "craft-ui-canvas" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "craft-behavior", "craft-i18n", @@ -2010,7 +2020,7 @@ dependencies = [ [[package]] name = "craft-ui-contract" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "accesskit", "craft-behavior", @@ -2048,7 +2058,7 @@ dependencies = [ [[package]] name = "craft-ui-macros" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "proc-macro-crate", "proc-macro2", @@ -2059,7 +2069,7 @@ dependencies = [ [[package]] name = "craft-ui-panels" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "craft-behavior", "craft-host", @@ -2077,7 +2087,7 @@ dependencies = [ [[package]] name = "craft-ui-patterns" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "craft-behavior", "craft-host", @@ -2098,7 +2108,7 @@ dependencies = [ [[package]] name = "craft-ui-shell" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "craft-behavior", "craft-host", @@ -2119,7 +2129,7 @@ dependencies = [ [[package]] name = "craft-ui-widgets" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "craft-behavior", "craft-host", @@ -2138,7 +2148,7 @@ dependencies = [ [[package]] name = "craft-update" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "chrono", "craft-host", @@ -2167,7 +2177,7 @@ dependencies = [ [[package]] name = "craft-vectorcraft-format" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "flate2", "serde", @@ -2178,7 +2188,7 @@ dependencies = [ [[package]] name = "craft-wayland" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "raw-window-handle", "wayland-backend", @@ -2188,7 +2198,7 @@ dependencies = [ [[package]] name = "craft-web-api" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "js-sys", "serde_json", @@ -2199,7 +2209,7 @@ dependencies = [ [[package]] name = "craft-win32" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "winsafe", ] @@ -2207,7 +2217,7 @@ dependencies = [ [[package]] name = "craft-window" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "craft-appkit", "craft-atomic", @@ -2239,7 +2249,7 @@ dependencies = [ [[package]] name = "craft-xml" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "quick-xml 0.41.0", "serde", @@ -3507,7 +3517,7 @@ checksum = "9f4d0e94ddd48749f06bbe4e5389fb9799a0c45bcaf00495042076ef05e3241a" [[package]] name = "hayro-cmap" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "brotli", "hayro-postscript", @@ -3516,7 +3526,7 @@ dependencies = [ [[package]] name = "hayro-interpret" version = "0.7.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "bitflags 2.13.2", "hayro-cmap", @@ -3534,7 +3544,7 @@ dependencies = [ [[package]] name = "hayro-jbig2" version = "0.3.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "fearless_simd", "hayro-ccitt", @@ -3552,12 +3562,12 @@ dependencies = [ [[package]] name = "hayro-postscript" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" [[package]] name = "hayro-syntax" version = "0.7.2" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "flate2", "hayro-ccitt", @@ -4488,7 +4498,7 @@ dependencies = [ [[package]] name = "krilla" version = "0.8.2" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "base64 0.22.1", "bumpalo", @@ -4645,7 +4655,7 @@ checksum = "d4a5ff6bcca6c4867b1c4fd4ef63e4db7436ef363e0ad7531d1558856bae64f4" [[package]] name = "linesweeper" version = "0.5.0" -source = "git+https://github.com/storytold/craft-libs?rev=6fcf61c816c399508a60c7029a59e2c7b6139e0b#6fcf61c816c399508a60c7029a59e2c7b6139e0b" +source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "arrayvec", "kurbo 0.13.1", diff --git a/Cargo.toml b/Cargo.toml index e7eb351554..89df409f43 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,44 +11,44 @@ rust-version = "1.95" repository = "https://github.com/storytold/vectorcraft" [workspace.dependencies] -craft-cms = { git = "https://github.com/storytold/craft-libs", rev = "6fcf61c816c399508a60c7029a59e2c7b6139e0b" } -craft-pdf = { git = "https://github.com/storytold/craft-libs", rev = "6fcf61c816c399508a60c7029a59e2c7b6139e0b", default-features = false, features = ["interpret", "write"] } -craft-docpath = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "6fcf61c816c399508a60c7029a59e2c7b6139e0b" } -craft-proof = { git = "https://github.com/storytold/craft-libs", rev = "6fcf61c816c399508a60c7029a59e2c7b6139e0b" } +craft-cms = { git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } +craft-pdf = { git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf", default-features = false, features = ["interpret", "write"] } +craft-docpath = { version = "0.1.0", git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } +craft-proof = { git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } # The `.vectorcraft` envelope: its members, version, embedded images and the data after the JSON. -craft-vectorcraft-format = { git = "https://github.com/storytold/craft-libs", rev = "6fcf61c816c399508a60c7029a59e2c7b6139e0b" } -craft-gzip = { git = "https://github.com/storytold/craft-libs", rev = "6fcf61c816c399508a60c7029a59e2c7b6139e0b" } +craft-vectorcraft-format = { git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } +craft-gzip = { git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } # Native Affinity documents (craft-libs#914). -craft-affinity = { git = "https://github.com/storytold/craft-libs", rev = "6fcf61c816c399508a60c7029a59e2c7b6139e0b" } +craft-affinity = { git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } # Bounded CDR (v1-v27) and CMX (32-bit) reader (craft-libs#778). -craft-cdr = { git = "https://github.com/storytold/craft-libs", rev = "6fcf61c816c399508a60c7029a59e2c7b6139e0b" } +craft-cdr = { git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } # SVG parsing, limits, SVGZ and writer (craft-libs#778). -craft-svg = { git = "https://github.com/storytold/craft-libs", rev = "6fcf61c816c399508a60c7029a59e2c7b6139e0b", features = ["tree"] } -craft-mime = { git = "https://github.com/storytold/craft-libs", rev = "6fcf61c816c399508a60c7029a59e2c7b6139e0b" } +craft-svg = { git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf", features = ["tree"] } +craft-mime = { git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } # EPS container, previews, ASCII85 and DSC comments (craft-libs#778). -craft-eps = { git = "https://github.com/storytold/craft-libs", rev = "6fcf61c816c399508a60c7029a59e2c7b6139e0b" } +craft-eps = { git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } # DXF tags, reader and writer (craft-libs#778, #926, #927). -craft-plotter = { git = "https://github.com/storytold/craft-libs", rev = "6fcf61c816c399508a60c7029a59e2c7b6139e0b" } -craft-dxf = { git = "https://github.com/storytold/craft-libs", rev = "6fcf61c816c399508a60c7029a59e2c7b6139e0b" } +craft-plotter = { git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } +craft-dxf = { git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } # WMF, EMF and EMF+ reader (craft-libs#778). -craft-metafile = { git = "https://github.com/storytold/craft-libs", rev = "6fcf61c816c399508a60c7029a59e2c7b6139e0b" } -craft-xml = { git = "https://github.com/storytold/craft-libs", rev = "6fcf61c816c399508a60c7029a59e2c7b6139e0b" } -craft-image-codecs = { git = "https://github.com/storytold/craft-libs", rev = "6fcf61c816c399508a60c7029a59e2c7b6139e0b" } -craft-gif = { git = "https://github.com/storytold/craft-libs", rev = "6fcf61c816c399508a60c7029a59e2c7b6139e0b" } -craft-tiff = { git = "https://github.com/storytold/craft-libs", rev = "6fcf61c816c399508a60c7029a59e2c7b6139e0b" } -craft-ps = { git = "https://github.com/storytold/craft-libs", rev = "6fcf61c816c399508a60c7029a59e2c7b6139e0b", default-features = false, features = ["read", "write"] } -craft-psd = { git = "https://github.com/storytold/craft-libs", rev = "6fcf61c816c399508a60c7029a59e2c7b6139e0b" } -craft-stream-codecs = { git = "https://github.com/storytold/craft-libs", rev = "6fcf61c816c399508a60c7029a59e2c7b6139e0b" } -craft-jxl = { git = "https://github.com/storytold/craft-libs", rev = "6fcf61c816c399508a60c7029a59e2c7b6139e0b" } -craft-codepage = { git = "https://github.com/storytold/craft-libs", rev = "6fcf61c816c399508a60c7029a59e2c7b6139e0b" } +craft-metafile = { git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } +craft-xml = { git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } +craft-image-codecs = { git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } +craft-gif = { git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } +craft-tiff = { git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } +craft-ps = { git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf", default-features = false, features = ["read", "write"] } +craft-psd = { git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } +craft-stream-codecs = { git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } +craft-jxl = { git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } +craft-codepage = { git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } # The framework facade (`craft::ui`, `craft::settings`, `craft::platform`, ...). No default features: each crate names # the members it imports. -craft = { git = "https://github.com/storytold/craft-libs", rev = "6fcf61c816c399508a60c7029a59e2c7b6139e0b" } +craft = { git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } # Below the egui layer, so not through the facade: the colour harmony rules and their settings (craft-color-ui # without its `ui` feature), the colour type they work in, and the craft-fonts tables the text crate's build writes. -craft-color-ui = { git = "https://github.com/storytold/craft-libs", rev = "6fcf61c816c399508a60c7029a59e2c7b6139e0b" } -craft-theme = { git = "https://github.com/storytold/craft-libs", rev = "6fcf61c816c399508a60c7029a59e2c7b6139e0b" } -craft-fonts-build = { git = "https://github.com/storytold/craft-libs", rev = "6fcf61c816c399508a60c7029a59e2c7b6139e0b" } +craft-color-ui = { git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } +craft-theme = { git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } +craft-fonts-build = { git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } # internal vectorcraft-geom = { path = "crates/geom" } vectorcraft-color = { path = "crates/color" } @@ -191,13 +191,13 @@ lto = "thin" codegen-units = 1 [patch.crates-io] -hayro-syntax = { git = "https://github.com/storytold/craft-libs", rev = "6fcf61c816c399508a60c7029a59e2c7b6139e0b" } -hayro-interpret = { git = "https://github.com/storytold/craft-libs", rev = "6fcf61c816c399508a60c7029a59e2c7b6139e0b" } -hayro-jbig2 = { git = "https://github.com/storytold/craft-libs", rev = "6fcf61c816c399508a60c7029a59e2c7b6139e0b" } -hayro-cmap = { git = "https://github.com/storytold/craft-libs", rev = "6fcf61c816c399508a60c7029a59e2c7b6139e0b" } -hayro-postscript = { git = "https://github.com/storytold/craft-libs", rev = "6fcf61c816c399508a60c7029a59e2c7b6139e0b" } -krilla = { git = "https://github.com/storytold/craft-libs", rev = "6fcf61c816c399508a60c7029a59e2c7b6139e0b" } -linesweeper = { git = "https://github.com/storytold/craft-libs", rev = "6fcf61c816c399508a60c7029a59e2c7b6139e0b" } +hayro-syntax = { git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } +hayro-interpret = { git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } +hayro-jbig2 = { git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } +hayro-cmap = { git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } +hayro-postscript = { git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } +krilla = { git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } +linesweeper = { git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } ecolor = { git = "https://github.com/storytold/egui.git", rev = "b15ffe9bfc2c8e6748533b32b708e10abaf2afec" } emath = { git = "https://github.com/storytold/egui.git", rev = "b15ffe9bfc2c8e6748533b32b708e10abaf2afec" } epaint = { git = "https://github.com/storytold/egui.git", rev = "b15ffe9bfc2c8e6748533b32b708e10abaf2afec" } diff --git a/apps/vectorcraft-web/Cargo.toml b/apps/vectorcraft-web/Cargo.toml index 8cca976717..a7d16e9924 100644 --- a/apps/vectorcraft-web/Cargo.toml +++ b/apps/vectorcraft-web/Cargo.toml @@ -27,7 +27,7 @@ log = { workspace = true } # `wgpu` pulls egui-wgpu's defaults: WebGPU plus the WebGL2 fallback. eframe = { workspace = true, features = ["default_fonts", "wgpu", "accesskit"] } # The page command API (storytold/craft-libs#413): the request plumbing behind window.vectorcraft. -craft-web-api = { git = "https://github.com/storytold/craft-libs", rev = "6fcf61c816c399508a60c7029a59e2c7b6139e0b", version = "0.1.0" } +craft-web-api = { git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf", version = "0.1.0" } wasm-bindgen = "0.2" serde_json = { workspace = true } diff --git a/crates/text/build.rs b/crates/text/build.rs index 28669285e3..7863efe464 100644 --- a/crates/text/build.rs +++ b/crates/text/build.rs @@ -1,7 +1,9 @@ //! The optional craft-fonts build input (https://github.com/storytold/craft-fonts, //! `docs/integration.md`): with `CRAFT_FONTS_DIR=` set, every font in its //! `fonts/manifest.txt` is embedded as `CRAFT_FONTS` (the framework's `craft_fonts_build::Embed`); -//! unset, `CRAFT_FONTS` is empty and the app uses its own and the installed fonts. +//! unset, `CRAFT_FONTS` is empty and the app uses its own and the installed fonts. Desktop builds +//! also embed the Noto Sans Condensed SemiBold row of the checkout's `fonts/latin-manifest.txt` +//! (`Embed::tab_face`), which document tab titles draw in; a checkout without it gives a warning. //! `CRAFT_FONTS_REQUIRED=1` turns a bad checkout into a build error (release builds). Nothing is //! fetched: the build reads only the local checkout. //! @@ -40,7 +42,10 @@ fn main() { None => embed, } }; - if let Err(e) = fonts().filter(move |f| !wasm || (f.family == WEB_FONT.0 && f.style == WEB_FONT.1)).write("craft_fonts.rs") { + // Desktop builds also embed the checkout's condensed face for document tab titles. + let embedded = fonts().filter(move |f| !wasm || (f.family == WEB_FONT.0 && f.style == WEB_FONT.1)); + let embedded = if wasm { embedded } else { embedded.tab_face() }; + if let Err(e) = embedded.write("craft_fonts.rs") { println!("cargo::error={e}"); } let mut web = String::new(); diff --git a/crates/text/src/craft_fonts.rs b/crates/text/src/craft_fonts.rs index 7e64490b3f..28b2dc2662 100644 --- a/crates/text/src/craft_fonts.rs +++ b/crates/text/src/craft_fonts.rs @@ -72,6 +72,7 @@ fn japanese_document_fonts_from(fonts: &[EmbeddedFace]) -> Vec<&EmbeddedFace> { /// first: the fallback for Arabic text; the other families are picked by name), then the Thai ones /// (Noto Sans Thai: the fallback for Thai text where no Thai font is installed, and on the web), /// then the Georgian ones (Noto Sans Georgian, the same for Georgian). Remaining faces follow in manifest order, so every explicitly supplied family can be selected. +/// The tab-title face (role `tab`), which only document tab titles draw in, is left out. /// Empty when built without craft-fonts. pub fn document_fonts() -> Vec<&'static EmbeddedFace> { document_fonts_from(CRAFT_FONTS) @@ -79,7 +80,9 @@ pub fn document_fonts() -> Vec<&'static EmbeddedFace> { fn document_fonts_from(fonts: &[EmbeddedFace]) -> Vec<&EmbeddedFace> { let mut v = japanese_document_fonts_from(fonts); - let rest = |f: &&EmbeddedFace, earlier: &[&str]| !f.has_script("Jpan") && !earlier.iter().any(|s| f.has_script(s)); + let rest = |f: &&EmbeddedFace, earlier: &[&str]| { + f.role != Some(craft_fonts_build::TAB_ROLE) && !f.has_script("Jpan") && !earlier.iter().any(|s| f.has_script(s)) + }; v.extend(fonts.iter().filter(|f| f.has_script("Arab") && rest(f, &[]))); v.extend(fonts.iter().filter(|f| f.has_script("Thai") && rest(f, &["Arab"]))); v.extend(fonts.iter().filter(|f| f.has_script("Geor") && rest(f, &["Arab", "Thai"]))); @@ -131,6 +134,14 @@ mod tests { assert!(document_fonts_from(&[]).is_empty()); } + #[test] + fn document_fonts_leave_out_the_tab_title_face() { + let latin = EmbeddedFace { family: "Latin", style: "Regular", scripts: &["Latn"], index: 0, bytes: &[], role: None }; + let tab = EmbeddedFace { family: "Noto Sans", style: "Condensed SemiBold", role: Some(craft_fonts_build::TAB_ROLE), ..latin }; + let listed: Vec<_> = document_fonts_from(&[latin, tab]).into_iter().map(|f| f.family).collect(); + assert_eq!(listed, ["Latin"]); + } + #[test] fn web_fonts_follow_the_list() { if CRAFT_FONTS.is_empty() { diff --git a/docs/development.md b/docs/development.md index 404dc10f33..5a1b6efd95 100644 --- a/docs/development.md +++ b/docs/development.md @@ -178,6 +178,11 @@ CRAFT_FONTS_DIR="$PWD/../craft-fonts" cargo xtask ci # also runs the Japanese- `startup` and `demand` faces of `crates/text/web-fonts.txt` are served under `fonts/ui/` instead: the stack fetches the UI language's at once and the others the first time text needs them. +- Document tab titles: desktop builds also embed the Noto Sans Condensed SemiBold row of the + checkout's opt-in `fonts/latin-manifest.txt` (`Embed::tab_face` in `crates/text/build.rs`). + The interface font stack draws document tab titles in it, scaled to the x-height of the + semibold face; the document font list leaves it out. Without `CRAFT_FONTS_DIR`, on the web, or + with a checkout that lacks the row (a build warning), tab titles draw in the semibold face. - Tests that need Japanese or Georgian glyphs skip with a message when built without craft-fonts. The FreeBSD CI job and every release job (`release.yml`) check craft-fonts out at a pinned commit; release packages carry each embedded font's `OFL-.txt`. diff --git a/docs/ui-parity.md b/docs/ui-parity.md index c74a8a8d7b..60dff719af 100644 --- a/docs/ui-parity.md +++ b/docs/ui-parity.md @@ -443,6 +443,7 @@ next unit in the order a right-click on a ruler lists them, from Feet back to Po | A middle-click on a document tab or its × closes it as the × does; closing a modified document's last view asks to save first (VectorCraft addition, as in PhotoCraft) | done | #6506; `chrome::tests::a_middle_click_on_a_tab_closes_it_as_the_close_box_does`; not scored | | When the document tabs don't all fit, the first tab that doesn't fit whole fills the room before the » button with its title shortened and ending in "…", once that room leaves at least 40 pt for the title; with the active tab among the last ones, the tab before the ones shown fills the room left at the start instead; an active tab wider than the strip is shortened to it, and a tab narrower than 25 pt shows no ×; the tooltip of a shortened tab shows the whole title, wrapped to the window (VectorCraft's own rule) | done | #8584; `tests::tab_overflow`; not scored | | An inactive document tab shows the document's name, the view number and the unsaved-changes mark, without the zoom and the mode in parentheses (the color mode and view, or the opacity mask being edited); the active tab keeps its whole title, and an inactive tab's tooltip shows the whole title (VectorCraft's own rule) | done | #8582; `tests::tab_overflow::inactive_tabs_show_the_name_alone_so_more_tabs_fit`; not scored | +| Document tab titles draw in a condensed face (craft-fonts' Noto Sans Condensed SemiBold) at the x-height of the interface's semibold face, so more tabs fit; builds without that face draw them in the semibold face (VectorCraft's own rule) | done; release builds pending | #8583; craft-ui's `TypeRole::TabTitle` and `craft_fonts_build::Embed::tab_face`; `craft_fonts::tests::document_fonts_leave_out_the_tab_title_face`; the release and FreeBSD workflows pin a craft-fonts commit without the face, so official builds draw tab titles in the semibold face until that pin moves past storytold/craft-fonts#72; not scored | | Panels hidden by Tab or Shift+Tab show for a while when the pointer rests on the left or right edge of the window, over the canvas, and hide again when it moves away; Tab shows them for good | done | Part of #5661; `window.panels.peek` ([Workspace basics](https://web.archive.org/web/2014/https://helpx.adobe.com/illustrator/using/workspace-basics.html), "Hide or show all panels"); VectorCraft's own choices: the 6 pt band and the 0.3 s delays, only the docked panels on that side show (floating panels, Tools and the Control bar stay hidden), and nothing shows in Presentation Mode; `panel_docking::tests::resting_on_the_right_edge_shows_the_hidden_panels_over_the_canvas_until_the_pointer_leaves` and the tests after it | | Behaviour | Status | Notes | From 9b8d1d00c16f2261b14670da0ae4ff7031c7386f Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Fri, 27 Nov 2026 16:36:40 -0800 Subject: [PATCH 4/4] Deps: craft-libs comes from storytold/craft-libs at 423b0375 storytold/craft-libs#3545 has reached craft-libs main, so every craft-libs pin points at storytold/craft-libs again at the same revision, 423b0375, which is on main. `cargo xtask pdf-deps` expects that revision. --- Cargo.lock | 162 ++++++++++++++++---------------- Cargo.toml | 68 +++++++------- apps/vectorcraft-web/Cargo.toml | 2 +- xtask/src/pdf_deps.rs | 2 +- 4 files changed, 117 insertions(+), 117 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b4bd8a72a5..06031f56c7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1217,7 +1217,7 @@ dependencies = [ [[package]] name = "craft" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "craft-automation", "craft-behavior", @@ -1258,7 +1258,7 @@ dependencies = [ [[package]] name = "craft-affinity" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "crc32fast", "flate2", @@ -1269,7 +1269,7 @@ dependencies = [ [[package]] name = "craft-appkit" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "block2 0.6.2", "objc2-app-kit 0.3.2", @@ -1279,7 +1279,7 @@ dependencies = [ [[package]] name = "craft-atomic" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "rustix 1.1.6", ] @@ -1287,7 +1287,7 @@ dependencies = [ [[package]] name = "craft-automation" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "base64 0.23.1", "craft-behavior", @@ -1312,7 +1312,7 @@ dependencies = [ [[package]] name = "craft-behavior" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "accesskit", "bitflags 2.13.2", @@ -1330,7 +1330,7 @@ dependencies = [ [[package]] name = "craft-browse" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "craft-behavior", "craft-docpath", @@ -1348,7 +1348,7 @@ dependencies = [ [[package]] name = "craft-cdr" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "crc32fast", "flate2", @@ -1357,7 +1357,7 @@ dependencies = [ [[package]] name = "craft-cloud-ui" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "egui", ] @@ -1365,7 +1365,7 @@ dependencies = [ [[package]] name = "craft-cms" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "md-5", "rayon", @@ -1374,12 +1374,12 @@ dependencies = [ [[package]] name = "craft-codepage" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" [[package]] name = "craft-color-ui" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "craft-behavior", "craft-cms", @@ -1399,7 +1399,7 @@ dependencies = [ [[package]] name = "craft-control" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "getrandom 0.3.4", "serde", @@ -1409,7 +1409,7 @@ dependencies = [ [[package]] name = "craft-dds" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "rayon", ] @@ -1417,7 +1417,7 @@ dependencies = [ [[package]] name = "craft-dialogs" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "block2 0.6.2", "craft-atomic", @@ -1442,7 +1442,7 @@ dependencies = [ [[package]] name = "craft-docpath" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "serde", ] @@ -1450,7 +1450,7 @@ dependencies = [ [[package]] name = "craft-draw" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "craft-behavior", "craft-color-ui", @@ -1469,7 +1469,7 @@ dependencies = [ [[package]] name = "craft-dxf" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "craft-codepage", "encoding_rs", @@ -1481,12 +1481,12 @@ dependencies = [ [[package]] name = "craft-eps" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" [[package]] name = "craft-font-catalog" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "fontique", "harfrust 0.13.3", @@ -1501,7 +1501,7 @@ dependencies = [ [[package]] name = "craft-font-manager" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "craft-behavior", "craft-font-catalog", @@ -1520,7 +1520,7 @@ dependencies = [ [[package]] name = "craft-font-os-windows" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "windows-registry", "windows-sys 0.61.2", @@ -1529,7 +1529,7 @@ dependencies = [ [[package]] name = "craft-font-store" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "cap-primitives", "craft-atomic", @@ -1552,12 +1552,12 @@ dependencies = [ [[package]] name = "craft-fonts-build" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" [[package]] name = "craft-gif" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "gif", ] @@ -1565,7 +1565,7 @@ dependencies = [ [[package]] name = "craft-gzip" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "flate2", ] @@ -1573,7 +1573,7 @@ dependencies = [ [[package]] name = "craft-host" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "bitflags 2.13.2", "craft-i18n", @@ -1586,7 +1586,7 @@ dependencies = [ [[package]] name = "craft-i18n" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "chrono", "fixed_decimal", @@ -1614,7 +1614,7 @@ dependencies = [ [[package]] name = "craft-image-codecs" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "craft-dds", "craft-jpeg", @@ -1641,7 +1641,7 @@ dependencies = [ [[package]] name = "craft-imaging" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "craft-behavior", "craft-color-ui", @@ -1659,7 +1659,7 @@ dependencies = [ [[package]] name = "craft-jpeg" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "thiserror 2.0.21", ] @@ -1667,7 +1667,7 @@ dependencies = [ [[package]] name = "craft-jxl" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "brotli-decompressor 5.0.3", "jixel", @@ -1678,7 +1678,7 @@ dependencies = [ [[package]] name = "craft-keymap" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "craft-host", "craft-i18n", @@ -1693,7 +1693,7 @@ dependencies = [ [[package]] name = "craft-layers" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "craft-behavior", "craft-i18n", @@ -1707,7 +1707,7 @@ dependencies = [ [[package]] name = "craft-menu" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "craft-behavior", "craft-host", @@ -1725,7 +1725,7 @@ dependencies = [ [[package]] name = "craft-metadata" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "brotli-decompressor 6.3.2", "chrono", @@ -1737,7 +1737,7 @@ dependencies = [ [[package]] name = "craft-metafile" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "encoding_rs", "image", @@ -1748,7 +1748,7 @@ dependencies = [ [[package]] name = "craft-mime" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "chrono", "craft-codepage", @@ -1758,7 +1758,7 @@ dependencies = [ [[package]] name = "craft-pages" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "craft-behavior", "craft-keymap", @@ -1774,7 +1774,7 @@ dependencies = [ [[package]] name = "craft-pdf" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "hayro-interpret", "hayro-syntax", @@ -1786,7 +1786,7 @@ dependencies = [ [[package]] name = "craft-platform" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "async-channel", "async-io", @@ -1817,7 +1817,7 @@ dependencies = [ [[package]] name = "craft-plotter" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "kurbo 0.13.1", "thiserror 2.0.21", @@ -1826,7 +1826,7 @@ dependencies = [ [[package]] name = "craft-print" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "craft-behavior", "craft-host", @@ -1850,7 +1850,7 @@ dependencies = [ [[package]] name = "craft-proof" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "log", "miniz_oxide 0.9.1", @@ -1861,7 +1861,7 @@ dependencies = [ [[package]] name = "craft-ps" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "craft-eps", "flate2", @@ -1875,7 +1875,7 @@ dependencies = [ [[package]] name = "craft-psd" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "encoding_rs", "flate2", @@ -1886,7 +1886,7 @@ dependencies = [ [[package]] name = "craft-quit" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "dispatch2", "egui", @@ -1899,7 +1899,7 @@ dependencies = [ [[package]] name = "craft-review" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "base64 0.23.1", "craft-behavior", @@ -1918,7 +1918,7 @@ dependencies = [ [[package]] name = "craft-settings" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "craft-atomic", "craft-host", @@ -1935,7 +1935,7 @@ dependencies = [ [[package]] name = "craft-stream-codecs" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "fax", "hayro-ccitt", @@ -1946,7 +1946,7 @@ dependencies = [ [[package]] name = "craft-svg" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "craft-image-codecs", "craft-xml", @@ -1967,7 +1967,7 @@ dependencies = [ [[package]] name = "craft-table" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "craft-behavior", "craft-keymap", @@ -1979,7 +1979,7 @@ dependencies = [ [[package]] name = "craft-text" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "craft-behavior", "craft-font-manager", @@ -2004,7 +2004,7 @@ dependencies = [ [[package]] name = "craft-theme" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "bitflags 2.13.2", "craft-tracked", @@ -2019,7 +2019,7 @@ dependencies = [ [[package]] name = "craft-theme-store" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "craft-atomic", "craft-behavior", @@ -2034,7 +2034,7 @@ dependencies = [ [[package]] name = "craft-tiff" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "serde", "thiserror 2.0.21", @@ -2044,7 +2044,7 @@ dependencies = [ [[package]] name = "craft-time" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "serde", "thiserror 2.0.21", @@ -2053,7 +2053,7 @@ dependencies = [ [[package]] name = "craft-timeline" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "craft-behavior", "craft-keymap", @@ -2068,12 +2068,12 @@ dependencies = [ [[package]] name = "craft-tracked" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" [[package]] name = "craft-ui" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "craft-cloud-ui", "craft-ui-canvas", @@ -2087,7 +2087,7 @@ dependencies = [ [[package]] name = "craft-ui-canvas" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "craft-behavior", "craft-i18n", @@ -2103,7 +2103,7 @@ dependencies = [ [[package]] name = "craft-ui-contract" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "accesskit", "craft-behavior", @@ -2141,7 +2141,7 @@ dependencies = [ [[package]] name = "craft-ui-macros" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "proc-macro-crate", "proc-macro2", @@ -2152,7 +2152,7 @@ dependencies = [ [[package]] name = "craft-ui-panels" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "craft-behavior", "craft-host", @@ -2170,7 +2170,7 @@ dependencies = [ [[package]] name = "craft-ui-patterns" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "craft-behavior", "craft-host", @@ -2191,7 +2191,7 @@ dependencies = [ [[package]] name = "craft-ui-shell" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "craft-behavior", "craft-host", @@ -2212,7 +2212,7 @@ dependencies = [ [[package]] name = "craft-ui-widgets" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "craft-behavior", "craft-host", @@ -2231,7 +2231,7 @@ dependencies = [ [[package]] name = "craft-update" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "chrono", "craft-host", @@ -2260,7 +2260,7 @@ dependencies = [ [[package]] name = "craft-vectorcraft-format" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "flate2", "serde", @@ -2271,7 +2271,7 @@ dependencies = [ [[package]] name = "craft-wayland" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "raw-window-handle", "wayland-backend", @@ -2281,7 +2281,7 @@ dependencies = [ [[package]] name = "craft-web-api" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "js-sys", "serde_json", @@ -2292,7 +2292,7 @@ dependencies = [ [[package]] name = "craft-win32" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "winsafe", ] @@ -2300,7 +2300,7 @@ dependencies = [ [[package]] name = "craft-window" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "craft-appkit", "craft-atomic", @@ -2332,7 +2332,7 @@ dependencies = [ [[package]] name = "craft-xml" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "quick-xml 0.41.0", "serde", @@ -3630,7 +3630,7 @@ checksum = "9f4d0e94ddd48749f06bbe4e5389fb9799a0c45bcaf00495042076ef05e3241a" [[package]] name = "hayro-cmap" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "brotli", "hayro-postscript", @@ -3639,7 +3639,7 @@ dependencies = [ [[package]] name = "hayro-interpret" version = "0.7.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "bitflags 2.13.2", "hayro-cmap", @@ -3657,7 +3657,7 @@ dependencies = [ [[package]] name = "hayro-jbig2" version = "0.3.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "fearless_simd", "hayro-ccitt", @@ -3675,12 +3675,12 @@ dependencies = [ [[package]] name = "hayro-postscript" version = "0.1.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" [[package]] name = "hayro-syntax" version = "0.7.2" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "flate2", "hayro-ccitt", @@ -4657,7 +4657,7 @@ dependencies = [ [[package]] name = "krilla" version = "0.8.2" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "base64 0.22.1", "bumpalo", @@ -4814,7 +4814,7 @@ checksum = "d4a5ff6bcca6c4867b1c4fd4ef63e4db7436ef363e0ad7531d1558856bae64f4" [[package]] name = "linesweeper" version = "0.5.0" -source = "git+https://github.com/dotCooCoo/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" +source = "git+https://github.com/storytold/craft-libs?rev=423b0375042e5c313b25140b553d7a8227c502bf#423b0375042e5c313b25140b553d7a8227c502bf" dependencies = [ "arrayvec", "kurbo 0.13.1", diff --git a/Cargo.toml b/Cargo.toml index 89df409f43..792e236706 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,44 +11,44 @@ rust-version = "1.95" repository = "https://github.com/storytold/vectorcraft" [workspace.dependencies] -craft-cms = { git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } -craft-pdf = { git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf", default-features = false, features = ["interpret", "write"] } -craft-docpath = { version = "0.1.0", git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } -craft-proof = { git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } +craft-cms = { git = "https://github.com/storytold/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } +craft-pdf = { git = "https://github.com/storytold/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf", default-features = false, features = ["interpret", "write"] } +craft-docpath = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } +craft-proof = { git = "https://github.com/storytold/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } # The `.vectorcraft` envelope: its members, version, embedded images and the data after the JSON. -craft-vectorcraft-format = { git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } -craft-gzip = { git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } +craft-vectorcraft-format = { git = "https://github.com/storytold/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } +craft-gzip = { git = "https://github.com/storytold/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } # Native Affinity documents (craft-libs#914). -craft-affinity = { git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } +craft-affinity = { git = "https://github.com/storytold/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } # Bounded CDR (v1-v27) and CMX (32-bit) reader (craft-libs#778). -craft-cdr = { git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } +craft-cdr = { git = "https://github.com/storytold/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } # SVG parsing, limits, SVGZ and writer (craft-libs#778). -craft-svg = { git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf", features = ["tree"] } -craft-mime = { git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } +craft-svg = { git = "https://github.com/storytold/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf", features = ["tree"] } +craft-mime = { git = "https://github.com/storytold/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } # EPS container, previews, ASCII85 and DSC comments (craft-libs#778). -craft-eps = { git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } +craft-eps = { git = "https://github.com/storytold/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } # DXF tags, reader and writer (craft-libs#778, #926, #927). -craft-plotter = { git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } -craft-dxf = { git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } +craft-plotter = { git = "https://github.com/storytold/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } +craft-dxf = { git = "https://github.com/storytold/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } # WMF, EMF and EMF+ reader (craft-libs#778). -craft-metafile = { git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } -craft-xml = { git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } -craft-image-codecs = { git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } -craft-gif = { git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } -craft-tiff = { git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } -craft-ps = { git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf", default-features = false, features = ["read", "write"] } -craft-psd = { git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } -craft-stream-codecs = { git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } -craft-jxl = { git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } -craft-codepage = { git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } +craft-metafile = { git = "https://github.com/storytold/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } +craft-xml = { git = "https://github.com/storytold/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } +craft-image-codecs = { git = "https://github.com/storytold/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } +craft-gif = { git = "https://github.com/storytold/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } +craft-tiff = { git = "https://github.com/storytold/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } +craft-ps = { git = "https://github.com/storytold/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf", default-features = false, features = ["read", "write"] } +craft-psd = { git = "https://github.com/storytold/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } +craft-stream-codecs = { git = "https://github.com/storytold/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } +craft-jxl = { git = "https://github.com/storytold/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } +craft-codepage = { git = "https://github.com/storytold/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } # The framework facade (`craft::ui`, `craft::settings`, `craft::platform`, ...). No default features: each crate names # the members it imports. -craft = { git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } +craft = { git = "https://github.com/storytold/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } # Below the egui layer, so not through the facade: the colour harmony rules and their settings (craft-color-ui # without its `ui` feature), the colour type they work in, and the craft-fonts tables the text crate's build writes. -craft-color-ui = { git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } -craft-theme = { git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } -craft-fonts-build = { git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } +craft-color-ui = { git = "https://github.com/storytold/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } +craft-theme = { git = "https://github.com/storytold/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } +craft-fonts-build = { git = "https://github.com/storytold/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } # internal vectorcraft-geom = { path = "crates/geom" } vectorcraft-color = { path = "crates/color" } @@ -191,13 +191,13 @@ lto = "thin" codegen-units = 1 [patch.crates-io] -hayro-syntax = { git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } -hayro-interpret = { git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } -hayro-jbig2 = { git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } -hayro-cmap = { git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } -hayro-postscript = { git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } -krilla = { git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } -linesweeper = { git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } +hayro-syntax = { git = "https://github.com/storytold/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } +hayro-interpret = { git = "https://github.com/storytold/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } +hayro-jbig2 = { git = "https://github.com/storytold/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } +hayro-cmap = { git = "https://github.com/storytold/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } +hayro-postscript = { git = "https://github.com/storytold/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } +krilla = { git = "https://github.com/storytold/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } +linesweeper = { git = "https://github.com/storytold/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf" } ecolor = { git = "https://github.com/storytold/egui.git", rev = "b15ffe9bfc2c8e6748533b32b708e10abaf2afec" } emath = { git = "https://github.com/storytold/egui.git", rev = "b15ffe9bfc2c8e6748533b32b708e10abaf2afec" } epaint = { git = "https://github.com/storytold/egui.git", rev = "b15ffe9bfc2c8e6748533b32b708e10abaf2afec" } diff --git a/apps/vectorcraft-web/Cargo.toml b/apps/vectorcraft-web/Cargo.toml index a7d16e9924..54fdc1d97e 100644 --- a/apps/vectorcraft-web/Cargo.toml +++ b/apps/vectorcraft-web/Cargo.toml @@ -27,7 +27,7 @@ log = { workspace = true } # `wgpu` pulls egui-wgpu's defaults: WebGPU plus the WebGL2 fallback. eframe = { workspace = true, features = ["default_fonts", "wgpu", "accesskit"] } # The page command API (storytold/craft-libs#413): the request plumbing behind window.vectorcraft. -craft-web-api = { git = "https://github.com/dotCooCoo/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf", version = "0.1.0" } +craft-web-api = { git = "https://github.com/storytold/craft-libs", rev = "423b0375042e5c313b25140b553d7a8227c502bf", version = "0.1.0" } wasm-bindgen = "0.2" serde_json = { workspace = true } diff --git a/xtask/src/pdf_deps.rs b/xtask/src/pdf_deps.rs index 71f3dc54e6..37cfc6ed3c 100644 --- a/xtask/src/pdf_deps.rs +++ b/xtask/src/pdf_deps.rs @@ -5,7 +5,7 @@ use std::process::Command; use serde_json::Value; -const REV: &str = "b0d422cf0c23baccdaca314b916458a89c0952e0"; +const REV: &str = "423b0375042e5c313b25140b553d7a8227c502bf"; const PACKAGES: &[(&str, &str, &str)] = &[ ("craft-pdf", "0.1.0", REV), ("krilla", "0.8.2", REV),