Commit Graph
1631 Commits
Author SHA1 Message Date
.CooCoo f4c65a2f0f Merge pull request #9053 from dotCooCoo/feat/scripts-api-d5-swatches-symbols
Scripts: documents give scripts their swatches, spots, symbols, graphic styles and brushes
2026-12-04 18:08:05 -08:00
.CooCoo 85bd77b528 Merge pull request #9315 from dotCooCoo/feat/scripts-export-for-screens
Scripts: Document.exportForScreens writes artboards, assets or the document into a folder
2026-12-04 17:59:22 -08:00
.CooCoo 32513255bd Merge pull request #10860 from dotCooCoo/fix/placed-dimension-composite-font
Place: a placed dimension keeps the composite font its label was renamed to
2026-12-04 17:59:07 -08:00
.CooCoo 3368ac519c Merge pull request #10871 from dotCooCoo/fix/cad-clipboard-paste
Paste: read CAD apps' metafiles on Windows and copied DXF, DWG and HP-GL files
2026-12-04 16:29:31 -08:00
dotCooCoo 96e66b5e8d Merge main into feat/scripts-api-d5-swatches-symbols 2026-12-04 16:27:43 -08:00
dotCooCoo b8e11fb2c7 Place: a placed dimension reuses an equal composite font of the same name
When the document defined a composite font with the same name and the same
definition as one a placed dimension used, but spelled in more than the 256
bytes a dimension's family keeps (a case-insensitive match such as Kelvin
signs for k), placement copied the incoming font under a new name instead of
reusing the document's. The byte limit now applies only to an alias under
another name; a same-name reuse keeps the dimension's own spelling.

Merging main had also left a second, unguarded rename of a dimension's
family next to the guarded one, so a renamed family that was too long or
only differed in case was still written. The unguarded rename is removed.

docs/mcp.md describes how file.place renames a placed dimension's family.
2026-12-04 16:00:35 -08:00
.CooCoo d802cf3cd5 Merge pull request #9259 from dotCooCoo/feat/scripts-api-layer-path-items
Scripts: layers and groups give their own path items
2026-12-04 15:29:12 -08:00
dotCooCoo 7dc78396e0 Merge main into feat/scripts-api-d5-swatches-symbols 2026-12-04 15:11:24 -08:00
dotCooCoo 2b5ca4f2ad Merge main into fix/placed-dimension-composite-font 2026-12-04 15:04:24 -08:00
dotCooCoo 63bc8cbf77 Merge main into fix/cad-clipboard-paste 2026-12-04 14:33:04 -08:00
dotCooCoo 889327e85d Paste: read CAD apps' metafiles on Windows and copied DXF, DWG and HP-GL files
Paste on Windows never read the enhanced metafile that CAD and office
apps put on the clipboard as vector art: windows_formats had no entry for
EMF, so the app pasted their bitmap instead, or nothing. The Windows
clipboard holds an EMF as a handle (CF_ENHMETAFILE, which Windows also
makes from CF_METAFILEPICT), so the app now copies its records with
GetEnhMetaFileBits, at most 64 MiB, and pastes them through
clipboard.importEmf.

A .dxf, .dwg or HP-GL plot file copied in a file manager did not paste,
because file_flavour had no flavour for them, though Open and Place read
all three. They now paste as image/vnd.dxf, image/vnd.dwg and
application/vnd.hp-hpgl through the new command clipboard.importCad
{dataBase64, format: dxf|dwg|hpgl, center?}, read as document.open reads
the file. A file pastes this way only when its bytes are the format, so
a chart script named .plt is not taken for a plot.

Fixes #10819.
2026-12-04 14:32:59 -08:00
.CooCoo 15d90d3f53 Merge pull request #10852 from dotCooCoo/fix/placed-undefined-family-composite
Place: placed type keeps its font when the document has a composite font of its family's name
2026-12-04 14:20:12 -08:00
dotCooCoo 88bd224387 Place: a composite alias skips families named by dimensions in brush art
Planning an alias read dimension option families only from document art.
A dimension inside an art brush's art was reached for graph label families
but not for its own options, so an incoming composite font could take the
family that dimension names, and the dimension's label would switch to the
incoming font on redraw. The brush walk now notes dimension options too.
2026-12-04 14:03:09 -08:00
dotCooCoo b6a5cd2a36 Place: a placed dimension keeps the composite font its label was renamed to
When placed editable art uses a composite font whose name the document
already gives a different font, the placed type is renamed to a free name
such as "Name 2". A dimension's label was renamed, but the dimension's own
options kept the old name, so the next redraw of the label (moving a point,
a refresh) switched it to the document's other font.

