The main window's UI runtime now gets a link opener (InstallSpec::open_links,
craft-libs #5083), which takes every http, https and mailto link the app asks
to open (Help menu, app bar Discord button, Home and About links, credits, the
updater, an object's URL) and starts the system handler once per request.
eframe's `links` feature, which opened them before, is removed.
The runtime's opener drops every other scheme, including the file: URLs of
View PDF after Saving and Show in Browser in Save for Web and SVG Options. The
app now hands those to a new desktop service, Services::open_file_url, which
opens them in the default web browser with the webbrowser crate, as eframe's
`links` feature did. Without the service (the web build) they go to egui as
before.
On Linux and the BSDs the link opener runs xdg-open with the URL as its only
argument. craft-libs' open_external runs `xdg-open -- <url>`, and xdg-open
(xdg-utils 1.1.3, Ubuntu 24.04) exits with "unexpected option '--'" without
opening anything. A URL that starts with "-" is refused. macOS and Windows use
open_external.
adopt_context turned egui's font hinting off in both themes of every
context it adopted (ui_fonts::hinting_off), because skrifa 0.44's
automatic hinter never finished a tall narrow Hebrew letter in a face
without hinting instructions and the font list stopped responding.
craft-libs#5222 merged the blue-zone exit into craft-libs vendor/skrifa,
and the craft-libs pin holds it. The skrifa entry in [patch.crates-io]
now takes skrifa 0.44 from the pinned craft-libs rev (f9e5cecc9c)
instead of the pull request's commit (37d0532f42); vendor/skrifa is the
same at both revs. hinting_off and its call are removed, so interface
text and the font list and picker samples are hinted as egui does by
default. Type on the canvas is drawn from its own outlines and does not
change.
a_face_without_hinting_instructions_draws_its_sample now checks that a
context the app adopts hints text in its global, light and dark styles,
and still draws U+05D1 from a face without instructions.
A block's symbol was looked up by its scale alone, so a placement whose
art the nesting limit cut short, or that left out a block placing one of
its ancestors, could hand that shortened art to a complete placement at
the same scale. The symbol key now also holds the depth where the
block's art reaches the nesting limit (counted under the ancestors it
places) and the ancestors it places within that limit.
The scale scan reuses a "yes" only while none of the blocks it went
into to reach the dashes is an ancestor, and keeps up to four of them;
it checks anonymous blocks with everything they inherit, as they are
drawn. Inserts on hidden layers are not followed. The new shape checks
have an import-wide work budget and a memory budget.
The test compared the shared shortcut editor snapshot before and after the
steps. Another test switching languages can replace that snapshot after the
app's catalog was built, so the refresh rebuilt the catalog while the guard
saw no change and the assertion failed. The guard now starts from the
snapshot the app's catalog holds.
- Close with Save waits while the save compares the document's file. The
OK of the import-loss question runs File > Save, which can start a
comparison; Close used to report "not saved, so not closed" and stop.
- A comparison that answers while a script runs waits for the script to
end when its document is not active. Activating the document to write
it failed with a busy error while the script ran.
- The digest and comparison threads check read access under the
file-access scope of the call that started them. A file that scope may
not read leaves no digest, and Save asks as it does on a change.
The gallery showed a small preview above a categories list and a single
long column of filters, so the dialog grew tall and narrow.
The dialog now lays out three columns: the preview at the start, the
category folders with their filter thumbnails in the middle, and the
filter settings with the effect layers at the end. The preview is a side
menu's width (`LeastWidth::SideMenu`) and is drawn one texel to a device
pixel, so it keeps its size in points on high-density screens; the
filters draw at the same document size at every density.
The catalog's generation hashed the Scripts menu's revision and the font
database's generation. Each startup step that moved either one (the Scripts
note before the first listing, the listing itself, the font scan) made the
catalog's rows again and built the window's keymap again, even when the rows
were the same. On a fresh start that happened three times in the first
frames.
The catalog is now kept when its rows are unchanged: the rows the scripts
and fonts add are compared as rows, and the catalog's generation hashes each
row's key, label and kind. A menu that shows or hides an item the rows
already have no longer moves the generation either.
On Windows (release build, fresh settings folder, 3 runs), the UI thread's
work in frames 0 to 2 went from a median of 226 ms to 130 ms, and catalog and
keymap builds in the first 6 seconds went from 4 to 2.
A right-button release on a chip set the stroke even when the press began
elsewhere, so a right-drag from empty space onto a chip changed the stroke.
The strip now remembers the chip (by document and paint) that a right
press landed on and sets the stroke only when the release lands on that
chip. Presses on a layer covering a chip, and the invisible sizing pass of
a measuring container, do not count, and a chip that moves in the list
between press and release still does.
Every craft-libs rev moves on to craft-libs main at 643892adc7, which also
holds storytold/craft-libs#3665, #3710, #4928, #5471 and #5554. The egui,
winit and acadrust revs stay as craft-libs pins them.
With craft-libs#4928 the Bezier overlay paints its anchors and handles as
one kept mesh. The test that compares the canvas anchor marks with the
overlay now tessellates the marks' run of shapes the same way before it
compares them, and leaves out placeholder shapes that paint nothing.
Since the move to the craft font catalog, the global catalog asked the
platform's font service (DirectWrite on Windows, CoreText on macOS) and
also ran the app's platform lister, which lists the same fonts again.
On Windows the font service opens and maps every installed face, so the
background font scan did that work twice at every start.
set_platform_font_files_complete sets a lister that lists every font
the font service lists. The catalog then reads the lister's files and
does not ask the font service. set_platform_font_files keeps adding to
the font service as before. The desktop app and vectorcraft-cli install
their Windows and macOS listers with the new call; both listers already
read DirectWrite's system collection (plus GDI's fonts) and CoreText's
available fonts.
- The comparison's thread asks for a frame once it answers, so a save
started from the menu finishes without waiting for the next input.
- A comparison that answers while a dialog previews a change in the
save's own document, or a drag in it is not yet committed, waits for
the preview to end, so the file never holds a change that Cancel
takes back. Typing in progress is saved as by any Save.
- A save with an explicit path that ends while a comparison is pending
drops the comparison and frees the flow, so no changed-on-disk
question opens with no save left to apply its answer.
The move of the kept anchor marks mesh compared each requested square side
with twice the feathering, but the tessellator tests the built rectangle's
f32 width and height. A side just over 2 pixels gives a square exactly 2
pixels wide at x = 252.5, which the tessellator draws as a line. The check
now tests both built squares, before and after the move.
Main added Geom::Shaded for gradient and pattern hatches, and the scale
check's match did not cover it, so vectorcraft-cad stopped compiling.
Gradients fill and pattern lines carry their own dashes at the
lineweight, so neither makes a block's look depend on its insert scale.
- Tools panel and toolbars: a click on a toolbar's Edit Toolbar button while
the drawer is open beside another toolbar takes the drawer there again. The
rail now also reports the button's response from its measuring pass, so the
click ran window.editToolbar twice in one frame and the second run closed the
drawer. The command runs only from the pass that shows the rail.
- DWG export: craft-dwg now also writes R13 and R14. DWG export still offers
2000 to 2018 and refuses R12, R13 and R14 with the same message.
- Blend Options: the Ramp test expects the number field to keep its focus when
another blend is selected, as SliderField::edit_target keeps it. The draft
is still dropped and nothing is committed to the new blend.
The check of whether a block draws dashes or wide polylines cached a
"no" made by a scan the nesting limit had cut short. A later, shallower
placement of the same block then reused it, so its dashes kept their
unscaled length.
Each answer now carries the depths it holds at: a "no" from a scan cut
short holds only from the depth it was made at, and a "yes" only down to
the depth from which the dashes it found are still drawn. A scan that
left out a block inside itself is kept with the ancestors it left out,
and is reused only under the same ones. A symbol whose art the nesting
limit cut off is kept apart from the full one, by depth. A placement past
the nesting limit is rejected before any cached answer or block work, and
a block inside itself is left out before its symbol is looked up.
The kept mesh moved when each anchor's screen position moved by whole
pixels, but a square's edges are computed in f32 from that position and
rounded to pixels by the tessellator. A 5 pt anchor at x = 252.99998
moving one pixel has its right edge go from 255.49998 to 256.5, which
round to 255 and 257, so the moved mesh drew that edge at 256.
The move now checks the squares the marks draw at each point, at the
anchor size and at the handle size: each must keep its f32 size and
have every edge round to pixels moved by the same whole pixels.
Squares thin enough for the tessellator to draw as a line are
tessellated again after any move.
The CMYK fields of a script's picker now convert through the CMYK profile
of the script's document whenever one is given, not only in a CMYK
document, matching the gamut warning. An RGB color opens through the
active RGB profile, which the picker's RGB fields read its channel values
in, so the opening swatch and the fields agree. docs/mcp.md names the
profiles the picker uses.
A native menu's Cmd+Z and Shift+Cmd+Z, made while the OS window of a
floating panel or a floating toolbar has the keys and none of its text
fields is focused, undo and redo once each.
File > Open refuses an RTF file that ends inside a group as damaged
instead of opening the text read before the end; File > Place still
places that text. Binary data and bytes after the document's closing
brace are skipped, as the reader skips them.
Text Import Options for a file File > Open asks about now waits while
any dialog is open, as Missing Fonts does, so the two never show at
once.
The File > Open filter test uses the extensions and formats this build
reads, so it holds where no DWG decoder is built in.