Skip to content

Add run-breaking tests and fixes#135

Merged
dhardy merged 6 commits intomasterfrom
push-qynszxvpupvu
Feb 24, 2026
Merged

Add run-breaking tests and fixes#135
dhardy merged 6 commits intomasterfrom
push-qynszxvpupvu

Conversation

@dhardy
Copy link
Copy Markdown
Contributor

@dhardy dhardy commented Feb 24, 2026

Adds a few run-breaking unit tests. These are theoretically dependent on fonts (which can add extra breaks) but should work anywhere that can provide a reasonable font collection. Avoiding font-dependence would require either mocking font-discovery (or just push_run) or making further assumptions about fonts (theoretically we shouldn't need the font-breaking in push_run if script-aware font resolution always returns a font fully covering the script — probably not a good bet to make in general).

Fixes:

  • Avoid a spurious break-point at the start of the text
  • Support upgrading the first run to Script::Common
  • Assign first_real after breaking (not covered by tests)

@dhardy dhardy merged commit 77e40a1 into master Feb 24, 2026
5 checks passed
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.

1 participant