Skip to content

Note that center and right alignment apply to each continued segment - #1818

Open
Likheet wants to merge 1 commit into
foliojs:masterfrom
Likheet:docs/continued-alignment
Open

Likheet wants to merge 1 commit into
foliojs:masterfrom
Likheet:docs/continued-alignment

Conversation

@Likheet

@Likheet Likheet commented Oct 15, 2026

Copy link
Copy Markdown

What kind of change does this PR introduce?

Docs update, as discussed in #1816: a note at the end of the Rich Text section that center and right alignment are applied to each continued segment on its own, so the segments of a line can overlap. Relates to #240 and #774.

On master, with doc.text('Normal Text ', { align: 'center', continued: true }).text('Second segment') on A4, "Second segment" starts at x = 286.2, inside "Normal Text " (x = 264.1, 66.6 pt wide). With align: 'right', both segments end at the right margin.

Checklist:

  • Unit Tests N/A
  • Documentation
  • Update CHANGELOG.md N/A
  • Ready to be merged

This branch has not been deployed

No deployments
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