vectorcraft/crates/text/src
bflatastic afb438367d Type Object Selection by Path Only: every baseline, Type tool and Eyedropper (review of #475)
- Type is picked on the baseline of any of its lines (point type and area
  type, besides area type's frame), as in Illustrator, not only the first
  one: the layout's baselines are cached with its bounds
  (`TextObject::cached_baselines`, from `TextLayout::baselines`), with the
  first one across the bounds as the fallback. Vertical type's runs down
  each column's centre line.
- Type in perspective is picked where it is drawn (through its projection).
- The bounds rule type out before its path is built, so hovering stays
  free of allocations away from type.
- The Type tools still edit type clicked among its characters (they made
  new type there with the preference on), and the Eyedropper still samples
  it there, as it does inside fills with Object Selection by Path Only.
- Tests for all of it; docs/mcp.md and ROADMAP say so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 18:59:47 +07:00
..
composer.rs Live Blends/Envelopes/Gradient Mesh, Shape Builder, Live Paint, Image Trace (drawcraft-trace), Recolor Artwork, Export for Screens, Actions panel, prefs persistence, real layer thumbnails; menus bound 2026-09-30 11:02:16 -04:00
craft_fonts.rs Fonts: use craft-fonts as an optional build input; move the Japanese fonts out 2026-10-06 10:42:21 -04:00
edit.rs Rename DrawCraft → VectorCraft: crates (vectorcraft-*), apps, binaries, types, env vars, docs, examples (.vectorcraft); old .drawcraft files and preferences still load. Fix: text bounds exact after opening a file; selection no longer marks a document modified (dirty = content differs from the saved document). Screenshots and renders regenerated. 2026-10-01 14:30:09 -04:00
embed.rs Fix #296: variable fonts list and draw every named style 2026-10-07 21:01:26 +07:00
features.rs Type: kinsoku, tate-chu-yoko and upright placement for vertical type 2026-10-06 22:02:38 +09:00
fontdb.rs Fix #443: installed fonts outside the font folders and fonts installed while the app runs reach the font menus 2026-10-08 14:03:53 +07:00
hyphen.rs Live Blends/Envelopes/Gradient Mesh, Shape Builder, Live Paint, Image Trace (drawcraft-trace), Recolor Artwork, Export for Screens, Actions panel, prefs persistence, real layer thumbnails; menus bound 2026-09-30 11:02:16 -04:00
layout.rs Type: burasagari labels Regular/Force, full-width commas and full stops hang, MCP docs (review of #463) 2026-10-08 17:34:05 +07:00
lib.rs Type Object Selection by Path Only: every baseline, Type tool and Eyedropper (review of #475) 2026-10-08 18:59:47 +07:00
shape.rs Type: Paragraph Direction instead of an Automatic alignment toggle; bidi only where needed (review of #300) 2026-10-08 05:25:01 +07:00
test_fonts.rs Type: vertical type takes upright glyphs' cells from the font's vertical metrics 2026-10-08 00:12:44 +09:00
tests.rs Type: burasagari labels Regular/Force, full-width commas and full stops hang, MCP docs (review of #463) 2026-10-08 17:34:05 +07:00
tests_bidi.rs Type: Paragraph Direction instead of an Automatic alignment toggle; bidi only where needed (review of #300) 2026-10-08 05:25:01 +07:00
tests_embed.rs M4.97: SVG Options choose the encoding, SVG Tiny 1.2 and embedded font subsets 2026-10-05 13:25:15 +07:00
tests_scripts.rs M4.20: Document Setup with bleed, transparency grid, paper and type options 2026-10-05 08:28:16 +07:00
tests_snap.rs M4.34: raster export options and PNG Options — resolution, background, anti-aliasing, interlacing 2026-10-05 09:14:11 +07:00
tests_sysfonts.rs Fix #443: installed fonts outside the font folders and fonts installed while the app runs reach the font menus 2026-10-08 14:03:53 +07:00
tests_typo.rs Type: new type takes Standard burasagari, as in Illustrator; Latin paragraphs keep the every-line composer 2026-10-08 17:34:05 +07:00
tests_variable.rs Fix #296: variable fonts list and draw every named style 2026-10-07 21:01:26 +07:00
tests_vertical.rs Type Object Selection by Path Only: every baseline, Type tool and Eyedropper (review of #475) 2026-10-08 18:59:47 +07:00
thread.rs Rename DrawCraft → VectorCraft: crates (vectorcraft-*), apps, binaries, types, env vars, docs, examples (.vectorcraft); old .drawcraft files and preferences still load. Fix: text bounds exact after opening a file; selection no longer marks a document modified (dirty = content differs from the saved document). Screenshots and renders regenerated. 2026-10-01 14:30:09 -04:00