Commit Graph
9359 Commits
Author SHA1 Message Date
dotCooCoo 9dcc6913d8 Metafile import: text in the opaque background mode fills its character cells
A metafile playback starts in the opaque background mode with a white
background color, and text drawn in that mode fills its character cells
with the background color before the glyphs. EMF and WMF import now adds
one filled rectangle of the background color behind each line of such
text, before the type, from the font's OS/2 usWinAscent above the
baseline to its usWinDescent below it, as far as the line's advances
reach (NULs and negative advances included). Files that never set the
background mode now import with a background behind their text.

Top and bottom aligned text now has the top or the bottom of that cell at
the reference point instead of 0.8 and 0.2 of the em. A single line
without advances is aligned as long as its glyphs' advances, trailing
spaces included. NULs after a line break move the start of that line,
and underlined or struck through blanks draw their bars.

Face::win_ascent_descent gives the OS/2 usWinAscent and usWinDescent
separately, at a variable font's instance.
2026-11-19 05:28:52 -08:00
dotCooCoo 71086edeed Merge main into feat/swatches-add-selected-colors 2026-11-19 05:25:36 -08:00
dotCooCoo 8c97874ad0 Merge main into feat/vector-packs-library 2026-11-19 05:23:10 -08:00
dotCooCoo ff4076caaa Merge main into feat/prefs-descriptions-devices 2026-11-19 05:21:47 -08:00
dotCooCoo 056059d8cb Merge main into feat/direct-select-mirror-handles 2026-11-19 05:18:05 -08:00
ruchirguitar 55c95f62cb Merge origin/main into feat/brushes-item-context-menu 2026-11-19 18:46:37 +05:30
dotCooCoo 51ab54ac2b Merge main into feat/decorative-brush-library 2026-11-19 05:15:47 -08:00
dotCooCoo 5d458d3142 Merge main into feat/arc-by-points 2026-11-19 05:12:59 -08:00
dotCooCoo f9b7c9482e Merge main into feat/circle-tool-options 2026-11-19 05:09:36 -08:00
dotCooCoo 2843ee7fd0 Keyboard Shortcuts: Color Picker can be given a key
Edit › Keyboard Shortcuts did not list Color Picker… (`ui.colorPicker`),
so no key could be assigned to it, and no menu item runs it. It is now
listed, with no default key. A key assigned to it runs the command with
no params, which opens the picker for the proxy in front: the fill, or
the stroke while Stroke is in front, with or without a selection and
with no document open.

Docs: docs/mcp.md, docs/ui-parity.md.
2026-11-19 05:07:02 -08:00
dotCooCoo 3e0963814f Merge main into feat/engraving-brush-library 2026-11-19 05:06:49 -08:00
dotCooCoo e16d59661c Contextual Task Bar: Bar Actions names drop a colon and an ellipsis in any order
More Options › Bar Actions now leaves out a final colon and a final
ellipsis ("…" or "...") whichever comes last, with or without a space
between them, so "Name...:" and "Name: ..." are listed as "Name".

