After the graphics device is lost, a frame the device could not present
stays acquired by the window's surface. When the window closed, eframe
released the surface, and wgpu's Vulkan backend panicked with "Trying to
destroy a SwapchainAcquireSemaphore that is still in use by a
SurfaceTexture" (gfx-rs/wgpu#9277), so the app stopped with an error.
GraphicsLoss now remembers that a loss happened after the frame handled
the report. When the window closes after a loss, the process ends in
on_exit once the app has saved what it keeps on quitting, before the
window's graphics are torn down, on every platform. This is the exit the
macOS accessibility quit already takes (#661); a loss during start-up
still goes to the adapter restart (#651).
Fixes#6374
With a number field focused, a wheel notch anywhere in the window stepped
that field. In Pattern Options at 220 by 320 points, with Width focused at
10 pt, a notch over Size Tile to Art changed Width to 9 pt.
`root_env` now turns on the framework's pointer-scoped field wheel
(`RootEnv::pointer_scoped_field_wheel`, storytold/craft-libs#3805). The
desktop and web hosts both take their root from it. A notch over the
focused field still steps it. Elsewhere the wheel scrolls what is under the
pointer, and an unfocused number field under the pointer is not stepped.
At the craft-libs pin this branch moves to, a panel shown in a dock flyout
runs its body twice in the release frame: first in the container's
invisible sizing pass, then in the real run. copy_shown read the release
in the sizing pass, where the readout has no area, and cleared the press
it had remembered, so the real run saw a release without a press and
copied nothing. Info's W, H and other readouts stopped copying
(panel_readout_copy: three tests failed with no copy).
copy_shown now returns before reading input or the remembered press in a
sizing pass.
Where the text document makes the type of every text object that shows,
each piece of the page's type is matched with the made type that holds
it, and a word of the piece is that type's when its spelling contains
the word. The page can draw two text objects as one word: a word and a
letter set apart from it (a swash "h" after "Spirit") come out of the
page as one piece, "Spirith". Both text objects hold the piece, but
neither spells the word, so it was counted as type with no text object,
with the note "some of the page's type has no text object in the
layers, so it is left out" (a loss, so `convert` wouldn't write over the
file), though both text objects come in and draw it.
A word still left is now the type of the text objects holding the piece
when it is the last word of one of them joined to the first word of
another that draws after it along the first one's lines. Each part is a
whole word of its text object, so bits of words don't make up a piece,
and the two the other way round don't make the word.
In our garment files (used locally, never committed) this takes the
note off one file of 424 and changes nothing else.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With assets in the panel and many format rows, the Export Settings
section grew past the top of the panel, so its heading and the first
format rows could not be reached. The settings now sit in a scrolling
stack that takes at most half the panel's height, as the CSS
Properties panel does, and the preset name row, Export and the footer
bar stay below it.
The Layers panel built its row order again on every selection change:
each change made a new Tracked for the rows, and the rows reported no
order revision, so the panel asked every row for the rows inside it
(7 calls for the 6 rows of the new test's document).
- LayerRows reports LayerTree::order_revision: a hash of the document,
the open rows, Show Layers Only and the isolated node. The selection,
the highlighted rows, the current layer and the names are not in it.
- refresh_rows writes new rows into the kept Tracked while the document
(uid and revert count) stays the same, and makes a new Tracked for
another document or after File > Revert.
- The craft-libs pin moves from 186a229c8 to aa7e668ec, current
craft-libs main, which has craft-libs#4319 (LayerTree::order_revision).
The winit rev moves to 0dfcec0eb, as craft-libs pins it; egui stays
at 14c39fed1. xtask pdf-deps checks the new rev. craft-nightly keeps
the rev main pins it at.
Two tests failed on the new craft-libs:
- canvas::tests::a_selection_drag_draws_its_marks_in_the_frame_the_pointer_moves:
since craft-libs#4143 a frame runs one pass where it ran two, and the
bounding box, Live Corners, hollow corners and shape widgets were drawn
before the tool host took the frame's pointer event, so the box showed
at the old corner. They are now drawn after it, into paint slots kept
in their old order.
- tests::nativemenu::applying_a_dialog_preview_reads_the_menus: since
craft-libs#4350 the closed dialog's angle field gives up the keys one
frame sooner, so the menus are sent again without the text-editing
gate within the frames the test ran. The test now waits for the gate
and counts the read and that send apart.
crates/text/web-fonts.txt listed 30 background faces (Cairo, Tajawal,
Almarai, IBM Plex Sans Arabic, Noto Kufi Arabic, Amiri, Alexandria,
Fustat, Reem Kufi, Aref Ruqaa and Gulzar) that craft-fonts does not
have yet; they are added by storytold/craft-fonts#11 and #13, which are
still open. Every build with CRAFT_FONTS_DIR printed "web build won't
fetch: Cairo Regular, Tajawal ExtraLight, ..." from crates/text/build.rs
and xtask/src/web_fonts.rs, and the web build fetched none of them.
The rows are removed. The startup and demand faces stay. The rows go
back in when craft-fonts #11 and #13 merge.
Two doc comments held a literal U+FFFD replacement character, which
SonarCloud reports as "Invalid character encountered". They now write
it as `\u{FFFD}`:
- crates/ui-egui/src/panels/actions/playback.rs (`shown_text`)
- crates/pdf/src/tests/realtext.rs (the #708, #811 test)
Merging main made DIALOGS one entry short: Offset Objects and Match Objects
both joined it, so vectorcraft-ui-egui did not compile. The table now
declares seven entries.
A stacking match moved a clipping path out of its clip position and could
move a member out of an Intertwine group with its old overlap tiers. It now
refuses to move a clipping path, refuses a destination that would nest
Intertwine art, and clears the tiers of members that leave their group.
A stacking or rotate-only match no longer needs bounds on the source. A
size match measures each target after it is sized and turned, in its final
frame, and is refused when a target can't take the requested size, instead
of reporting success with the size unchanged. A target with no bounds that
needs to turn is refused.
With one object selected, the preview of the objects Start Global Edit
would take walked every selectable object again after each edit. After
an edit that replaced only the selected object, and left it the same
shape, size and appearance (a move), the same objects match, so the
outlines found before are kept.
The check compares the two documents: the layers may differ only in
the selected object and in the layers and groups that hold it, which
must be the same apart from their contents; the symbols and the rest
of the document must be the same. The selected object's form, box,
geometric size and fill and stroke are compared within a millionth of
the matching tolerance, since a move rounds the form differently in its
unit box. Any other change walks the document as before.
The preview is now also empty while a part of a dynamic symbol
instance is selected, as Start Global Edit is refused then.