- The adoption walker renames a dimension's font family with its label,
  keeping a spelling that already names the same font.
- Planning reserves the families destination dimensions name.
- A generated alias stays within the 256 bytes a dimension's family keeps,
  and a font that an incoming dimension uses reuses only an equivalent
  font whose name fits.
2026-12-04 13:10:47 -08:00
dotCooCoo 49186cb426 Merge main into feat/scripts-api-layer-path-items 2026-12-04 12:28:26 -08:00
.CooCoo 4db38b885e Merge pull request #9300 from dotCooCoo/feat/scripts-show-color-picker
Scripts: app.showColorPicker asks for a color
2026-12-04 11:42:06 -08:00
dotCooCoo 17dd5c2c2b Place: placed type keeps its font when the document has a composite font of its family's name
When placed editable art names a font family that its file does not define
as a composite font, and the document defines a composite font of that
name, the placed type was measured in the file's font but drew in the
document's composite font after placement. The placed type now gets a free
name such as "Name 2", so it keeps the font it was laid out in. Placing the
same art again reuses that name.

- The renaming also covers the fonts a file carries for its type and the
  label font of a live dimension, so they stay paired with the renamed runs.
- An installed family is not renamed.
- The installed-name check applies only to the composite fonts a
  placement adds, so a definition already in the document does not stop it.
- docs/mcp.md describes the renaming under file.place.
2026-12-04 11:31:32 -08:00
dotCooCoo 516b7eb321 Merge main into feat/scripts-api-d5-swatches-symbols 2026-12-04 07:56:23 -08:00
dotCooCoo d5a54ccffa Merge main into feat/scripts-api-layer-path-items 2026-12-04 02:57:25 -08:00
FredApps 6f6a6d4e20 Merge branch 'main' into codex/10008-native-composite-adoption 2026-12-04 10:31:44 +01:00
dotCooCoo 232b9e1597 Merge main into feat/scripts-show-color-picker 2026-12-04 01:13:39 -08:00
dotCooCoo 69afdf9194 Merge main into feat/scripts-api-layer-path-items 2026-12-04 01:01:08 -08:00
dotCooCoo 472d7f8e69 Direct Selection: picked handles stay picked after a Cmd/Ctrl+Shift drag
With two direction handles picked, a Cmd/Ctrl+Shift press on one of them
drags that handle alone with its opposite handle mirrored and its angle
constrained. Shift kept the press from counting as a press on one of
several picked handles, so the press did not record the picks, and its
release after a drag, or Escape during it, left only the pressed handle.

The press now records the picks for any mirroring press on one of several
picked handles, with or without Shift. Shift still keeps a drag from
moving every picked handle, and a Shift-click still adds or removes the
pressed handle.
2026-12-03 22:29:17 -08:00
dotCooCoo 74b2ffdb82 Direct Selection: picked handles stay picked after a Cmd/Ctrl drag
A Cmd/Ctrl press on one of several picked direction handles drags that
handle alone so its opposite handle mirrors. The press cleared the picked
handles, and neither the release nor Escape restored them, so after the
drag only the pressed handle could be picked again.

The press now records that it is such a mirroring press. Its release
after a drag, and Escape during the drag, restore the handles that were
picked when the press began. A drag without Cmd/Ctrl still moves every
picked handle, and a click still picks the pressed handle alone.
2026-12-03 21:26:45 -08:00
dotCooCoo b44dbefe12 Direct Selection: a Cmd/Ctrl drag of one of several picked handles mirrors
With two or more direction handles picked, a press without Shift on one
of them started a drag of all the picked handles (path.moveHandles),
which never mirrors. A Cmd/Ctrl press that Direct Selection now keeps on
a shown handle therefore translated every picked handle instead of
mirroring the opposite one.

press_handle now drags the pressed handle alone when the press mirrors
(Cmd/Ctrl without Alt, and not the press that lent the tool from another
tool), so the drag mirrors its opposite handle and the other picked
handles stay where they are. A drag without Cmd/Ctrl still moves every
picked handle.
2026-12-03 12:59:09 -08:00
dotCooCoo c4856b8830 Merge main into fix/direct-select-ctrl-handle-mirror 2026-12-03 11:33:13 -08:00
dotCooCoo 48ef8740e9 Direct Selection: Ctrl held before pressing a handle mirrors the opposite handle
With Direct Selection chosen, Cmd/Ctrl lends the Selection tool for the
press. That loan also took presses on the end of a shown direction handle,
so a Ctrl-drag on a handle moved the whole object (and anything selected
with it), or drew a marquee where no object was under the handle. Only Ctrl
added after the drag began mirrored the opposite handle.