window.taskBar.actions treats a `visible` of null as omitted again, so
the action toggles, as docs/mcp.md says for every command's params and
as window.control.options does. Its params text and docs/mcp.md entry
now say that null toggles, and a test covers it.
2026-11-19 05:06:18 -08:00
dotCooCoo 63d87b6d3e Merge main into feat/swatches-alt-drag-pattern-replace 2026-11-19 05:05:44 -08:00
dotCooCoo dafade6173 Merge main into feat/proof-setup-customize
# Conflicts:
#	crates/ui-egui/src/dialogs.rs
#	crates/ui-egui/src/i18n/tests.rs
2026-11-19 05:04:12 -08:00
dotCooCoo 16de36545c Retype: retype.find's params text says a null more runs a new search
retype.find reads `more` with opt_bool, which treats null as omitted, so
`{more: null}` runs a new search. The params text said any value other
than true or false is an error. The params text, its MCP mirror and
docs/mcp.md now say that false, omitted or null runs a new search and
that a value other than true, false or null is an error. A test checks
that a null more lists the first ten again.
2026-11-19 05:04:10 -08:00
dotCooCoo 50b039cd10 Merge main into feat/color-wheel-hsl-sliders 2026-11-19 05:03:21 -08:00
dotCooCoo 4e21ada68e Merge main into feat/prefs-descriptions-performance 2026-11-19 05:02:17 -08:00
dotCooCoo d48e652972 Merge main into feat/artistic-brush-library 2026-11-19 05:01:01 -08:00
dotCooCoo d5ab3f8654 Merge main into fix/live-paint-bucket-gradient-aspect 2026-11-19 05:00:35 -08:00
dotCooCoo 267db08d8a Merge main into fix/followup-8449 2026-11-19 05:00:00 -08:00
dotCooCoo 9fb331f75b Merge main into feat/recolor-edit-base-color-menus 2026-11-19 04:57:32 -08:00
dotCooCoo 0b6e670a8d Merge main into feat/edit-tracing-presets 2026-11-19 04:57:23 -08:00
dotCooCoo d26580f002 Merge main into feat/color-wheel-gamut 2026-11-19 04:54:44 -08:00
dotCooCoo 3fb77f58bb Merge main into feat/3d-custom-bevels 2026-11-19 04:54:39 -08:00
dotCooCoo d084e90cba Merge main into feat/dimension-stroke-arrowheads 2026-11-19 04:54:39 -08:00
dotCooCoo cb96dc123a Merge main into feat/3d-graphics-inflate 2026-11-19 04:53:50 -08:00
dotCooCoo 89c9b61c56 Merge main into fix/psd-knockout-layers-merge 2026-11-19 04:52:41 -08:00
dotCooCoo 3a8179fa00 Merge main into feat/palette-use-counts 2026-11-19 04:52:20 -08:00
dotCooCoo 173d72a867 Merge main into feat/distorted-image-commands 2026-11-19 04:49:23 -08:00
dotCooCoo 874d7bdd73 Merge main into feat/transform-rectangle-corner-type 2026-11-19 04:49:05 -08:00
dotCooCoo 5d8609e881 Merge main into feat/proof-setup-save-load
# Conflicts:
#	crates/ui-egui/src/dialogs.rs
#	crates/ui-egui/src/i18n/tests.rs
2026-11-19 04:47:38 -08:00
dotCooCoo adbf701268 Merge main into feat/palette-clear-counts 2026-11-19 04:45:02 -08:00
dotCooCoo 15fee3c824 Merge main into feat/control-bar-link-label-opens-links 2026-11-19 04:43:13 -08:00
dotCooCoo b0bebd324d Merge main into feat/transform-rect-ellipse-angle 2026-11-19 04:42:52 -08:00
yoriswind 943f28989a Merge pinned main preserving Image Trace sampler ownership 2026-11-19 04:34:33 -08:00
Sven Lafebre 40b2b36067 Merge remote-tracking branch 'origin/main' into fix/8188-ai-arrowheads
# Conflicts:
#	crates/engine/src/cmd/stroke.rs
2026-11-19 12:54:51 +01:00
BFlat 2bc41aeb86 Merge pull request #8685 from dotCooCoo/fix/live-paint-group-faces-edges
Live Paint: a fill given to a whole group paints its faces and a stroke paints its edges
2026-11-19 18:41:35 +07:00
Sven Lafebre 4c20c3e21f Merge remote-tracking branch 'origin/main' into fix/8188-ai-arrowheads
# Conflicts:
#	crates/engine/src/cmd/stroke.rs
#	crates/eps/src/import/ai/read/ops.rs
#	docs/file-format-parity.md
2026-11-19 12:34:27 +01:00
BFlat 9ea58e5c42 Merge pull request #8690 from dotCooCoo/feat/quick-pen
Pen: Quick Pen tool draws lines, continuous arcs and sharp-corner arcs
2026-11-19 17:53:08 +07:00
HassanKhan 40f1201f1e View: Trim View hides the guides and the grid while it is on (#8363)
Trim View only clipped the art to the artboards: ruler guides, paths
made into guides and the grid still drew across the pasteboard. Public
forum threads describe Trim View hiding them, with Show Guides and Show
Grid unavailable until it is off.

ViewFlags::guides_shown() and grid_shown() now say whether they draw,
and the canvas, the tiled panes, the art raster, hit testing and the
tools' snapping read them. Show/Hide Guides and Show/Hide Grid are
greyed out while Trim View is on (menu bar, canvas context menu,
Properties) and refuse to run; the stored choices are kept, so they
come back as they were. A selected guide path is deselected when Trim
View hides it, as Hide Guides does. The rulers stay.

Fixes #8363
2026-11-19 15:36:23 +05:00
dotCooCoo 6cb7b51076 Gradient: an aspect with no object to edit is an error, not a silent no-op
paint.editGradient with an aspect returned ok and changed nothing when it
edited no object: with the Live Paint Bucket active (its default gradient)
or with nothing paintable selected. The default gradient for new art is
fitted to each object it paints and keeps no aspect, so the aspect was
dropped.

- paint.editGradient now refuses an aspect when it edits no object, and
  leaves the default gradient as it was. Named or selected objects still
  take the aspect.
- The Gradient panel's Aspect Ratio field is dimmed in that case
  (Session::gradient_edit_has_objects).
- Params text and docs/mcp.md say so.
2026-11-19 02:30:52 -08:00
ruchirguitar e0b3f6ac5b Brushes panel: address review comments on deletion confirmation, selection, and assertions 2026-11-19 15:56:50 +05:30
dotCooCoo ddd1a961fb Live Paint: Swap leaves faces with freeform gradients as they are
Swap Fill and Stroke on a whole Live Paint group compared the faces'
fills without gradient placement, so faces with freeform gradients
counted as one shared fill and the edges took a freeform gradient
without its points. A freeform gradient on any face or edge now counts
as a paint the parts do not share, and the group keeps its paint.

- docs/mcp.md says that a face or edge given with its whole group follows
  the group's rule, and that Default Fill and Stroke replaces the parts'
  appearance also when the Default Graphic Style is redefined.
- The progress-doc line states the behavior as VectorCraft's own rule and
  lists all eight tests.
- Tests cover freeform faces in Swap, an edge given with its group, and
  Default Fill and Stroke with a redefined Default Graphic Style.
2026-11-19 02:10:41 -08:00
ruchirguitar 45afa9761a Merge origin/main into feat/brushes-item-context-menu 2026-11-19 15:27:26 +05:30
ruchirguitar b5ce3a88af Brushes panel: add item right-click context menu (Brush Options, Duplicate, Delete) 2026-11-19 15:14:34 +05:30
HassanKhan 14d66870e5 Merge remote-tracking branch 'upstream/main' into feat-8344-simplify-context
# Conflicts:
#	docs/ui-parity.md
2026-11-19 14:42:04 +05:00
dotCooCoo df614fb80c Pen: Quick Pen tool draws lines, continuous arcs and sharp-corner arcs
A new tool in the Pen tool's group, chosen with Alt+P (Option+P on
macOS), draws paths of straight lines and circular arcs, as the Quick
Pen help pages describe:
https://helpx.adobe.com/illustrator/web/add-and-edit-artwork/draw-and-edit-paths/draw-with-quick-pen-tool.html
https://helpx.adobe.com/illustrator/web/add-and-edit-artwork/draw-and-edit-paths/quick-pen-tool-keyboard-shortcuts.html

