version
0.2.0
Link to minimal reproduction
No response
Steps to reproduce
Detect word boundaries during layout (e.g., with element.text.split(/\b/)).
For each word:
Measure word width using canvas context.
If currentLineWidth + wordWidth <= image.leftX, render word before image.
Else, move word to next line or after image (depending on alignment flow).
Respect image margins or paddings (optional).
What is expected?
Detect word boundaries during layout (e.g., with element.text.split(/\b/)).
For each word:
Measure word width using canvas context.
If currentLineWidth + wordWidth <= image.leftX, render word before image.
Else, move word to next line or after image (depending on alignment flow).
Respect image margins or paddings (optional).
What is actually happening?
word is breaking
Editor Value
System Info
Any additional comments?
No response
version
0.2.0
Link to minimal reproduction
No response
Steps to reproduce
Detect word boundaries during layout (e.g., with element.text.split(/\b/)).
For each word:
Measure word width using canvas context.
If currentLineWidth + wordWidth <= image.leftX, render word before image.
Else, move word to next line or after image (depending on alignment flow).
Respect image margins or paddings (optional).
What is expected?
Detect word boundaries during layout (e.g., with element.text.split(/\b/)).
For each word:
Measure word width using canvas context.
If currentLineWidth + wordWidth <= image.leftX, render word before image.
Else, move word to next line or after image (depending on alignment flow).
Respect image margins or paddings (optional).
What is actually happening?
word is breaking
Editor Value
System Info
Any additional comments?
No response