A new Tool::keeps_cmd_press lets the active tool keep a Cmd/Ctrl press.
Direct Selection keeps one without Alt on the end of a shown handle of a
path, of type on a path, or of a selected blend spine anchor, so the drag
mirrors the opposite handle, with Shift constraining it. The session's
lent_tool_at asks it, so the press, the cursor and the status bar agree. A
press elsewhere, on a handle of the bounding box the lent Selection tool
shows, or with Cmd+Alt (Group Selection) is still lent as before.

docs/gaps.md and docs/ui-parity.md describe the press.
2026-12-03 11:33:13 -08:00
dotCooCoo 644a4e6b8c Merge main into feat/scripts-export-for-screens 2026-12-03 11:15:24 -08:00
dotCooCoo 8e23837867 Merge main into feat/scripts-api-layer-path-items 2026-12-03 11:15:06 -08:00
dotCooCoo 78a3861135 Merge main into feat/scripts-api-d5-swatches-symbols 2026-12-03 11:13:42 -08:00
dotCooCoo 6100517eab Merge main into feat/scripts-show-color-picker 2026-12-03 11:12:25 -08:00
dotCooCoo c4a737f255 Merge main into feat/scripts-scriptui-palettes 2026-12-03 09:29:28 -08:00
.CooCoo 44c6916bde Merge pull request #10077 from dotCooCoo/feat/artboard-flood-fill
Document Tools: Flood Fill Artboards adds an artboard-sized rectangle on its own layer
2026-12-03 07:17:43 -08:00
.CooCoo 79fdfedfb5 Merge pull request #9075 from dotCooCoo/feat/scripts-api-d8c-rasterize-capture
Scripts: Document.rasterize and Document.imageCapture with their option classes
2026-12-03 07:14:28 -08:00
dotCooCoo 7e8c6bae5c Merge main into feat/scripts-api-layer-path-items 2026-12-03 02:24:07 -08:00
dotCooCoo f5f984d7a9 Merge main into feat/scripts-api-d5-swatches-symbols 2026-12-03 01:55:44 -08:00
dotCooCoo aeb11d6809 Merge main into feat/scripts-api-layer-path-items 2026-12-02 23:30:42 -08:00
dotCooCoo e62b425aa9 Merge main into feat/scripts-api-d5-swatches-symbols 2026-12-02 21:51:58 -08:00
dotCooCoo 72e99d1c3b Merge main into feat/scripts-layer-text-frames 2026-12-02 21:17:26 -08:00
dotCooCoo 8696df27f6 Merge main into feat/scripts-show-color-picker 2026-12-02 21:09:03 -08:00
dotCooCoo f46d591204 Merge main into feat/scripts-api-d8c-rasterize-capture 2026-12-02 20:30:16 -08:00
dotCooCoo 192c015f09 Merge main into feat/scripts-api-d5-swatches-symbols 2026-12-02 18:27:53 -08:00
dotCooCoo 4010eb5be2 Merge main into feat/scripts-api-layer-path-items 2026-12-02 18:24:31 -08:00
dotCooCoo c1470adfc6 Merge main into feat/scripts-text-paint 2026-12-02 18:14:59 -08:00
dotCooCoo e4e6dd517d Merge main into feat/scripts-layer-text-frames 2026-12-02 17:49:12 -08:00
dotCooCoo 2df0b911e8 Merge main into feat/scripts-show-color-picker 2026-12-02 17:26:02 -08:00
dotCooCoo a7c7dae179 Merge main into feat/scripts-api-d8c-rasterize-capture 2026-12-02 17:25:26 -08:00
dotCooCoo dd62352a8a Merge main into feat/scripts-export-for-screens 2026-12-02 17:20:50 -08:00
dotCooCoo d8caffae61 Merge main into feat/scripts-scriptui-palettes 2026-12-02 17:15:19 -08:00
dotCooCoo 0a2d25e334 Merge main into feat/scripts-export-for-screens 2026-12-02 17:00:47 -08:00