A dialog taller than the app window was drawn past its top and bottom
edges, with no scroll bar, so its first options and its buttons could not
be reached. At 1024 by 480 this happened to SVG, EPS and DXF Options,
Save PDF, Save for Web, Export for Screens, Print, Preferences, Keyboard
Shortcuts, New Document and Find Font.
- The body of a shared dialog scrolls while the dialog would be taller
than the window, and its heading and buttons stay in view.
- A dialog window without such a body (Preferences, Keyboard Shortcuts,
New Document, Find Font) scrolls as a whole while it is taller or wider
than the window, at the 800 by 500 minimum window size too.
- Dialogs that already size their lists from the window's height
(Character and Paragraph Style Options, the Color Picker, Import
Shortcut Set and the dialogs that use scrolled_rows) are not scrolled
again.
- A dialog that is closed and opened again starts at its top, for its
scrolling body, its scrolled_rows and the window as a whole, instead of
where it was left.
- Save for Web in a window narrower than its full layout (800 pt, the
smallest window) draws its preview panes narrower, down to 240 pt, so
the settings column and the buttons stay in view instead of scrolling
off to the side.
- A field being edited keeps its text and focus when the window is resized
so that the dialog starts or stops scrolling: its contents keep their
ids either way.
Tests: the Save for Web settings and the Print sections show their bar at
rest; the export option dialogs at 1024 by 480 stay on screen with their
buttons in view and their bar drawn; Preferences, Keyboard Shortcuts, New
Document and Find Font at 800 by 500 stay on screen with their bar drawn;
Save for Web at 800 by 500 shows its settings and buttons and no sideways
bar; a modal window scrolled with the wheel opens again at its top, both
when it scrolls as a whole and when its rows scroll; a field keeps its id
when the body or the window starts or stops scrolling. The Print test that
types into Scale W picks W as the leftmost of the matching fields, since
the accessibility tree lists its nodes in no particular order.
Most scrolling lists in panels and dialogs (Swatches, History,
Artboards, Graphic Styles, Preferences and others) used egui's default
floating scroll bar, which draws nothing until the pointer is over the
list, so nothing showed that a list had more rows. The theme now gives
every scroll area the slim bar that menus, the Layers list and panel
bodies already use: it shows whenever there is more to scroll to, in a
column of its own beside the rows. Scroll areas that set their own
style keep it.
The toolbar's and the dock icon column's 2 pt scroll line now shows at
rest too, and still never grows wider than 4 pt (#808).
The Color Picker's swatch list leaves room for the bar inside the list
instead of widening the dialog. The Glyphs panel's grids count their
columns in the room beside the bar while their rows run past the list,
so the last cell of a row no longer pushes the bar past the panel's
edge, and use the whole width when the rows fit.
Look::takes let a glyph filled only join a run whose glyphs were also
stroked, so after mode 2 text a mode 0 glyph took the run's stroke:
`2 Tr (B) Tj 0 Tr (C) Tj` came in as "BC" stroked throughout. A glyph
now joins only a run drawn alike (fill, stroke, overprints), so a glyph
filled only starts a run of its own and takes a stroke only when the
matched-stroke path (#8039) strokes it.
flush_stroke no longer strokes a whole run in place: a whole run goes
through the split and join code, so fill and stroke rendering glyph by
glyph still builds one stroked run.
egui places a popup by its size the frame before, so on the frame a late-measured name widens the
menu the filter text can stay where it was while the menu's rect already reaches past the window.
The helper now waits until both the filter and the menu's rect stay put, which fixes the
intermittent failure of a_menu_wider_than_its_field_stays_in_the_window (the menu ending 0.7 pt
past the window's edge).
Type on a path sits at fractions of its path's length. Scaling the path
non-uniformly changes where a fraction lands (CodeRabbit's case: M0 0 L100 0
L100 100 under diag(2, 1) moves the start bracket from (200, 0) to (150, 0)).
Path type now bakes the vertical scale into the character sizes and scales
its path uniformly by it, which keeps every fraction where it was; the
horizontal stretch stays in the transform.
A Swatch Options rename of the spot color base keeps it the base, also
as a command.batch step, and so do an Undo and a Redo of the rename.
Deleting the swatch or its color group, merging it into another, making
it a process color or closing its document ends the link, so a later
spot color of the same name does not become the base until it is chosen
again. The base keeps the color it showed.
A batch's Activate Document, New, Open, Close and Move Document steps
are followed, so steps in another document leave the link alone. When
the swatch goes in a way the panel does not follow, the link waits for
an Undo or Redo, and the next other command ends it.
Baking an object's scale into the character attributes removed that scale
from the type's transform, but the area frame (and a path type's path), which
is drawn through that transform too, kept its unscaled size. A 120 x 80 frame
scaled 200% shrank back to 120 x 80 on the page, so the 24 pt type broke into
two lines and the rest became overset.
The frame and the path now take the scale the transform loses, so they, the
line breaks and every glyph stay where they were.
Fixes#8297
A PDF/X-4 export wrote xmp:ModifyDate and xmp:CreateDate in its XMP
metadata but no xmp:MetadataDate. The PDF/X-4 metadata edit now adds
xmp:MetadataDate next to xmp:ModifyDate, with the same value, and grows
the stream's /Length to match. When the export dates the file as modified
later, post::modification_date already rewrites every xmp:MetadataDate,
so the two dates stay equal.
PDF/X-1a, PDF/X-3, PDF/A and plain PDF exports are unchanged.
A fill and a stroke at the same opacity below 1 were joined into one
type object whose opacity then applies to both together, losing the
darker overlap the file composites. stroke_filled now takes a stroke
only when the fill and the stroke are opaque.
An upright glyph filled and stroked was kept as an outline for the
reshaped-outline fallback while upright glyphs filled only were not;
it is no longer kept either, so such a line can't come in as the
outlines of its stroked glyphs alone.
Docs: the #8015 entries say what is left (translucent type, and a TJ
that starts a new line part way through).
With Transparency off, Optimize to File Size's Auto Select counts the
colors of the pixels blended over the matte, which are the colors the
file is written with, so art whose blended pixels need more than 256
colors starts with JPEG instead of GIF.
Object › Rasterize… showed Anti Alias and Background as text fields
holding the command's values. They are now dropdowns of the values
object.rasterize takes: None, Art Optimized and Type Optimized, and
White and Transparent. Create Gradient Mesh… shows Appearance (Flat,
To Center, To Edge) and grid Repeat Options shows Grid Type the same
way. A value the dialog does not list is shown and sent unchanged.
Catalog rows are added for the labels that had none.
Part of #8020, part of #7991.
While the Desired File Size rows are open, Enter runs the search, as
the rows' OK does, instead of saving with the current settings. An
Enter that an open dropdown takes, that a field refuses the value for,
or that is pressed with Ctrl, Cmd or Alt runs no search and does not
save either.
- The steps of a live blend are written as drawn art: copies of key
objects with text wrap options no longer write those options again.
The keys keep theirs on the hidden lines and the blend keeps its own.
- The record holds Specified Distance as a 32-bit float, which the
reader reads back as its shortest decimal. The writer now compares the
blend with that distance, so a distance typed in another unit (10 mm
is 28.346456... pt) is written live when it lays out as many steps.
- blend_steps_settled has unit tests for each of its cases.
- blends_write_the_same_bytes_again checks that every blend is written
live both times.
- Comments name the blend plugin's XP line by its constant.
- docs/target-app-parity.md lists live blends in the .ai editing copy;
a line in docs/file-format-parity.md is wrapped like the rest.
Tests: a_live_blends_steps_carry_no_text_wrap_options,
a_blend_spaced_in_millimeters_is_written_live,
steps_settle_unless_rounding_can_change_their_count.