The built-in White inside is stored as an empty value instead of #ffffff, so a
swatch named #ffffff no longer replaces it. ui.foldPreview takes an empty
inside for white; a swatch's name still comes before a #rrggbb that reads the
same.
The crossing search splits curves into pieces until each lies within
0.0001 pt of its chord, and takes the place where two chords cross.
Where a line meets an arc at under a degree, that place sat up to
0.025 pt along the arc from the real crossing, so Trim at Crossings,
its hover and Add Points at Crossings cut there.
Each place found is now moved onto both curves with Newton's method on
a(s) = b(t). The move is kept only when it stays within both segments,
ends closer than 1e-9 pt, and moves no farther than a piece bent by
0.0001 pt can shift a crossing at that angle; otherwise the place stays
as it was.
The editing copy of a PDF-compatible .ai wrote every blend as its steps.
Blends the .ai reader opens live are now written live:
- The blend's key objects and, when it has a spine of its own, its
spine are written as a group on hidden lines, each key's dictionary
naming it a key and its id and the spine's naming it the spine. Its
steps follow as a group, then the Path Blends record of its spacing
(Smooth Color, Specified Steps, Specified Distance with its distance),
orientation (Align to Page, Align to Path) and keys, then its
dictionary (name, text wrap options, variables) and its opacity and
blending mode as a group's after its end. A spine edited on the canvas
is written with each key's anchor on the key. A replaced spine is
written with an anchor where each key sits, so it opens with those
anchors and lays out the same steps.
- Each blend is checked with the reader's own reading before it is
written, and the blends together against the objects the reader lays
out in one file. Written as their steps with a warning: blends with
easing, a color shift or start points; with effects, an appearance or
an opacity mask of their own; of objects other than paths, compound
paths and groups, of clipping groups, of more than 62 key objects, of
hidden keys or keys holding a blend; of keys with geometry or
Pathfinder effects or a group's own fills and strokes, which the
editing copy writes as their result; of keys the editing copy would
change otherwise (empty paths or subpaths, paths and compound path
members of several subpaths, several fills or strokes, strokes a plain
line can't draw, dashes of more than 64 lengths, hidden fills or strokes, fills or strokes other than
a color, in a Lab color or with transparency or effects of their own,
effects, opacity masks); blends where one key has a fill or stroke of
no paint or a stroke of no width and another has one that draws;
blends whose spine has more than one part;
blends whose step count is close to where rounding the written
coordinates and colors changes it; blends the reader would open with
other settings or not as drawn; blends inside objects with geometry or
Pathfinder effects or a group's own fills and strokes; blends in
opacity masks, pattern tiles, symbols and art cut to a clipping object
or nested eight levels deep in art written in place of other objects;
blends whose art would pass the most objects the reader reads; and
every blend on a large canvas.
- The steps set their own transparency and lock and hidden state after
the hidden lines, for readers of the printed form.
Each construct is written in the form the .ai reader reads (blend.rs,
read/document.rs blend roles, read/containers.rs end_blend, read/ops.rs
XP and transparency), and every object written counts toward the
reader's object limit as the reader counts it. The record's orientation
word and a blend with no spine part are read as #8243 reads them.
Blend Options, key objects and spines:
https://helpx.adobe.com/illustrator/desktop/manage-colors/apply-transparency-and-blending/blend-options-overview.htmlhttps://help.adobe.com/archive/en_US/illustrator/cs5/illustrator_cs5_help.pdf#page=260
Tests: the round trip of blends of each spacing and orientation, with
no spine of their own, an edited spine and replaced curved spines,
named, at half opacity, hidden and locked, with text wrap options, of
compound paths, of groups and of 62 keys, each laying out the same steps
as the document's blend; the record's words (Align to Path's angle
included) and the dictionaries; the steps' own state after the hidden
lines; the same bytes on a second write; each case written as its
steps, with as many steps as are drawn, where they are drawn (among
them Specified Distance 0.03 pt from where its count changes, on a
spine of 200 segments, which comes back live on a spine of two); blends in
pattern tiles, opacity masks, symbols, art cut to a clipping object and
eight levels down; the object limit; the reader's blend limit; a large
canvas; fuzz cases for damaged written blends.
Docs: docs/file-format-parity.md.
The callout, the row's home and the search index translated a filter plug-in's name, which
Object › Plug-ins shows as written, and translated other items by their English label alone,
while the menu bar translates them by the command id first (File › Close is Cerrar archivo in
Spanish). They now use the menu bar's rule.
Faces and edges are the group's paths named Face or Edge, so type or a
group drawn in an isolated Live Paint group under one of those names is
no longer counted by Gap Options, Info or Make, and Expand keeps it, as
it keeps type named like the sources group.
Exit Isolation Mode while editing a pattern, an opacity mask or a symbol
applies a shape still being drawn with Real-time Drawing and Editing off
before the paths drawn in an isolated Live Paint group join it.
Dialogs and the toolbar editors added a plain ":" after a translated
label, so French showed "Points isolés:" without the no-break space
before the colon. A new `i18n::colon` helper appends the catalog's ":"
row instead. French writes U+00A0 before the colon, Chinese and Japanese
write a full-width colon, and English and the other languages are
unchanged.
- Field labels: the generic parameter dialogs, Text Flow, Radial Blur's
Horizontal and Vertical, the graph type dialog, and the headings of
the toolbar drawer and the Add Tool menu.
- A label followed by a value: Radial Blur's Blur Center value for
screen readers, the Simplify point count, the Dimension preview, the
Revolve reset tooltip, Smart Punctuation's report, the PDF and print
option summaries, the PSD import layer count, the Recolor color share
tooltip, the Revolve light names and the script check's problems.
- The style dialogs' attribute list showed two colons ("Font Size::
12"). It now shows one.
Part of #7991 (reported by bortekfr).
FontFace::win_cell_height adds the MVAR `hcla` and `hcld` deltas to
usWinAscent and usWinDescent at the face's location, so EMF and WMF
type with a positive font height is sized against the instance it is
drawn in. The variable test font gains the two records, and a test
checks that Bold's cell is 200 units taller than Regular's.
The comments and docs/mcp.md also say that characters the mapped face
has no glyph for are drawn from other faces at the same size and
Horizontal Scale.
A VP8 key frame stores its first partition's size in 19 bits (RFC 6386
section 9.1). The encoder writes 524,287 for a larger partition too, and
a decoder then reads the token partition from the wrong offset. A lossy
WebP whose size field is at that limit now fails with an error that
suggests a lower resolution or Lossless, instead of writing a file that
does not decode.
Object › Rasterize… labels its fields from the command's parameter
names. Add Around, Anti Alias and Color Model had no catalog rows, so
they stayed in English in every language, and the resolution field was
labeled by its unit, "Ppi".
- A `ppi` field in a parameter dialog is labeled Resolution, and shows
its unit after the value from the catalog's "{n} ppi" row (French
"ppp").
- Each complete catalog gets rows for Add Around, Anti Alias, Color
Model and Resolution. Anti Alias, Color Model and Resolution use the
catalog's own "Anti-aliasing:", "Color Model:" and "Resolution:"
rows without the colon.
Part of #7991.
When the orientation the record names didn't lay the steps out turned
as drawn, the import took the orientation whose steps sit closest to
the drawn ones by their centers alone. A half turn leaves the centers
in place, so a blend drawn Align to Path whose record named Align to
Page came in as Align to Page, with each step turned from its drawing.
The import now takes the closest of the orientations that pass the
check, and the closest of them all only when neither passes.
Test: grouped red and blue squares drawn turned on a spine running
right to left come in as Align to Path with a record naming either
orientation.
Object › Create Gradient Mesh… opens the generic parameter dialog with
rows, cols, appearance and highlight. The labels look up the strings
"Rows" and "Cols", which no catalog had, so they stayed in English.
The "cols" key is now labeled Columns, and every complete catalog gets
plain "Rows" and "Columns" entries with the wording of its existing
"Rows:" and "Columns:" entries. The heading is translated through the
heading lookup this branch builds on.
The "cols" label is shared by every generic parameter dialog, so Repeat
Options for a grid repeat and plug-in parameters named "cols" without a
label of their own now read Columns too. Repeat Options also labels
"flipCols" Flip Columns, to match.
Part of #7991.
Flatten Transparency, Document Raster Effects Settings, Effect ›
Rasterize, the PNG options, the PDF save dialog's Compression section
and the Place dialog's file line wrote "ppi" as a literal, so a French
interface showed "ppi" where the catalogs write "ppp".
They now take the unit from the existing `{n} ppi` row, which every
catalog already translates. The dialog fields use a new `ppi_suffix`
helper next to `unit_suffix` in `dialogs/form.rs`. A field reads the
unit it shows, so in French "200 ppp" reads as 200.
Part of #7991, reported by bortekfr.
The check that the record's orientation lays the steps out as drawn
compared a step's outline as one set of lines. A half turn of a group
of a red square beside a blue one keeps that outline and trades the
squares' places, so such a blend passed as Align to Path. Each subpath
is now compared with the other's subpaths of a matching fill; a compound
path's members take its fill, and gradient or pattern fills are compared
with each other by their outline.
The check also tries the laid steps nearest first when it compares
outlines. Before, every step in place was compared, so a hundred steps
crowded within the tolerance used up the outline comparisons on the
first one and the check failed.
Tests: grouped red and blue squares on a spine running right to left,
drawn unturned, keep Align to Page with a record naming either
orientation, and keep Align to Path when drawn turned; a group of a
gradient-filled triangle turned a half turn doesn't match; a hundred
crowded steps match their drawn copies; 998 crowded steps keep Align to
Page.
A row's home, the footer and the screen-reader text named a tool on a strip torn off a group as
hidden "in the ... group", while the strip shows each of its tools on its own button and the
callout outlines that button. A torn-off group's tools are now named by their toolbar alone, on the
Tools panel and on toolbars made with New Toolbar.
Follows #7608. EMF and WMF type ignored the font's average character
width, and a positive font height was read as a fixed 0.85 of the cell.
Both changes are to how the importer reads a LOGFONT's size fields.
- When the face gives an average width (OS/2 xAvgCharWidth), a font's
average character width becomes Horizontal Scale: the face's average
width at the type size is stretched or narrowed to the font's width,
also when the size is held at its 5000 pt limit. A negative width is
read as its absolute value, and the width is ignored when the height
is 0.
- A positive height is the character cell. The em is the cell times
unitsPerEm divided by the face's usWinAscent plus usWinDescent (its
ascent plus descent when it has no OS/2 table). Type with a positive
height in existing files changes size.
- A font the system lacks is measured in the face VectorCraft draws it
in.
- FontFace gets win_cell_height and average_char_width.
LOGFONT: https://learn.microsoft.com/en-us/windows/win32/api/wingdi/ns-wingdi-logfontw
MS-EMF 2.2.13 LogFont: https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-emf/1cd7cb7a-1a7c-48d2-b4a4-c218f9d12100
With the link on, a W or H typed in the dialog sets both fields, but the
values the link compares a later change against stayed at the ones from
before the edit. A height set through ui.dialog.set before the next frame
then matched neither, so W and H stayed apart and Done refused them. The
dialog now remembers W and H after a typed edit.
A line that starts after a forced line break (U+2028) is no longer taken
for a soft wrap, so converting area type to point type no longer adds a
paragraph return after each forced line break.
When type.insert at the Type tool's caret pushes the caret's place into the
next frame of threaded text, the caret now goes to that frame, so typing
continues after the insertion instead of before the text that moved on.
The callout, the row's home and the search index named a built-in effect's menu item with the
plain translation of its English label, while the Effect menu translates it by the effect id
(Effect › Pathfinder › Réunion in French). They now use the effect id first, and a live-effect
plug-in's name stays as written, as in the menu.
An excluded row with no swatch of the group gave Save Changes its current color, which joined the
group, while OK adds nothing for it. It now sends a null in that place, which adds no swatch.
The row found for a swatch's color is now a row that gives the color a new color, before an
excluded row or one that removes the color, as recolor.apply maps the color with that row. Save
Changes and OK no longer remove a swatch, or keep its color, while the art takes another row's
new color.
Rich, RGB, Lab, spot-linked and lighter blacks are not marked to
overprint, and paints already set to overprint keep that setting. The
docs, params text and progress line said these blacks knock out.
docs/mcp.md also says that a symbol instance print leaves unplaced, past
16,000,000 objects of printed art or 128 drawn levels, is judged by its
symbol's own art.
With more than 16 drawn steps, the check compared the outlines of the
first 16 it tried and took the rest by their sizes, so a last step drawn
turned the other way still matched. It now compares the outlines of 16
steps spread evenly from the first to the last. A step that would take
more than 64 outline comparisons matches none, so the record's
orientation is not taken on an outline that was not compared.
Windows sends an empty pre-edit before each input method commit, and an
input method can delete the text around the caret before it commits. An
Alt chord press followed by either of these and then the commit was not
paired with the commit, so the chord's character was typed before the
committed text. Both events now sit between the press and its text, and
the test covers them.