Lines Matching refs:CHAR_WIDTH

87     constexpr float CHAR_WIDTH = 10.0;  in TEST_F()  local
99 constexpr float LINE_WIDTH = 1000 * CHAR_WIDTH; in TEST_F()
101 {"This is an example text.", 24 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN}, in TEST_F()
104 auto actual = doLineBreak(textBuf, HIGH_QUALITY, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
108 actual = doLineBreak(textBuf, HIGH_QUALITY, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
112 actual = doLineBreak(textBuf, BALANCED, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
116 actual = doLineBreak(textBuf, BALANCED, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
122 constexpr float LINE_WIDTH = 24 * CHAR_WIDTH; in TEST_F()
124 {"This is an example text.", 24 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN}, in TEST_F()
126 auto actual = doLineBreak(textBuf, HIGH_QUALITY, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
130 actual = doLineBreak(textBuf, HIGH_QUALITY, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
134 actual = doLineBreak(textBuf, BALANCED, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
138 actual = doLineBreak(textBuf, BALANCED, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
144 constexpr float LINE_WIDTH = 23 * CHAR_WIDTH; in TEST_F()
147 { "This is an example " , 18 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
148 { "text." , 5 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
152 auto actual = doLineBreak(textBuf, HIGH_QUALITY, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
156 actual = doLineBreak(textBuf, HIGH_QUALITY, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
163 { "This is an " , 10 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
164 { "example text." , 13 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
167 actual = doLineBreak(textBuf, BALANCED, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
173 { "This is an ex-" , 14 * CHAR_WIDTH, NO_START_HYPHEN, END_HYPHEN }, in TEST_F()
174 { "ample text." , 11 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
177 actual = doLineBreak(textBuf, BALANCED, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
183 constexpr float LINE_WIDTH = 17 * CHAR_WIDTH; in TEST_F()
186 { "This is an " , 10 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
187 { "example text." , 13 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
191 auto actual = doLineBreak(textBuf, HIGH_QUALITY, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
197 { "This is an exam-" , 16 * CHAR_WIDTH, NO_START_HYPHEN, END_HYPHEN }, in TEST_F()
198 { "ple text." , 9 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
201 actual = doLineBreak(textBuf, HIGH_QUALITY, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
207 { "This is an " , 10 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
208 { "example text." , 13 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
211 actual = doLineBreak(textBuf, BALANCED, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
217 { "This is an ex-", 14 * CHAR_WIDTH, NO_START_HYPHEN, END_HYPHEN }, in TEST_F()
218 { "ample text." , 11 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
221 actual = doLineBreak(textBuf, BALANCED, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
227 constexpr float LINE_WIDTH = 16 * CHAR_WIDTH; in TEST_F()
230 { "This is an " , 10 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
231 { "example text." , 13 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
235 auto actual = doLineBreak(textBuf, HIGH_QUALITY, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
241 { "This is an exam-" , 16 * CHAR_WIDTH, NO_START_HYPHEN, END_HYPHEN }, in TEST_F()
242 { "ple text." , 9 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
245 actual = doLineBreak(textBuf, HIGH_QUALITY, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
251 { "This is an " , 10 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
252 { "example text." , 13 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
255 actual = doLineBreak(textBuf, BALANCED, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
261 { "This is an ex-", 14 * CHAR_WIDTH, NO_START_HYPHEN, END_HYPHEN }, in TEST_F()
262 { "ample text." , 11 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
265 actual = doLineBreak(textBuf, BALANCED, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
271 constexpr float LINE_WIDTH = 15 * CHAR_WIDTH; in TEST_F()
274 { "This is an " , 10 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
275 { "example text." , 13 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
279 auto actual = doLineBreak(textBuf, HIGH_QUALITY, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
285 { "This is an ex-", 14 * CHAR_WIDTH, NO_START_HYPHEN, END_HYPHEN }, in TEST_F()
286 { "ample text." , 11 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
289 actual = doLineBreak(textBuf, HIGH_QUALITY, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
295 { "This is an " , 10 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
296 { "example text." , 13 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
299 actual = doLineBreak(textBuf, BALANCED, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
305 { "This is an ex-", 14 * CHAR_WIDTH, NO_START_HYPHEN, END_HYPHEN }, in TEST_F()
306 { "ample text." , 11 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
309 actual = doLineBreak(textBuf, BALANCED, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
315 constexpr float LINE_WIDTH = 13 * CHAR_WIDTH; in TEST_F()
318 { "This is an " , 10 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
319 { "example text." , 13 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
323 auto actual = doLineBreak(textBuf, HIGH_QUALITY, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
327 actual = doLineBreak(textBuf, HIGH_QUALITY, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
331 actual = doLineBreak(textBuf, BALANCED, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
335 actual = doLineBreak(textBuf, BALANCED, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
341 constexpr float LINE_WIDTH = 12 * CHAR_WIDTH; in TEST_F()
344 { "This is an ", 10 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
345 { "example " , 7 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
346 { "text." , 5 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
350 auto actual = doLineBreak(textBuf, HIGH_QUALITY, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
354 actual = doLineBreak(textBuf, HIGH_QUALITY, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
358 actual = doLineBreak(textBuf, BALANCED, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
364 { "This is " , 7 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
365 { "an exam-" , 8 * CHAR_WIDTH, NO_START_HYPHEN, END_HYPHEN }, in TEST_F()
366 { "ple text.", 9 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
369 actual = doLineBreak(textBuf, BALANCED, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
375 constexpr float LINE_WIDTH = 9 * CHAR_WIDTH; in TEST_F()
378 { "This " , 4 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
379 { "is an " , 5 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
380 { "example ", 7 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
381 { "text." , 5 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
385 auto actual = doLineBreak(textBuf, HIGH_QUALITY, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
391 { "This is " , 7 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
392 { "an exam-" , 8 * CHAR_WIDTH, NO_START_HYPHEN, END_HYPHEN }, in TEST_F()
393 { "ple text.", 9 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
396 actual = doLineBreak(textBuf, HIGH_QUALITY, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
402 { "This " , 4 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
403 { "is an " , 5 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
404 { "example ", 7 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
405 { "text." , 5 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
408 actual = doLineBreak(textBuf, BALANCED, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
414 { "This is " , 7 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
415 { "an exam-" , 8 * CHAR_WIDTH, NO_START_HYPHEN, END_HYPHEN }, in TEST_F()
416 { "ple text.", 9 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
419 actual = doLineBreak(textBuf, BALANCED, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
425 constexpr float LINE_WIDTH = 8 * CHAR_WIDTH; in TEST_F()
428 { "This " , 4 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
429 { "is an " , 5 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
430 { "example ", 7 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
431 { "text." , 5 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
435 auto actual = doLineBreak(textBuf, HIGH_QUALITY, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
439 actual = doLineBreak(textBuf, BALANCED, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
445 { "This is ", 7 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
446 { "an ex-" , 6 * CHAR_WIDTH, NO_START_HYPHEN, END_HYPHEN }, in TEST_F()
447 { "ample " , 5 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
448 { "text." , 5 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
451 actual = doLineBreak(textBuf, HIGH_QUALITY, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
455 actual = doLineBreak(textBuf, BALANCED, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
461 constexpr float LINE_WIDTH = 7 * CHAR_WIDTH; in TEST_F()
464 { "This " , 4 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
465 { "is an " , 5 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
466 { "example ", 7 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
467 { "text." , 5 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
471 auto actual = doLineBreak(textBuf, HIGH_QUALITY, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
475 actual = doLineBreak(textBuf, BALANCED, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
481 { "This is ", 7 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
482 { "an ex-" , 6 * CHAR_WIDTH, NO_START_HYPHEN, END_HYPHEN }, in TEST_F()
483 { "ample " , 5 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
484 { "text." , 5 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
487 actual = doLineBreak(textBuf, HIGH_QUALITY, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
491 actual = doLineBreak(textBuf, BALANCED, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
497 constexpr float LINE_WIDTH = 6 * CHAR_WIDTH; in TEST_F()
500 { "This " , 4 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
501 { "is an ", 5 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
503 { "exa" , 3 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
504 { "mple " , 4 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
505 { "text." , 5 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
509 auto actual = doLineBreak(textBuf, HIGH_QUALITY, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
513 actual = doLineBreak(textBuf, BALANCED, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
519 { "This " , 4 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
520 { "is an ", 5 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
521 { "exam-" , 5 * CHAR_WIDTH, NO_START_HYPHEN, END_HYPHEN }, in TEST_F()
522 { "ple " , 3 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
523 { "text." , 5 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
526 actual = doLineBreak(textBuf, HIGH_QUALITY, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
530 actual = doLineBreak(textBuf, BALANCED, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
536 constexpr float LINE_WIDTH = 5 * CHAR_WIDTH; in TEST_F()
539 { "This " , 4 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
540 { "is an ", 5 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
542 { "exa" , 3 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
543 { "mple " , 4 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
544 { "text." , 5 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
548 auto actual = doLineBreak(textBuf, HIGH_QUALITY, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
552 actual = doLineBreak(textBuf, BALANCED, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
558 { "This " , 4 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
559 { "is an ", 5 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
560 { "exam-" , 5 * CHAR_WIDTH, NO_START_HYPHEN, END_HYPHEN }, in TEST_F()
561 { "ple " , 3 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
562 { "text." , 5 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
565 actual = doLineBreak(textBuf, HIGH_QUALITY, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
569 actual = doLineBreak(textBuf, BALANCED, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
575 constexpr float LINE_WIDTH = 4 * CHAR_WIDTH; in TEST_F()
578 { "This " , 4 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
579 { "is " , 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
580 { "an " , 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
582 { "exa" , 3 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
583 { "mple " , 4 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
584 { "text" , 4 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
585 { "." , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
589 auto actual = doLineBreak(textBuf, HIGH_QUALITY, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
595 { "This " , 4 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
596 { "is " , 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
597 { "an " , 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
599 { "exa" , 3 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
600 { "mple " , 4 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
602 { "t" , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
603 { "ext." , 4 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
606 actual = doLineBreak(textBuf, BALANCED, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
612 { "This ", 4 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
613 { "is " , 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
614 { "an " , 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
615 { "ex-" , 3 * CHAR_WIDTH, NO_START_HYPHEN, END_HYPHEN }, in TEST_F()
616 { "am-" , 3 * CHAR_WIDTH, NO_START_HYPHEN, END_HYPHEN }, in TEST_F()
617 { "ple " , 3 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
618 { "text" , 4 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
619 { "." , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
622 actual = doLineBreak(textBuf, HIGH_QUALITY, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
628 { "This ", 4 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
629 { "is " , 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
630 { "an " , 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
631 { "ex-" , 3 * CHAR_WIDTH, NO_START_HYPHEN, END_HYPHEN }, in TEST_F()
632 { "am-" , 3 * CHAR_WIDTH, NO_START_HYPHEN, END_HYPHEN }, in TEST_F()
633 { "ple " , 3 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
635 { "te" , 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
636 { "xt." , 3 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
639 actual = doLineBreak(textBuf, BALANCED, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
645 constexpr float LINE_WIDTH = 3 * CHAR_WIDTH; in TEST_F()
649 { "T" , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
650 { "his ", 3 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
651 { "is " , 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
652 { "an " , 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
654 { "e" , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
655 { "xam" , 3 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
656 { "ple ", 3 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
657 { "tex" , 3 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
658 { "t." , 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
662 auto actual = doLineBreak(textBuf, HIGH_QUALITY, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
669 { "T" , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
670 { "his ", 3 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
671 { "is " , 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
672 { "an " , 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
674 { "e" , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
675 { "xam" , 3 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
676 { "ple ", 3 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
678 { "te" , 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
679 { "xt." , 3 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
682 actual = doLineBreak(textBuf, BALANCED, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
689 { "T" , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
690 { "his ", 3 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
691 { "is " , 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
692 { "an " , 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
693 { "ex-" , 3 * CHAR_WIDTH, NO_START_HYPHEN, END_HYPHEN }, in TEST_F()
694 { "am-" , 3 * CHAR_WIDTH, NO_START_HYPHEN, END_HYPHEN }, in TEST_F()
695 { "ple ", 3 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
696 { "tex" , 3 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
697 { "t." , 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
700 actual = doLineBreak(textBuf, HIGH_QUALITY, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
707 {"T" , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN}, in TEST_F()
708 {"his ", 3 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN}, in TEST_F()
709 {"is " , 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN}, in TEST_F()
710 {"an " , 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN}, in TEST_F()
711 {"ex-" , 3 * CHAR_WIDTH, NO_START_HYPHEN, END_HYPHEN}, in TEST_F()
712 {"am-" , 3 * CHAR_WIDTH, NO_START_HYPHEN, END_HYPHEN}, in TEST_F()
713 {"ple ", 3 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN}, in TEST_F()
715 {"te" , 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN}, in TEST_F()
716 {"xt." , 3 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN}, in TEST_F()
719 actual = doLineBreak(textBuf, BALANCED, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
725 constexpr float LINE_WIDTH = 2 * CHAR_WIDTH; in TEST_F()
728 { "Th" , 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
729 { "is ", 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
730 { "is ", 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
731 { "an ", 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
733 { "e" , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
734 { "xa" , 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
735 { "mp" , 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
736 { "le ", 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
737 { "te" , 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
738 { "xt" , 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
739 { "." , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
743 auto actual = doLineBreak(textBuf, HIGH_QUALITY, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
747 actual = doLineBreak(textBuf, HIGH_QUALITY, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
753 { "Th" , 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
754 { "is ", 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
755 { "is ", 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
756 { "an ", 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
758 { "e" , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
759 { "xa" , 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
760 { "mp" , 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
761 { "le ", 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
763 { "t" , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
764 { "ex" , 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
765 { "t." , 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
768 actual = doLineBreak(textBuf, BALANCED, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
772 actual = doLineBreak(textBuf, BALANCED, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
778 constexpr float LINE_WIDTH = 1 * CHAR_WIDTH; in TEST_F()
781 { "T" , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
782 { "h" , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
783 { "i" , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
784 { "s ", 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
785 { "i" , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
786 { "s ", 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
787 { "a" , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
788 { "n ", 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
789 { "e" , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
790 { "x" , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
791 { "a" , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
792 { "m" , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
793 { "p" , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
794 { "l" , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
795 { "e ", 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
796 { "t" , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
797 { "e" , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
798 { "x" , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
799 { "t" , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
800 { "." , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
804 auto actual = doLineBreak(textBuf, HIGH_QUALITY, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
808 actual = doLineBreak(textBuf, BALANCED, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
812 actual = doLineBreak(textBuf, HIGH_QUALITY, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
816 actual = doLineBreak(textBuf, BALANCED, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
824 constexpr float CHAR_WIDTH = 10.0; in TEST_F() local
836 constexpr float LINE_WIDTH = 1000 * CHAR_WIDTH; in TEST_F()
838 {"czerwono-niebieska", 18 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN}, in TEST_F()
841 const auto actual = doLineBreak(textBuf, HIGH_QUALITY, NORMAL_HYPHENATION, CHAR_WIDTH, "pl", in TEST_F()
848 constexpr float LINE_WIDTH = 18 * CHAR_WIDTH; in TEST_F()
850 {"czerwono-niebieska", 18 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN}, in TEST_F()
853 const auto actual = doLineBreak(textBuf, HIGH_QUALITY, NORMAL_HYPHENATION, CHAR_WIDTH, "pl", in TEST_F()
860 constexpr float LINE_WIDTH = 13 * CHAR_WIDTH; in TEST_F()
863 {"czerwono-" , 9 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN}, in TEST_F()
864 {"-niebieska", 10 * CHAR_WIDTH, START_HYPHEN, NO_END_HYPHEN}, in TEST_F()
868 const auto actual = doLineBreak(textBuf, HIGH_QUALITY, NORMAL_HYPHENATION, CHAR_WIDTH, "pl", in TEST_F()
877 constexpr float CHAR_WIDTH = 10.0; in TEST_F() local
880 constexpr float LINE_WIDTH = 0 * CHAR_WIDTH; in TEST_F()
889 doLineBreak(textBuf, HIGH_QUALITY, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
897 {"A", 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN}, in TEST_F()
900 doLineBreak(textBuf, HIGH_QUALITY, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
908 {"A", 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN}, in TEST_F()
909 {"B", 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN}, in TEST_F()
912 doLineBreak(textBuf, HIGH_QUALITY, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
920 constexpr float CHAR_WIDTH = 0.0; in TEST_F() local
933 doLineBreak(textBuf, HIGH_QUALITY, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
945 doLineBreak(textBuf, HIGH_QUALITY, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
953 constexpr float CHAR_WIDTH = 10.0; in TEST_F() local
960 constexpr float LINE_WIDTH = 24 * CHAR_WIDTH; in TEST_F()
964 {"This is an example text.", 24 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN}, in TEST_F()
968 builder.addCustomRun<ConstantRun>(Range(0, 18), "en-US", CHAR_WIDTH); in TEST_F()
969 builder.addCustomRun<ConstantRun>(Range(18, textBuf.size()), "en-US", CHAR_WIDTH); in TEST_F()
981 {"This is an example text.", 24 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN}, in TEST_F()
985 builder.addCustomRun<ConstantRun>(Range(0, 18), "en-US", CHAR_WIDTH); in TEST_F()
986 builder.addCustomRun<ConstantRun>(Range(18, textBuf.size()), "fr-FR", CHAR_WIDTH); in TEST_F()
998 constexpr float CHAR_WIDTH = 10.0; in TEST_F() local
1007 constexpr float LINE_WIDTH = 24 * CHAR_WIDTH; in TEST_F()
1012 {"This is an url: http://a", 24 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN}, in TEST_F()
1013 {".b", 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN}, in TEST_F()
1016 auto actual = doLineBreak(textBuf, HIGH_QUALITY, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
1020 actual = doLineBreak(textBuf, HIGH_QUALITY, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
1026 {"This is an url: ", 15 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN}, in TEST_F()
1027 {"http://a.b", 10 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN}, in TEST_F()
1030 actual = doLineBreak(textBuf, BALANCED, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
1034 actual = doLineBreak(textBuf, BALANCED, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
1040 constexpr float LINE_WIDTH = 24 * CHAR_WIDTH; in TEST_F()
1044 {"This is an email: ", 17 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN}, in TEST_F()
1045 {"a@example.com" , 13 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN}, in TEST_F()
1049 auto actual = doLineBreak(textBuf, HIGH_QUALITY, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
1053 actual = doLineBreak(textBuf, HIGH_QUALITY, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
1057 actual = doLineBreak(textBuf, BALANCED, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
1061 actual = doLineBreak(textBuf, BALANCED, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
1069 constexpr float CHAR_WIDTH = 10.0; in TEST_F() local
1078 constexpr float LINE_WIDTH = 24 * CHAR_WIDTH; in TEST_F()
1082 builder.addCustomRun<ConstantRun>(Range(0, 18), "en-US", CHAR_WIDTH); in TEST_F()
1083 builder.addCustomRun<ConstantRun>(Range(18, textBuf.size()), "fr-FR", CHAR_WIDTH); in TEST_F()
1090 {"This is an url: http://a", 24 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN}, in TEST_F()
1091 {".b", 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN}, in TEST_F()
1106 {"This is an url: ", 15 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN}, in TEST_F()
1107 {"http://a.b", 10 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN}, in TEST_F()
1123 builder.addCustomRun<ConstantRun>(Range(0, 18), "en-US", CHAR_WIDTH); in TEST_F()
1124 builder.addCustomRun<ConstantRun>(Range(18, textBuf.size()), "fr-FR", CHAR_WIDTH); in TEST_F()
1130 {"This is an email: ", 17 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN}, in TEST_F()
1131 {"a@example.com", 13 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN}, in TEST_F()