Commit Graph
928 Commits
Author SHA1 Message Date
.CooCoo d18dbd07ea Merge pull request #9178 from yoriswind/codex/7918-gradient-stop-color-mode-menu
Gradient stop editor: add the Color mode menu
2026-11-26 21:36:10 -08:00
yoriswind adb6cc916d Merge main86d into gradient color-mode menu 2026-11-26 14:48:03 -08:00
yoriswind f5e20a4619 Merge main while preserving color conversion notes 2026-11-26 14:40:36 -08:00
BFlat a431537d95 Merge pull request #8823 from dotCooCoo/feat/retype-installed-fonts
Retype: installed fonts that are not loaded yet are matched too
2026-11-27 05:09:16 +07:00
yoriswind 2dba20477b Integrate current main into gradient stop mode menu 2026-11-26 11:50:42 -08:00
yoriswind 6bd63e2bb4 Resolve the additive documentation conflicts with current main 2026-11-26 11:31:04 -08:00
yoriswind 98b6631c09 Merge main and port gradient stop Color mode menu to native controls 2026-11-26 11:22:18 -08:00
yoriswind df45c7a63e Integrate upstream documentation while preserving color conversion coverage 2026-11-26 08:13:29 -08:00
FredApps cd8fe8ed6c Merge remote-tracking branch 'origin/main' into pr-8983
# Conflicts:
#	docs/gaps.md
#	docs/target-app-parity.md
2026-11-26 22:58:34 +07:00
yoriswind 4ee5eb3594 Merge current main preserving both documentation histories 2026-11-26 07:18:36 -08:00
yoriswind cc69675d6e Merge current main while retaining indexed global-swatch conversion 2026-11-26 07:17:00 -08:00
FredApps e952a8e3b2 Merge remote-tracking branch 'origin/main' into pr-8983
# Conflicts:
#	docs/gaps.md
#	docs/target-app-parity.md
2026-11-26 21:53:07 +07:00
FredApps 16e36421aa Merge remote-tracking branch 'origin/main' into pr-8845
# Conflicts:
#	docs/gaps.md
2026-11-26 21:35:36 +07:00
FredApps 89e99d62e2 Merge main into OpenType feature-row menu (docs/gaps.md: keep main's Variables and G3 entries) 2026-11-26 20:57:07 +07:00
FredApps 4400a904ff Merge main into History row context menus (docs: keep both evidence entries and change rows) 2026-11-26 20:55:09 +07:00
FredApps da84b35ed9 Merge branch 'main' into feat/variables-row-context-menu 2026-11-26 13:18:53 +01:00
dotCooCoo 478ed51ace Merge main into feat/retype-installed-fonts 2026-11-25 18:40:00 -08:00
FredApps ae70a8f174 Resolve main documentation conflict in History row menu PR #8845 2026-11-26 03:27:16 +01:00
BFlat 050f7cf407 Merge pull request #9019 from dotCooCoo/feat/scripts-api-d1a-app-documents
Scripts: app gives scripts the open documents, their selection and page items
2026-11-26 08:50:54 +07:00
ruchirguitar 210a40efdb Merge main and preserve both parity revision entries 2026-11-26 05:46:13 +05:30
ruchirguitar c766f2f450 History panel: add snapshot-safe row context menus and keyboard access 2026-11-26 04:54:14 +05:30
dotCooCoo bf782369fc Merge main into feat/retype-installed-fonts 2026-11-25 15:23:05 -08:00
dotCooCoo c3645d265d Merge main into feat/plugin-api-importers-place 2026-11-25 14:26:01 -08:00
dotCooCoo 948ebd6adb Merge main into feat/scripts-api-d1a-app-documents 2026-11-25 10:21:51 -08:00
dotCooCoo 388e1f29ef Merge main into feat/plugin-api-importers-place 2026-11-25 09:46:45 -08:00
fe1b80e0aa Add a context menu on OpenType feature rows.
A right-click turns one feature on or off, or resets them, through the same undo step as the checkbox and the panel menu.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Codex <codex@users.noreply.github.com>
2026-11-25 22:35:04 +05:30
dotCooCoo f49734f5ec Docs: SVG round trips keep mm, cm, in and pc; other units keep their printed size 2026-11-25 08:57:54 -08:00
dotCooCoo 2ffccc3e90 SVG export: feet, yards, meters, Q and Ha documents keep their printed size
Since #8610, a document in millimeters, centimeters, inches or picas is
exported with that unit on the root width and height. A document in
feet, feet and inches, yards, meters, Q or Ha still got unitless point
values, which SVG readers take as CSS pixels at 96 per inch, so the art
opened at 75% of its size. These units have no SVG unit identifier, so
the export now writes feet and yards in inches, meters in centimeters,
and Q and Ha in millimeters. The viewBox stays in points, and
VectorCraft reads the file back at the same size.
2026-11-25 06:07:34 -08:00
ruchirguitar 6ebb7bad44 Merge main and reconcile Variables feature status history 2026-11-25 16:38:16 +05:30
BFlat 0f7580c97e Merge pull request #8830 from Hassan1305/docs-8312-3d-status
Docs: list first-light 3D shadows and graphics as built (#8312)
2026-11-25 17:45:40 +07:00
dotCooCoo 1f1c8ccf8c Merge main into feat/scripts-api-d1a-app-documents 2026-11-24 20:48:43 -08:00
ruchirguitar e78f196dcc Merge main and port Variables row menus to Craft UI 2026-11-25 02:48:51 +05:30
ruchirguitar 6343a7753a Merge origin/main into cursor/doc-info-selection-only 2026-11-24 23:47:16 +05:30
ruchirguitarandClaude Opus 5.5 8f59dd6e76 Document Info: Selection Only's empty state speaks of artwork only.
With Selection Only on, the panel painted "(No selection)" above every
category whenever no objects were selected, even when the Document
category listed artboards selected with the Artboard tool. The message now
reads "(No artwork selected)", and a panel regression checks that a
selected artboard still shows with Selection Only on and no artwork
selected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 00:10:46 +05:30
yoriswind f7a8565ca4 Merge current main for the gradient stop color-mode menu 2026-11-23 09:34:00 -08:00
dotCooCoo 6e713caf33 Merge main into feat/retype-installed-fonts 2026-11-22 23:39:38 -08:00
5af36bae87 Fix #4568: PDF import keeps embedded fonts for text whose family isn't installed (#4569)
* PDF import: keep embedded fonts for text whose family isn't installed

Glyphs drawn in an embedded font whose family isn't available are gathered
during import and built into one small TrueType font per family and style,
kept with the document (font/ttf blob). Text objects record the fonts and a
hash of their text: layout and rendering draw them in the kept font until the
text is edited (undo restores it) or the family is installed. Lines are
spaced against the file's own widths with per-glyph placement (#3756).

* PDF import: satisfy crate layering constraints without format dev-dep

* FileFont: negate us_win_descent in i32 to prevent overflow on extreme negative descenders

* PDF import: a kept font carries the file font's licence flags, and the docs say what that means

Review of #4569: the fsType of the file's font is copied to the font built from its glyphs (a test pins it against Embedding), so exports honour it; the docs state the limits, that the file's font program is not parsed, and that a saved file carries third-party glyphs.

* PDF import: a glyph curve far outside any glyph is left out; docs say what the limits and the font program mean

CodeRabbit on #4569: coordinates beyond 1e6 font units are refused before the curve is subdivided. The docs say the 64-font limit is what draws one type object and that the file's font program is read only for its licence flags and metrics.

* PDF import: two programs of one font keep the stricter licence flags; the docs cite their sources

CodeRabbit on #4569: embedded programs of one family and style share one built font, which kept the first program's fsType; it now takes the stricter of the two, whichever came first. The docs entry cites the Acrobat Help pages and the OpenType fsType specification.

* fmt

* PDF import: embedded fonts are on by default, with an opt-out preference

Owner decision on #4568. Preferences > File Handling > Use fonts embedded in imported PDFs (pdfImportEmbeddedFonts, on by default) and the embeddedFonts param of document.open and file.place: off, a PDF's type in a font the machine lacks is set in the fallback font with the missing-font warning, as before. One test each for on and off, one for the preference reaching the options.

* fmt after merging main

* docs: restore the status lines damaged by merges (main's line plus this PR's note)

* PDF import: set embedded_fonts through a builder method (keeps read_opened under the complexity limit)

* PDF import: move the missing-font notes out of read_opened (complexity limit after the merge)

* #4569: isolate file-font resources and reclaim live faces (UNVERIFIED)

* Preserve carried-font ownership across placement and recovery

* Fix carried-font regression test dependencies and unwind probe

* Use explicit OS2 heights in owned-font reference regression

* Keep native font regression artwork inside document layers

* fix(engine): bind file fonts when reading document profiles

* test(engine): initialize file-font leases in new image fixtures

* test: complete file-font lease initialization in image fixtures

* docs: keep the #4568 entry in the file-format parity status line

* fix(pdf): keep a line with another glyph for the same character as outlines (review)

A font kept with the document has one glyph per character. A glyph of the file's font that
differs from the one already kept for its character (a stylistic alternate that maps to the same
Unicode scalar) marks its line, which is imported as outlines so each glyph draws as the file
does.

* docs: resolve the leftover status-line conflict

* Placed document blob: give the new ImageBlob literal its file_font

* Test: a PDF's two glyphs for one character survive a native save and reopen as the file draws them

* Test: move the native save and reopen half of the two-glyphs regression to the engine (layers: no format dev-dep in pdf)

* Fix embedded-font preference help and English fallback checks

* Format embedded-font preference help with the workspace edition

---------

Co-authored-by: FredApps <FredApps@users.noreply.github.com>
Co-authored-by: skylartaylor <hi@skylar.cc>
2026-11-22 18:18:18 -06:00
dotCooCoo c664ce630b Plug-ins: importers whose manifest sets place also read files for File › Place
An importer plug-in with "place": true in its manifest now reads its files
for File › Place as well as File › Open. file.place, file.place.info and
file.place.queue take importer and params; without importer, a file no
built-in format reads goes to the first placing importer by id that lists
its extension. The importer is given at most 128 MiB of the file (a larger
file is refused from its size before it is read) with _context.mode
"place", and its objects, guides left out, become one group named after
the file, as one undo step, embedded. A decline, invalid output, a trap or
Cancel places nothing.

- The Place dialog lists placing importers' extensions under "All
  placeable files" and in a filter named after each importer.
- On the web, a placing importer's file dropped on the canvas is placed.
- A file placed with a named importer skips the text, PDF, DXF and PSD
  import options.
- document.formats and plugin.list mark placing importers with place:
  true; place on any other kind is refused at install.

Docs: docs/plugins.md, docs/mcp.md, docs/gaps.md, docs/target-app-parity.md.
2026-11-22 07:20:07 -08:00
dotCooCoo f22565d597 Merge main into feat/retype-installed-fonts 2026-11-21 08:55:26 -08:00
dotCooCoo f70d2ee7e6 Scripts: duplicate, selection and wrapper fixes for the object model
- duplicate() runs Edit > Duplicate, the place and the selection
  restore under one savepoint, so a refused place leaves the documents,
  the selection and the undo history as they were. It reads the copy's
  id from the command's own result, so ids above 2^53 return the copy.
  A path inside a compound path throws an error instead of copying the
  whole compound path.
- An edit restores a mixed selection (direct-selected anchors and whole
  objects) in its original order with one select.anchorsMany.
- Assigning the selection clears a Layers panel target.
- A call on an inactive document switches back even when the selection
  restore fails.
- documents.add with a grid by column passes the row count to file.new,
  which takes a new artboardLayout.rows key: 5 artboards in 4 rows give
  columns of 4 and 1. A preset keeps the rows until columns without
  rows, or another layout, is given, and New Document drops them when
  Columns or the layout changes.
- A held page item stays the same object when its class changes in the
  same family (a placed image that is embedded becomes a RasterItem).
- A waiting class member's answer is read as a class instance, and a
  class constructor called with new cannot wait.

Docs: docs/mcp.md (DocumentPreset, duplicate, file.new rows), docs/gaps.md
(G6).
2026-11-21 08:43:10 -08:00
RuchirandCursor bb66d9f5db Document Info counts the selection when Selection Only is on.
The panel menu stores the toggle, and an empty selection says that nothing is selected.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-21 13:40:49 +05:30
BFlat f558297963 Merge pull request #8681 from dotCooCoo/feat/retype-near-matches
Retype: near matches within a tolerance, and words outlined as one compound path
2026-11-21 10:38:18 +07:00
ruchirguitar c344a9a9d2 docs: reconcile Variables panel context-menu evidence 2026-11-21 08:24:37 +05:30
dotCooCoo 7048d47a0a Merge main into feat/retype-installed-fonts 2026-11-20 14:36:46 -08:00
ruchirguitar 6bca6cb51e Variables panel: add row context menu 2026-11-21 00:18:56 +05:30
HassanKhan b31dd2fea2 Merge remote-tracking branch 'origin/main' into docs-8312-3d-status
# Conflicts:
#	docs/gaps.md
2026-11-20 22:36:30 +05:00
bflatastic baa6e46658 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/gaps.md
#	docs/roadmap.md
#	docs/target-app-parity.md
#	docs/ui-parity.md
2026-11-21 00:18:52 +07:00
HassanKhan fece2bdfe4 Merge remote-tracking branch 'origin/main' into docs-8312-3d-status
# Conflicts:
#	docs/gaps.md
2026-11-20 22:15:50 +05:00
HassanKhan 57172c8a58 Merge remote-tracking branch 'origin/main' into docs-8312-3d-status
# Conflicts:
#	docs/gaps.md
2026-11-20 22:06:00 +05:00
bflatastic cc0f98ed6a Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/gaps.md
#	docs/roadmap.md
#	docs/target-app-parity.md
#	docs/ui-parity.md
2026-11-20 23:46:03 +07:00