Lightningbeam/lightningbeam-ui/lightningbeam-core/src
Skyler Lehmkuhl fd582828c2 Add text layers
Introduce editable text layers: a resizable text box with editable text,
font size, color, font family, and alignment.

Core:
- New TextLayer/TextContent (text_layer.rs), wired into AnyLayer/LayerType
  and all the exhaustive match sites; structured so content can be keyframed
  later via content_at().
- fonts.rs: thread-local parley FontContext with three bundled fonts
  (Liberation Sans/Serif/Mono, SIL OFL), system-font enumeration consolidated
  to base families, document-embedded fonts, glyph/caret/selection geometry,
  and a background preloader for the picker fonts.
- Rendering via parley layout + Scene::draw_glyphs (renderer.rs); text
  composites through the vector path.
- Actions: CreateTextClipAction (vector-layer branch, undoable),
  SetTextContentAction, ResizeTextBoxAction.
- .beam font embedding: MediaKind::Font rows (content-hash dedupe) written on
  save and registered on load, with bundled-default fallback.
- VectorClip content bounds include text boxes so text-only clips are
  selectable/draggable.

Editor:
- Text tool: click empty/raster/video to create a top-level text layer, or a
  vector layer to create+enter a clip containing the text; click an existing
  box to edit it.
- Hybrid in-place editing: a hidden egui TextEdit drives input/IME/caret while
  the text and caret/selection render in Vello; empty just-created layers are
  removed on commit.
- Selection outline + 8 resize handles (re-wrap text) with hover cursors;
  factored the corner/edge resize-cursor mapping shared with the Transform tool.
- Info panel: edit text, size, color, alignment, box size, and a font-family
  picker that previews each entry in its own font (fonts preloaded in the
  background to avoid hitches).

