Skip to content

avm2: TLF improvements, implement TextBlock.recreateTextLine - #24313

Open
Lord-McSweeney wants to merge 7 commits into
ruffle-rs:masterfrom
Lord-McSweeney:avm2-textline-recreate
Open

avm2: TLF improvements, implement TextBlock.recreateTextLine#24313
Lord-McSweeney wants to merge 7 commits into
ruffle-rs:masterfrom
Lord-McSweeney:avm2-textline-recreate

Conversation

@Lord-McSweeney

@Lord-McSweeney Lord-McSweeney commented Jul 27, 2026

Copy link
Copy Markdown
Member

Description

Improve TLF support:

  • Implement invalidating lines of a block when its content changes
  • Implement static text lines
  • Support TextBlock.recreateTextLine

This gets the Weed to Wonder SWFs working again and should fix the panics caused by the recent TLF regression.

Testing

I've added a new test, avm2/textblock_recreateline.

Checklist

  • I, a human, have self-reviewed this PR and fully understand the changes within.
  • I have made or updated tests where possible.
  • All of my commits are properly scoped, compile successfully, and pass all tests.
  • This PR does not make sense to split up into smaller PRs.
  • An LLM was involved in the authoring of this code.

@Lord-McSweeney Lord-McSweeney added A-avm2 Area: AVM2 (ActionScript 3) fte/tlf Issues relating to the FTE (Flash Text Engine) AVM2 API or the TLF (Text Layout Framework) library T-fix Type: Bug fix (in something that's supposed to work already) labels Jul 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-avm2 Area: AVM2 (ActionScript 3) fte/tlf Issues relating to the FTE (Flash Text Engine) AVM2 API or the TLF (Text Layout Framework) library T-fix Type: Bug fix (in something that's supposed to work already)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant