Skip to content

Add multiline Text Shape with wrap, shrink, and surface following#11592

Open
rhys100 wants to merge 1 commit into
bambulab:masterfrom
rhys100:feature/text-shape-multiline
Open

Add multiline Text Shape with wrap, shrink, and surface following#11592
rhys100 wants to merge 1 commit into
bambulab:masterfrom
rhys100:feature/text-shape-multiline

Conversation

@rhys100

@rhys100 rhys100 commented Jul 17, 2026

Copy link
Copy Markdown

Summary

What changed

  • Emboss::apply_text_wrap / fit_text_to_box for layout preprocess
  • GenerateTextJob baked layout for horizontal multiline; surface multiline uses create_text_lines + sample_slice
  • Text tool UI: Auto wrap, Auto shrink, Wrap width / height, Line gap
  • Font version bumped to 2.7

Test plan

  • Type multiline text with Enter — lines stack on flat/horizontal text
  • Enable Auto wrap + set Wrap width — long text wraps onto new lines
  • Enable Auto shrink + Wrap width/height — font size reduces to fit the box
  • Place multiline text on a curved surface — each line follows the surface
  • Save / reload 3MF — newlines, wrap settings, and line gap survive
  • Confirm single-line text behaviour is unchanged

Fixes #1095
Related #2086

@Haidiye00

Copy link
Copy Markdown
Contributor

Hello, please use GIF software to record the modified effect. Thank you

@Haidiye00

Copy link
Copy Markdown
Contributor

Hello, it is recommended to combine two patches into one patch. Thank you

@rhys100
rhys100 force-pushed the feature/text-shape-multiline branch from 99a364f to 5269e27 Compare July 18, 2026 06:45
Support Enter/newlines in Text Shape, auto-wrap/shrink-to-box controls, line gap, newline-safe 3MF persistence, and per-line surface contour placement for curved text.

Includes a short feature demo GIF for reviewers under pr-media/.

Co-authored-by: Cursor <cursoragent@cursor.com>
@rhys100
rhys100 force-pushed the feature/text-shape-multiline branch from 5269e27 to a976392 Compare July 18, 2026 06:46
@rhys100 rhys100 changed the title Add multiline Text Shape support (Enter / line breaks) Add multiline Text Shape with wrap, shrink, and surface following Jul 18, 2026
@rhys100

rhys100 commented Jul 18, 2026

Copy link
Copy Markdown
Author

Thanks for the review notes — both addressed:

  1. Combined into one commit (force-pushed).
  2. Demo GIF of the updated Text Shape behaviour:

https://raw.githubusercontent.com/rhys100/BambuStudio/feature/text-shape-multiline/pr-media/pr-11592-text-shape-demo.gif

Also in the branch at pr-media/pr-11592-text-shape-demo.gif.

It shows:

  • Enter / multiline input
  • Auto wrap into a width box
  • Auto shrink to fit height
  • Multiline text following a curved surface

Happy to replace this with a live Bambu Studio screen recording if you prefer that format.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request]Multiple Lines for Text Shape & More

2 participants