- A click sets the start point; each click, or a press dragged to where
  it is let go, adds a line, a continuous arc (it leaves the last point
  in the path's direction) or a sharp-corner arc, as the tool's action
  says. Each piece is one undo step.
- Alt (Option) pressed and let go on its own switches to the next
  action. C flips the last sharp-corner arc to the other side of its
  chord, and [ and ] make the arc size 15 degrees smaller or larger.
- A click on the first point closes the path, a click on an end of an
  open path continues it, and Escape or Enter ends it. An edit made to
  the path from outside the tool also ends it.
- path.quickPen {start | id, subpath?, keep?, pieces, closed?} draws
  the same path for agents and scripts. The action and arc size are
  kept with the preferences.

The 180 degree default arc size, its 15 degree steps, the side an arc
bulges to and Enter ending the path are VectorCraft's own rules.

Part of #2660 (reported by earlvanze). Not yet: the on-canvas toolbar,
dragging a path's ends to change its length, Ctrl+scroll for the arc
size, and editing and deleting with the tool.
2026-11-19 01:29:06 -08:00
dotCooCoo 42766fea24 Live Paint: a fill given to a whole group paints its faces and a stroke paints its edges
With a tool other than the Live Paint Bucket, a fill given to a whole
selected Live Paint group paints its faces only and a stroke paints its
edges only, instead of applying to the group as a whole. The hidden
source paths keep their paint.

- paint.setFill, paint.setStroke, paint.none, paint.lastColor,
  paint.lastGradient, paint.editGradient, paint.setGradientGeom, the
  paint.freeform point and line edits, paint.invert and
  paint.complement go to the faces for a fill and the edges for a
  stroke, also for a group given in ids or inside a selected group.
- stroke.set, stroke.weightUp, stroke.weightDown and stroke.setAdvanced
  change the edges.
- The Fill proxy shows the faces' fill, and the Stroke proxy, the Stroke
  panel and the Control bar show the edges' stroke. When the first
  selected object is a Live Paint group with no faces (or no edges),
  they show the next selected object's paint.
- paint.swap gives the faces the stroke the edges share and gives the
  edges the fill the faces share, with a gradient fitted to each face
  or edge. A group whose faces' fills or edges' strokes differ, or that
  has no face or no edge, is left as it is.
- paint.default leaves the faces with no fill and gives the edges a
  0.5 pt black stroke; with only Live Paint groups selected, the
  settings for new art take the same.

Docs: docs/mcp.md (Live Paint), docs/target-app-parity.md (Live Paint
evidence), params text of the changed commands.
2026-11-19 01:06:55 -08:00
bflatastic ccdad44caf Merge main into #8554
# Conflicts:
#	docs/roadmap.md
#	docs/target-app-parity.md
#	docs/ui-parity.md
2026-11-19 16:05:01 +07:00
dotCooCoo 67fa32374d Retype: near matches within a tolerance, and words outlined as one compound path
type.retype takes a tolerance (0 to 0.05, default 0 for exact matches
only). Above 0, a shape of up to 8 contours that is no glyph exactly is
read at equal steps of length from any start and in either direction,
with its contours paired with the glyph's by length. It becomes the
closest glyph when the leftover distance, relative to the shape's size,
is at most the tolerance, and the glyph's outline and the shape's each
lie within three times the tolerance of the other. Simplified outlines,
curves split in two and contours in another order or direction match
this way. A near-matched glyph may differ from its line by the tolerance
in size, turn and place; an exact glyph keeps the exact limits unless
the line's first glyph is a near match. Each entry of fonts in the
result has a score from 1 (exact) to 0.

A compound path holding several glyphs (a word made into one compound
path) is split into groups of contours, a contour with the contours
inside it, and matched in runs of up to three groups, longest first
among those that leave the rest matchable, so an i's stem and dot
become one i. Exact matches of the whole shape come first, then exact
matches of its groups, then near matches. The compound becomes type
only when every glyph matches; otherwise it stays and is reported once.
Exact matching of those groups also reads contours that run the other
way round, as Make Compound Path leaves them. A compound path of more
than 256 groups or 512 contours is matched whole only, and so are the
shapes after the first 16,384 contours one command groups.

Near matching compares a shape with at most 256 glyphs, in at most 50
million point comparisons per shape and 2 billion per command, and
looks glyphs up for at most 1,024 distinct shapes and runs per command,
whole shapes first. At most 262,144 glyphs are drawn to check and
32,768 indexed for near matching, shared equally among the faces; a
face's glyphs closest to the selected shapes are indexed first.

The tolerance, the score and the splitting rules are VectorCraft's own.

Part of #4934
2026-11-19 00:47:08 -08:00