A closed subpath with no length in a path that ends open is painted as a
square dot at the whole path's reach. The shortened-line pass skipped
closed subpaths, so once the start cap moved to the shortened end the
box no longer took in that dot.
With Tip alignment the arrowhead shortens the line and the projecting cap
is drawn at the shortened end, but reach_along put the cap's corners at
the path's own end, so the bounds reached half a stroke width past the
head's tip. The caps are now measured along the shortened line, aligned
as the renderer aligns them, and a trim that leaves no length still
counts the cap's dot. Follows #10994.
Every test writes its own raw coverage profile in the shared SonarCloud
workflow, and at 4 shards each shard wrote about 80 GB in 8,000 files.
Since 2026-12-05 the shards of main's SonarCloud runs fail with "No
space left on device" in "Run this shard's tests" (runs 47575790406
and 47566278173), so main's nightly commit gets no analysis.
8 shards halve the raw profiles each runner holds. The shared workflow
fix is storytold/craft-common-actions#486, which merges the profiles
of one test binary as each test exits; this goes back to the default
once it merges.
DesktopWindows now passes the pointer, button, text and warp calls to
windows_stylus::ContactWindows, so a pen or a finger in contact still
counts as the primary button with the monitor listing in place.
Deleting a saved profile kept only the stored ids, so a profile saved after
the last move was missing from the order passed to set_profile_order and the
default order stayed stored. Delete now builds the whole list as it shows and
stores it only when it differs from the default.
The gate's `build` job builds the integration tests without recording
their units, so the trim before the cache save was meant to drop them.
actions/cache-trim keeps every unrecorded unit built during the job, so
a cold main build saved all of them: a 9.68 GB gate-crates entry, over
the repository's 10 GB cache budget, which was then evicted and left
every following build cold.
`cargo xtask ci archive` now collects the unit directories of the
integration test executables those builds made and deletes them once
the shard archives are written, in a leg that saves the cache. Units
the record names stay, and a unit that cannot be deleted is named in a
warning. The shards run the executables from their archives, and the
doctests that follow do not use them.
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.
The framework finds the monitor a palette window is on by testing the
window's top-left corner, in the window's own points, at each listed
monitor's scale. With a scale-1 primary listed before a scale-2
secondary, a palette on the secondary matched the primary, and its
popups were kept in the primary's work area, away from their opener.
The desktop window system now lists monitors only when they all share
one scale. On a desktop with mixed scales, popups stay within the span
of the app's windows and dialogs reopen where they were saved, as
before this branch.
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.
The visual bounds of a stroke with arrowheads added a square around each
end point, as wide as the head's reach. With the arrowhead's align set to
"Tip on the end point", the head lies back along the path, so the
selection box reached past the tip by the head's whole length, leaving
empty room in front of the arrow. The bounds now take the box of each
head's outline from the same geometry the canvas paints, so the box ends
at the tip. The arrowhead geometry moves from vectorcraft-effects to
vectorcraft-doc so that the bounds code can use it; vectorcraft-effects
re-exports the same items.
The fade outside the artboards filled each of its pieces on its own, and
each faded out along the edges it shares with the next, so thin lighter
lines ran from the artboard's corners to the edges of the canvas. The
pieces are now filled as one unfeathered mesh (Draw::data_fill_tiled).
Fixes#10221Fixes#10225
Co-authored-by: FredApps <[email protected]>
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 app's root settings now set three craft UI framework looks:
- SwatchCorners::Square: color swatches and the Fill and Stroke wells
draw with square corners.
- FloatingGroupLook::Palette: floating panel groups and tool palettes
have square corners and a small shadow.
- DrawingCursorLook::Monochrome: the Selection, Direct Selection and Hand
pointers, the drawing crosshairs and the tool cursors draw in black and
white in every color scheme, so they no longer take the theme's blue.
The cursor tests read the black tool marks, and the pen nib test samples
the 24-unit art that tool cursors now draw at. New tests check that a
swatch paints a square well, that floating groups take the palette frame,
and that the drawing pointers have no colored pixel in the Modern and
Classic schemes.
Carries #10274 by FredApps, with main merged in. The pen cursor artwork
from #10274 is not included: #10393 already redrew it on main.
Co-authored-by: FredApps <[email protected]>
The desktop app passed the framework a window system that lists no
monitors, so a dialog such as Preferences reopened at its saved desktop
position without being fitted to any display, and palette popups had no
monitor to stay inside.
The app's window system now lists the monitors through winit, with each
monitor's work area on Windows (GetMonitorInfo), so a saved dialog that
no connected monitor shows comes back onto one with its title bar
reachable, and popups stay above the taskbar. A listing is reused for one
second and kept when winit stops on a display that went away while it
was listed. macOS lists no monitors, as before: winit gives each
display's position in that display's own scale, so displays with
different scales overlap. The main window's restore uses the same
listing.
Fixes#10230
Co-authored-by: FredApps <[email protected]>
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.