In a field while a movie plays, Left and Right move the caret by where text is displayed,
crossing lines by the paragraph's direction, and a selection across a change of direction is
highlighted in its separate stretches. text.create and text.edit return a note naming the
families letters were borrowed from and how many characters no installed font has; the stage
shows it in the status bar. craft-text is pinned to the craft-libs commit the app already
uses. ADR 0130, the guide, the roadmap and the parity matrix say what is done and what is
left; outside PRs #39 and #40 are credited.
Both were written against the single-style layout that lived in crates/text/src/lib.rs
before ADR 0085 moved layout to styled runs in rich.rs, so their changes to lib.rs,
cmds_text.rs and the roadmap conflict and are resolved to main's side here. The commits
that follow rebuild the same behaviour on the styled-text layout and carry over their
ideas and tests: line breaks found in reading order and never inside a cluster, a face
chosen per cluster with its marks, invisible format characters not counted as missing,
the fallback family list, and the note that says which characters show as boxes.
Kept from the merge as it is: the ADR 0012 paragraph and the unicode-bidi entry, which
the next commit replaces with craft-text's bidi module.
egui 0.37 salts a panel's id with its parent Ui's scope, so the dock's
resize handle is ui.scope_id().with(id).with("__resize"). The shell still
looked for id.with("__resize"): a drag never reached the layout, so the
size wasn't saved and the handle's screen-reader name went to an id no
widget had. New test: dragging the right dock's edge keeps its new size.
Also from review: the pseudo-locale test exempts only names of documents
opened from a file (an unsaved document's "Untitled" is still checked),
and docs/localisation.md says egui shapes text with HarfRust and lacks
only bidi.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review follow-ups on the import name (ADR 0009 note):
* Session::imported is an `Import` {source, package, save_as}, fixed at
import time: removing an XFL package's DOMDocument.xml afterwards no
longer moves the Save suggestion inside the folder.
* Duplicate-tab lookup compares packages (`import_package`), so an XFL
folder and the .xfl in it are one document and share a tab.
* In a browser an import isn't matched by path: an upload is known only by
its name, and two different files may share one.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Main already fixed the picture cache race and split the command fuzz (#525), so this keeps
main's versions of both; what remains here is the longer thread deadlines in tests.
On macOS 26 the app aborted when its window closed (the end of a
`--screenshot` run, and the same close path that quitting and the close
button take) with NSRangeException: "Cannot remove an observer
<_NSTouchBarFinderObservation> for the key path "nextResponder" from
<WinitView> because it is not registered as an observer", exit 134.
Cause: accesskit_macos 0.26 subclasses winit's view at runtime and, when
the adapter drops, sets the view's class back. By then AppKit's Touch Bar
finder has observed the view with KVO, which gave it a class of its own;
putting the old class back breaks that observation, and AppKit throws
when it removes it on the next display cycle. Fixed upstream in
accesskit_macos 0.27.2 (AccessKit/accesskit#835), which only eframe and
egui 0.37 can use (egui-winit 0.37 -> accesskit_winit 0.34).
Measured on macOS 26.5 (M1), display awake:
- `anicraft --screenshot`: main 3/3 exit 134, this branch 5/5 exit 0,
same picture.
- A bare eframe window closed with ViewportCommand::Close: eframe 0.36
with accesskit 6/8 crashed, without accesskit 0/8, eframe 0.37 with
accesskit 0/10.
The bump, by egui 0.37's migration notes:
- WidgetType is Role (SelectableLabel -> Button, Checkbox -> CheckBox,
CollapsingHeader -> DisclosureTriangle, ColorButton -> ColorWell);
Id::new -> Id::unique; Ui::id -> Ui::scope_id.
- Screenshots come back through a callback (Context::request_screenshot)
instead of an Event::Screenshot; MouseWheel events carry a source.
- egui now names its own panel and window resize handles for screen
readers, and hands a tooltip to them as the control's description: the
pseudo-locale tests list egui's names with its close button, and count
file paths and open documents' names as data.
wgpu stays at 30. New crates (Linux clipboard: wl-clipboard-rs and its
dependencies; accesskit_ios) are MIT or MIT OR Apache-2.0.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A toggle beside the Layers heading hides every timeline row but the
active layer's, following the active layer as it changes; clicked again,
every row is back. View state: the stage and the document are unchanged.
The icon is an AniCraft original on Lucide's grid.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
"." on the last frame went round to the first, and "," on the first to
the last. They now stay there, as the timeline's arrow keys already did,
and Next no longer pulls a playhead that is past the last frame back.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review: the new layers now take their layer's settings (camera depth and
depth keys, attachment, the layer it follows, sound volume). Refused with
a message: the end of a tween (its artwork is what the tween ends on), an
instance that goes on from the keyframe before or after (on a layer of
its own it would start playing again), a layer below full opacity (it
fades as one group), and layers other than ordinary ones.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Export Frame as PNG and Export PNG Sequence always painted the stage
colour behind the artwork, though the guide said they were transparent.
Both take background (default true: as before; false: real alpha where
the stage has nothing), and Publish Settings has "Stage colour as
background" for both, kept in the document's publish profile.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review: an object much longer than the rest could make the gap so
negative that Space Evenly passed one object over the next; that is now
refused, moving nothing. The gap and the running position are in f64, so
rounding over many objects can't move the last one. The Match commands'
descriptions and the guide say what each does per side, that the width
and height may come from two objects, and that a straight line keeps its
zero side.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Selection tool's marquee selected a symbol instance, group, drawing
object, text or bitmap only when it lay wholly inside; one it covered
partly was left out. It now takes every object it touches, whole, as
the reference app does. Raw shapes are still cut at its edges.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
modify.distribute_to_layers puts each selected object (symbol instance,
group, drawing object, text, bitmap) at the playhead on a new layer of its
own, just above its layer and in the same folder or mask, named after its
symbol, stacked as the objects were and holding it for the frames its
keyframe covered. With Break Apart first, a symbol's contents spread over
layers. Raw shapes stay; a tweened keyframe is refused with a message.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Five Align commands: align.match_width, align.match_height and
align.match_size make each selected object (a raw drawing as one) the
largest one's width and/or height, or the stage's with to_stage, scaled
about its own top-left corner; align.space_h and align.space_v make the
gaps between three or more objects equal, the outer two unmoved. The
Align panel has buttons for them (five original icons on Lucide's grid),
the stage's Align menu lists them, and Edit Multiple Frames leaves them
off as it does Distribute.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The button at the top of a shape's properties runs modify.lines_to_fills.
A fill with no line leaves the button unavailable, so a click changes nothing.
Co-authored-by: Neel Patel <N-NeelPatel@users.noreply.github.com>