Commit 461fe49
committed
Refactor text renderers sequence word wrapping logic
Extract separate TextSequenceWordWrapping class.
For special scripts wrap processing apply EPS to occupied area during relayout.
LineRenderer: merge and rename moveForward mode booleans and methods.
LineRenderer: merge updateSpecialScriptLayoutResults and updateTextRendererLayoutResults to updateTextSequenceLayoutResults.
TextRenderer: set containsPossibleBreak always, not only in case of HTML_MODE rendering mode.
TextRenderer: set containsPossibleBreak in case of width overflow only if forcePartialSplitOnFirstChar.
DEVSIX-1438
Autoported commit.
Original commit hash: [4622b05a63]1 parent c92929a commit 461fe49
File tree
7 files changed
+1095
-985
lines changed- itext.tests/itext.layout.tests/itext/layout/renderer
- itext/itext.layout/itext/layout
- layout
- renderer
7 files changed
+1095
-985
lines changedLines changed: 60 additions & 59 deletions
Large diffs are not rendered by default.
Lines changed: 19 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
212 | | - | |
| 212 | + | |
213 | 213 | | |
214 | | - | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
215 | 218 | | |
216 | 219 | | |
217 | 220 | | |
218 | 221 | | |
219 | 222 | | |
220 | | - | |
221 | | - | |
| 223 | + | |
| 224 | + | |
222 | 225 | | |
223 | | - | |
| 226 | + | |
224 | 227 | | |
225 | 228 | | |
226 | 229 | | |
227 | 230 | | |
228 | 231 | | |
229 | | - | |
230 | | - | |
| 232 | + | |
| 233 | + | |
231 | 234 | | |
232 | 235 | | |
233 | 236 | | |
234 | 237 | | |
235 | | - | |
| 238 | + | |
236 | 239 | | |
237 | | - | |
238 | | - | |
| 240 | + | |
239 | 241 | | |
240 | 242 | | |
241 | 243 | | |
242 | 244 | | |
243 | 245 | | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
248 | 249 | | |
249 | 250 | | |
250 | 251 | | |
251 | 252 | | |
252 | 253 | | |
253 | 254 | | |
254 | | - | |
255 | | - | |
| 255 | + | |
| 256 | + | |
256 | 257 | | |
257 | 258 | | |
258 | 259 | | |
| |||
Lines changed: 30 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
93 | 117 | | |
94 | 118 | | |
95 | 119 | | |
| |||
1653 | 1677 | | |
1654 | 1678 | | |
1655 | 1679 | | |
1656 | | - | |
| 1680 | + | |
1657 | 1681 | | |
1658 | 1682 | | |
1659 | 1683 | | |
1660 | 1684 | | |
1661 | | - | |
| 1685 | + | |
1662 | 1686 | | |
1663 | 1687 | | |
1664 | 1688 | | |
1665 | 1689 | | |
1666 | | - | |
| 1690 | + | |
1667 | 1691 | | |
1668 | 1692 | | |
1669 | 1693 | | |
1670 | 1694 | | |
1671 | | - | |
| 1695 | + | |
1672 | 1696 | | |
1673 | 1697 | | |
1674 | 1698 | | |
1675 | 1699 | | |
1676 | | - | |
1677 | | - | |
| 1700 | + | |
| 1701 | + | |
1678 | 1702 | | |
1679 | 1703 | | |
1680 | 1704 | | |
| |||
0 commit comments