Deps: add parley (git, pinned to match vello's peniko); bundle Liberation
fonts under lightningbeam-core/assets/fonts. Gitignore the local
.cargo/config.toml used to select a machine's ffmpeg.
2026-06-27 18:14:47 -04:00
..
actions Add text layers 2026-06-27 18:14:47 -04:00
dcel2 Merge branch 'rust-ui' of https://git.skyler.io/skyler/Lightningbeam into rust-ui 2026-03-09 13:41:48 -04:00
gpu Onion skinning: vector-layer ghosts (tinted) 2026-06-20 23:49:33 -04:00
shaders Fix gamma handling and improve brush canvas performance 2026-06-16 08:32:39 -04:00
vector_graph Address code-review findings across export, decode, and data model 2026-06-26 17:47:32 -04:00
action.rs Phase 3d: dirty-rect diffs for raster undo (bound undo-history RAM) 2026-06-20 21:31:38 -04:00
animation.rs Lock editing on tween in-between frames 2026-06-21 16:01:47 -04:00
asset_folder.rs add folders to asset library 2025-12-30 00:45:19 -05:00
beam_archive.rs Add text layers 2026-06-27 18:14:47 -04:00
beat_time.rs Massive tempo refactor - make beats canonical time rep and allow them to be non constant 2026-04-02 10:26:01 -04:00
bezier_vertex.rs initial vector editing 2025-12-22 18:34:01 -05:00
bezpath_editing.rs initial vector editing 2025-12-22 18:34:01 -05:00
brush_engine.rs Phase 3a-3: low-res image proxy for cold-scrub raster frames 2026-06-20 20:05:46 -04:00
brush_settings.rs add brush library 2026-03-04 16:42:43 -05:00
clip.rs Add text layers 2026-06-27 18:14:47 -04:00
clipboard.rs Add text layers 2026-06-27 18:14:47 -04:00
clipboard_platform.rs Address Mac build failures 2026-03-09 22:03:51 -04:00
curve_intersection.rs Paint bucket 2025-11-19 01:47:37 -05:00
curve_intersections.rs rewrite vector backend again 2026-03-13 18:53:33 -04:00
curve_segment.rs Paint bucket 2025-11-19 01:47:37 -05:00
dcel.rs rewrite dcel 2026-02-26 18:48:21 -05:00
document.rs Add text layers 2026-06-27 18:14:47 -04:00
effect.rs add folders to asset library 2025-12-30 00:45:19 -05:00
effect_layer.rs Phase 5: fix broken unit tests; cargo test --lib green again 2026-06-19 16:45:23 -04:00
effect_registry.rs Fix gamma handling and improve brush canvas performance 2026-06-16 08:32:39 -04:00
export.rs export: add Fit mode to image export too 2026-06-26 14:42:05 -04:00
file_io.rs Add text layers 2026-06-27 18:14:47 -04:00
file_types.rs Add SVG vector import and export 2026-06-26 16:40:39 -04:00
flood_fill.rs Magic wand selection 2026-03-07 03:39:09 -05:00
fonts.rs Add text layers 2026-06-27 18:14:47 -04:00
gap_handling.rs Paint bucket 2025-11-19 01:47:37 -05:00
gradient.rs Add gradient support to vector graphics 2026-03-10 00:57:47 -04:00
hit_test.rs Massive tempo refactor - make beats canonical time rep and allow them to be non constant 2026-04-02 10:26:01 -04:00
instance_group.rs Audio from videos 2025-12-03 01:04:09 -05:00
intersection_graph.rs Clean up build warnings 2026-02-14 11:07:32 -05:00
layer.rs Add text layers 2026-06-27 18:14:47 -04:00
layer_tree.rs Initial work on movie clips 2026-02-21 00:54:38 -05:00
layout.rs Add Rust desktop UI with Blender-style pane system 2025-11-12 06:13:00 -05:00
lib.rs Add text layers 2026-06-27 18:14:47 -04:00
object.rs aspect ratio: unify video placement + add export fit modes 2026-06-26 06:54:49 -04:00
pane.rs Add script node 2026-02-19 09:29:14 -05:00
path_fitting.rs Clean up build warnings 2026-02-14 11:07:32 -05:00
path_interpolation.rs Render shape on stage 2025-11-16 02:40:06 -05:00
planar_graph.rs Clean up build warnings 2026-02-14 11:07:32 -05:00
quadtree.rs Paint bucket 2025-11-19 01:47:37 -05:00
raster_draw.rs Shape tools 2026-03-07 07:27:45 -05:00
raster_layer.rs raster: info-panel size + "Layer to document size" (scale/expand-crop) 2026-06-26 15:40:23 -04:00
raster_store.rs Phase 3a-1: lazy fault-in of raster keyframe pixels 2026-06-19 16:59:46 -04:00
region_select.rs rewrite dcel 2026-02-26 18:48:21 -05:00
renderer.rs Add text layers 2026-06-27 18:14:47 -04:00
script.rs Add script node 2026-02-19 09:29:14 -05:00
segment_builder.rs Clean up build warnings 2026-02-14 11:07:32 -05:00
selection.rs Unify selection systems and make region/lasso cut robust 2026-06-21 14:47:11 -04:00
shape.rs Phase 5: fix broken unit tests; cargo test --lib green again 2026-06-19 16:45:23 -04:00
snap.rs work on vector graph 2026-03-22 18:16:17 -04:00
svg_export.rs Address code-review findings across export, decode, and data model 2026-06-26 17:47:32 -04:00
tempo_map.rs Massive tempo refactor - make beats canonical time rep and allow them to be non constant 2026-04-02 10:26:01 -04:00
test_mode.rs Fix DCEL selection bugs 2026-03-05 19:55:39 -05:00
text_layer.rs Add text layers 2026-06-27 18:14:47 -04:00
tolerance_quadtree.rs Paint bucket 2025-11-19 01:47:37 -05:00
tool.rs Add text layers 2026-06-27 18:14:47 -04:00
video.rs Address code-review findings across export, decode, and data model 2026-06-26 17:47:32 -04:00
webcam.rs Record to multiple layers 2026-03-01 13:48:43 -05:00