Commit Graph
1148 Commits
Author SHA1 Message Date
BFlat a6e94de555 Merge pull request #5484 from ruchirguitar/feat/4943-more-indian-languages
Complete #4943: Nepali, Konkani and Sindhi language options
2026-11-16 21:48:41 +07:00
ruchirguitar eecefd7c9f Merge current main into #4943 language-list PR 2026-11-16 15:17:05 +05:30
FredApps d78059ec08 fix(codecs): report a truncated BMP as too large, and restore the JPEG fixture encoder
header_size now reads a BMP BITMAPINFOHEADER when the probes refuse the file,
so Paste of a 30,000² poked header reports "too large to draw" instead of
that the size can't be read. through_jpeg encodes with the image crate again
so the block-artifact trace test stays calibrated; the JPEG writer is still
on main's code. Also use a no-break space before ":" in three French typography
rows (unchanged from main) so the catalog check is green.
2026-11-16 09:59:47 +01:00
FredApps e9b9e93dcc fix(codecs): Place still refuses a header-only image within the allowance
decode_within mapped every LimitExceeded to Ok(None) ("oversized, accept
unread"). craft-image-codecs raises that for its decompression-bomb guard
when a tiny file declares a large image, so Place accepted a header-only
23,170² gray PNG instead of reporting that its pixels can't be read.

Ok(None) now only when the header says the image would take more than the
allowance as samples or as RGBA. A decode that hits a limit stays an error.
2026-11-16 08:54:03 +01:00
FredApps 3e772ec2c3 doc: ImageBlob pixels and link previews decode through craft-image-codecs
Embedded and linked images read their pixels with decode_within: the
size from the header against the allowance first (as samples and as
RGBA, #1717), then the pixels as stored. map_rgb, sampling, coverage,
link previews and checked_with_pixels all go through it.

decoded_pixels_are_those_the_image_crate_read compares PNG, GIF, WebP,
TIFF and BMP at each depth the image crate writes with its pixels, and
JPEG within two steps, including the pixels checked_with_pixels hands
on. The 11,586² allowance test is a compact PNG; craft-image-codecs
refuses a GIF whose unbacked logical screen is past 256 MiB.
2026-11-16 07:08:12 +01:00
FredApps bfe5c253f4 Merge remote-tracking branch 'origin/main' into feat/cutover-remaining-codecs
# Conflicts:
#	crates/engine/src/cmd/menucmds.rs
2026-11-16 06:35:17 +01:00
FredApps 48d4afe4ec svg: SVG import decodes its images through craft-image-codecs
The decoding File › Open, Place and the renderer share moves to
vectorcraft-doc (decode.rs: decode_image, decoded_layout), and SVG
import's images read through it: the size from the header against the
allowance first, then the pixels as stored with the profile the file
embeds (a TIFF's still read by the TIFF reader).

decoded_pixels_are_those_the_image_crate_read compares PNG, GIF, WebP,
TIFF and BMP at each depth the image crate writes with its pixels, and
JPEG within two steps.
2026-11-16 06:06:34 +01:00
BFlat c1a2186976 Merge pull request #7966 from dotCooCoo/feat/graph-filled-line-width
Graph Type: Draw Filled Lines takes a Line Width
2026-11-16 11:38:16 +07:00
BFlat a358793ef1 Merge pull request #8023 from ruchirguitar/feat/1636-key-anchor-align
feat(tools): key anchor point alignment (#1636)
2026-11-16 11:37:51 +07:00
dotCooCoo bbefef0d65 Merge main into feat/graph-filled-line-width 2026-11-15 18:36:02 -08:00
BFlat 4512fab69b Merge pull request #7412 from dotCooCoo/fix/graph-axes-group-edits-kept
Graphs: Appearance edits given the Axes or Legend group are kept
2026-11-16 09:32:35 +07:00
BFlat b5451a0cc0 Merge pull request #7584 from dotCooCoo/fix/ai-save-clip-object-wrap
.ai save: a clipping object written cut keeps its text wrap options
2026-11-16 09:32:27 +07:00
BFlat 783f09d3b2 Merge pull request #8004 from dotCooCoo/fix/hit-test-follows-geometry-effects
Selection: clicks and marquees follow an object's own geometry effects
2026-11-16 09:31:55 +07:00
BFlat 5cb5a1895c Merge pull request #7869 from dotCooCoo/feat/kurikaeshi-moji-shori
Paragraph: Kurikaeshi Moji Shori draws a repeat mark that starts a line as the character it repeats
2026-11-16 08:12:54 +07:00
FredApps d2b8ebfd95 Merge origin/main into feat/cutover-remaining-codecs 2026-11-16 01:57:11 +01:00
FredApps 273dd79442 refactor(doc): read Group 3 TIFF rows through craft-stream-codecs
group3_tiff_rgba decodes each strip or tile with
craft_stream_codecs::decode_ccitt_raw instead of hayro-ccitt; the error
messages stay as they were. vectorcraft-engine's group3_reference test
keeps the hayro-ccitt reader as the reference: over 190 Group 3 TIFFs and
5,500 cut or edited copies the pixels and refusals match, except that a
strip or tile wider than MAX_CCITT_COLUMNS (2^20) is refused as an
overflow where hayro-ccitt ran out of data. Needs craft-libs#1772.
2026-11-16 01:56:14 +01:00
FredApps 58174c6642 refactor(doc): read CMYK JPEG inks and headers through craft-image-codecs
The CMYK reader's JPEG side (inks, component count, size, ICC profile)
uses craft_image_codecs::jpeg_inks instead of zune-jpeg, which stays only
as the dev-dependency the comparison test reads with: inks, sizes,
component counts and profiles match it over CMYK, YCCK, RGB and gray
JPEGs, whole and cut off. Frames zune-jpeg panicked on read as no inks.
Needs craft-libs#1779.
2026-11-16 01:13:46 +01:00
dotCooCoo 31fdb815d2 Merge main into fix/ai-save-clip-object-wrap 2026-11-15 16:06:03 -08:00
BFlat 87b936d80a Merge pull request #7970 from dotCooCoo/feat/ai-save-wrapped-area-type-live
.ai save: area type wrapped by plain paths, compound paths or groups stays type
2026-11-16 06:55:50 +07:00
BFlat 47dd56afbb Merge pull request #7962 from dotCooCoo/feat/symbol-align-to-pixel-grid
Symbols: Symbol Options › Align to Pixel Grid keeps a symbol's instances on the pixel grid
2026-11-16 06:55:41 +07:00
dotCooCoo 963c06620e Selection: clicks and marquees follow an object's own geometry effects
A click or a marquee with the selection tools now finds a path or compound
path where its live geometry effects draw it, the copies a Transform effect
makes included, and not where its own geometry no longer paints.

- The engine registers its Use Preview Bounds evaluator with
  `vectorcraft_doc::hit::set_drawn_art`. Hit testing keeps the evaluated art
  per object, evaluates it again when the object, the document's symbols,
  patterns, swatches or live inputs change, and widens each object's cull box
  by the art its effects draw.
- Groups and layers with geometry effects or fills and strokes of their own
  are hit through their evaluated art. Clicks, Select Behind, the locked
  objects under the pointer and marquees map the art back to the members it
  is drawn from, at the depth each tool selects, and Direct Selection takes a
  group whose own paint the art draws.
- Clipping paths keep their own geometry, except that a clip group's own
  effect moves where its mask outline is taken. An isolated clip group's
  members are marqueed by their own geometry, as clicks take them. A clip
  group whose evaluated art holds only its clipping path is tested member by
  member.
- Outline view uses the plain paths, and a layer with Preview off is clicked
  in outline. Intertwine groups keep their woven hit order.

Docs: docs/target-app-parity.md.
2026-11-15 15:50:59 -08:00
dotCooCoo 6c5229c851 Merge main into feat/kurikaeshi-moji-shori 2026-11-15 13:43:06 -08:00
dotCooCoo 886c7bef8c Merge main into fix/graph-axes-group-edits-kept 2026-11-15 13:41:56 -08:00
FredApps 827667a321 refactor(codecs): read header sizes and write DIB PNGs with craft-image-codecs
header_size reads every format's header through craft-image-codecs
(probe_allocation_size: stored size with no limit; a GIF's logical
screen through probe_size), no longer through the image crate's
readers. Metafile DIBs are written as PNG by craft-image-codecs.
2026-11-15 22:34:00 +01:00
ruchirguitar 081e147f57 feat(tools): key anchor point alignment (#1636) 2026-11-16 03:02:45 +05:30
BFlat 910b79119b Merge pull request #7368 from dotCooCoo/fix/graph-design-art-paint
Graphs: paint, stroke and transparency commands leave a design's art in a series out
2026-11-16 04:30:58 +07:00
BFlat c12053dc55 Merge pull request #7936 from dotCooCoo/fix/tsume-vertical-type-and-blank-glyphs
Type: Tsume applies in vertical type and to color glyphs
2026-11-16 04:30:25 +07:00
BFlat c514c88286 Merge pull request #7881 from dotCooCoo/fix/select-behind-one-art-limit
Selection: Select Behind keeps one limit of symbol art when it falls back
2026-11-16 04:29:02 +07:00
dotCooCoo ec9c558456 .ai save: area type wrapped by plain paths, compound paths or groups stays type
Area type with wrap shapes was always written as outlines in the editing
data for other apps. It is now written as type when the reader works the
same wrap out again from the objects above it: each wrap object is a path
of one subpath, a compound path of visible members, or an unclipped group
of such objects, with no paint, or a solid fill, a plain solid stroke or
both, without effects, art style, opacity mask or clipping, with an
offset within -1000 to 1000 pt; the type's stored shapes match the ones
those objects give it; and the shapes of all area type stay within the
2,000,000 anchors the reader copies. Each frame of a thread is checked on
its own. When art is left out at the object limit, such type is written
as outlines again. Other wrapped area type stays outlines.

The reader recomputes the wrap with resolve_wrap after reading
(resolve_text_wrap in crates/eps/src/import/native/build.rs) and reads the
options with text_wrap in crates/eps/src/import/ai/read/document.rs; the
round-trip tests check the reopened characters, frame, wrap shapes and
wrap objects. resolve_wrap's layer walk is shared through a new
wrap_sources so the check follows the same traversal.
2026-11-15 12:56:22 -08:00
dotCooCoo 5412c911cf Graph Type: Draw Filled Lines takes a Line Width
Graph Type has a Line Width field next to Draw Filled Lines, and
`graph.setType` takes `lineWidth` in points (0.01 to 1000; 3 when the
graph sets none). Filled lines are drawn at that width, and the width is
kept through save and open. A graph stores a width only when it is not
3 pt, and a graph with a width of its own is written to .ai as its art.
`graph.setType` with options that leave the graph as it is records no
undo step.
2026-11-15 12:39:45 -08:00
dotCooCoo 3a84466917 Symbols: Symbol Options › Align to Pixel Grid keeps a symbol's instances on the pixel grid
symbol.new and symbol.options take alignToPixelGrid (off by default),
symbol.list rows report it, and the New Symbol and Symbol Options dialogs
show the checkbox. When it is on, the horizontal and vertical straight
segments of the paths in the symbol's art, opacity mask art included,
snap to whole points (half points for an odd centered stroke) at the
symbol's natural size, and its stroke weights become whole points. Each
instance placed at that size, reflected across one axis or not, moves to
whole points and goes back to them after every move. A scaled, rotated or
sheared instance, and an instance in another symbol's art, stays where it
is. In symbol editing mode the stored art and the editing layer snap
after each edit.

Duplicate Symbol, rename, copy and paste and symbol libraries keep the
setting, and Delete Symbol removes it.

Docs: docs/mcp.md, docs/ui-parity.md.
2026-11-15 12:25:35 -08:00
FredApps caa62aa79f Merge remote-tracking branch 'origin/main' into work7669 2026-11-15 21:06:46 +01:00
dotCooCoo ad275a9291 Merge main into feat/kurikaeshi-moji-shori 2026-11-15 11:59:36 -08:00
dotCooCoo 7ced0d5c9a Type: Tsume applies in vertical type and to color glyphs
Tsume no longer stops at horizontal type. In vertical type an upright
character loses its share of the blank space above and below its ink,
inside its cell down the column (the font's vertical metrics, else at
least one em, with the Proportional Metrics change), in point type and
on a path. A character lying on its side is measured along its own
width, and the characters of a tate-chu-yoko block close up across the
column while the block keeps its one em.

Tsume now measures what a glyph paints: its COLR or SVG art, else its
color bitmap, else its outline, so a color glyph is no longer measured
by the outline its art replaces.

Docs: docs/mcp.md, docs/target-app-parity.md, text.setRangeStyle and
text.setFormat params.
2026-11-15 10:56:09 -08:00
BFlat 39336f44d9 Merge pull request #7863 from dotCooCoo/feat/diacritic-position
Type: Adjust Horizontal and Vertical Diacritic Position move marks off their letters
2026-11-16 01:34:36 +07:00
BFlat ad03b850a5 Merge pull request #7851 from dotCooCoo/fix/intertwine-hit-walk-limit
Selection: an Intertwine group's members in symbol art count toward a click's object limit
2026-11-16 01:34:11 +07:00
dotCooCoo 1a78011eae Merge main into fix/graph-design-art-paint 2026-11-15 10:13:04 -08:00
FredApps 59ddf705b9 fix(codecs): read image sizes from headers for PNG, JPEG and TIFF again
craft_image_codecs::probe_size only reads WebP, EXR and the GIF/BMP/TGA family;
for PNG, JPEG and TIFF it returns Unsupported. The cutover used it for header
sizes, so DXF export left every PNG out (cad tests), plugin objects lost PNG
pixels, and EPS image-mask and SVG import fell back to decoding whole images to
learn their size. vectorcraft_doc::header_size reads PNG's IHDR and a JPEG's
frame through craft-image-codecs and other formats through the image crate's
header readers, as main does, without decoding pixels. The SVG filter's JPEG
size comes from jpeg_info instead of a full decode.
2026-11-15 18:35:21 +01:00
dotCooCoo 521f5dc6c8 Selection: Select Behind keeps one limit of symbol art when it falls back
Select Behind gave the general traversal a fresh limit of symbol art when
it fell back to it, for an envelope in Edit Contents or a root that is
not a layer. One Select Behind could then walk twice MAX_SYMBOL_NODES
objects of symbol art.

A root that is not a layer now sends Select Behind to the general
traversal before the first pass walks any art. For an envelope in Edit
Contents, the objects the first pass found stay first, and the general
traversal finds the rest with what is left of the limit.
2026-11-15 08:30:27 -08:00
dotCooCoo ec4a1ac25d PDF export: a set Don't Include Profiles removes image color profiles
When Profile inclusion is set to Don't Include Profiles (`profiles:
"none"`), gray, RGB and CMYK images are written in device color spaces
without their ICC profiles, and a JPEG that is kept as is loses its
APP2 ICC_PROFILE segments. PDF/A-2b, PDF/X-3 and PDF/X-4 keep tagging
their images.

Leaving the setting out keeps the earlier output. `profiles` now
serializes as null when not set, `"default"` clears a preset's value,
and Save PDF > Output lists Default first. Presets and stored settings
saved earlier hold `"profiles": "none"`, so exports from them now drop
image profiles.
2026-11-15 07:27:08 -08:00
dotCooCoo f9a2abad18 Paragraph: Kurikaeshi Moji Shori draws a line-start repeat mark as the character it repeats
Paragraph panel menu > Kurikaeshi Moji Shori (text.setFormat
{kurikaeshiMojiShori}) is a paragraph attribute, off by default, saved
only when on and carried by paragraph styles. On, a repeat mark (々, ゝ,
ゞ, ヽ, ヾ) that starts a line of point or area type is drawn as the
character it repeats, with the mark's width, and the text keeps the
mark. Threaded type looks back into the frames before when a paragraph
continues. Live SVG text writes the drawn character and places the
text after it.
2026-11-15 07:02:27 -08:00
dotCooCoo 74bf5c2618 Selection: an Intertwine group's members in symbol art count toward a click's object limit
A click walks a symbol instance's art within one limit of objects, but
the members of an Intertwine group in that art, and the objects of groups
nested deeper than the part path depth, were tested without taking from
it. Each object hit_any visits in placed symbol art now takes one object
from the limit, and testing stops once the limit is used up.
2026-11-15 06:36:16 -08:00
dotCooCoo f90ac94876 Merge main into feat/diacritic-position 2026-11-15 06:18:24 -08:00
dotCooCoo 3d85f7d617 Merge main into fix/graph-axes-group-edits-kept 2026-11-15 06:09:38 -08:00
BFlat e06958143d Merge pull request #7825 from dotCooCoo/fix/nested-symbol-box-is-not-a-hit
Selection: a nested symbol instance's box past the outer box is not a hit
2026-11-15 20:45:25 +07:00
BFlat ea3f81d9c3 Merge pull request #7518 from Taha-Mahmoodi/feat/indic-composers
feat(text): Middle Eastern & South Asian and Standard composers per paragraph (#4935)
2026-11-15 20:45:02 +07:00
BFlat 8138a6e973 Merge pull request #7814 from dotCooCoo/feat/editing-one-anchor-copies-the-whole-anchor-list
Paths: editing one anchor of a long path keeps one chunk of anchors for undo
2026-11-15 17:31:01 +07:00
dotCooCoo 20743f4a94 Selection: a nested symbol instance's box past the outer box is not a hit
A click or marquee outside a symbol instance's box walks the instance's
art. An instance nested in that art was hit or touched anywhere in its
own box, so empty space inside the nested box, where a moved clipping
path reaches past the outer box, selected the outer instance. In that
walk a nested instance now counts only where its own art is, by the
same rule at every level. Inside the outer box nothing changes.
2026-11-15 02:01:56 -08:00
dotCooCoo 9c377b5619 Selection: one limit on the symbol art a click or marquee walks
A click or marquee outside a symbol instance's box walks the instance's
placed art, and an instance nested in that art walked its own art with
no shared limit, so deeply nested or widely repeated instances could
make one click walk far more objects than the canvas draws.

Clicks, Select Behind, the locked-object and hidden-selection lookups,
Direct Selection's part lookup and marquees now share one limit of
MAX_SYMBOL_NODES objects across every level of nested art. Once it is
used up, an instance is no longer hit or touched outside its box;
inside its box it still is. The art walk also checks the instance's
reach before starting.
2026-11-15 01:43:18 -08:00
Taha-Mahmoodi d4ac2782c0 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/target-app-parity.md
2026-11-15 14:12:59 +04:30