MantisBT - Open CASCADE
View Issue Details
0031762Open CASCADE[OCCT] OCCT:Visualizationpublic2020-09-12 10:182020-09-15 19:51
kgv 
nds 
normalminor 
assignedopen 
[OCCT] 6.6.0 
[OCCT] 7.5.0 
0031762: Visualization, Font_TextFormatter - tabulation length is respected with one extra symbol shift
Test case below shows that Font_TextFormatter adds unexpected extra symbol shift while formatting tabulation of length 8.
pload MODELING VISUALIZATION
vinit View1
vdrawtext t1 "1234567890\n1\t90\n12\t90\n123\t90\n1234\t90" -pos 0 0 0

1234567890
1	9

vdrawtext t2 "1234567890\n#1\t90\n#12\t90\n#123\t90\n#1234\t90" -pos 0 0 -25

1234567890
0000001 	9

vdrawtext t3 "1234567890\n1\t 90\n12\t 90\n123\t 90\n1234\t 90" -pos 0 0 -50

1234567890
1 	9

vfit; vzoom 0.5


for old OCCT:
pload MODELING VISUALIZATION
vinit View1
vdrawtext t1 "1234567890\n1\t90\n12\t90\n123\t90\n1234\t90" -pos 0 0 0

1234567890
1	9

vdrawtext t2 "1234567890\n#1\t90\n#12\t90\n#123\t90\n#1234\t90" -pos 0 0 -25

1234567890
0000001 	9

vdrawtext t3 "1234567890\n1\t 90\n12\t 90\n123\t 90\n1234\t 90" -pos 0 0 -50

1234567890
1 	9

vfit; vzoom 0.5
No tags attached.
related to 0030537verified nds Open CASCADE Visualization - wrapping text in font text formatter 
child of 0023457closed kgv Community Slow text rendering 
png tab8_notepad_OK.png (15,252) 2020-09-12 10:18
https://tracker.dev.opencascade.org/
png tab8_notepad2_OK.png (12,186) 2020-09-12 10:18
https://tracker.dev.opencascade.org/
png tab8_draw_740_KO.png (7,566) 2020-09-12 10:18
https://tracker.dev.opencascade.org/
png tab8_draw_750_OK.png (8,516) 2020-09-12 10:19
https://tracker.dev.opencascade.org/
png tab8_draw_654_OK.png (9,508) 2020-09-12 10:35
https://tracker.dev.opencascade.org/
Issue History
2020-09-12 10:18kgvNew Issue
2020-09-12 10:18kgvAssigned To => kgv
2020-09-12 10:18kgvFile Added: tab8_notepad_OK.png
2020-09-12 10:18kgvFile Added: tab8_notepad2_OK.png
2020-09-12 10:18kgvFile Added: tab8_draw_740_KO.png
2020-09-12 10:19kgvFile Added: tab8_draw_750_OK.png
2020-09-12 10:19kgvRelationship addedrelated to 0030537
2020-09-12 10:23kgvNote Added: 0094529
2020-09-12 10:23kgvAssigned Tokgv => nds
2020-09-12 10:23kgvStatusnew => assigned
2020-09-12 10:32kgvNote Edited: 0094529bug_revision_view_page.php?bugnote_id=94529#r23415
2020-09-12 10:34kgvProduct Version7.4.0 => 6.6.0
2020-09-12 10:35kgvFile Added: tab8_draw_654_OK.png
2020-09-12 10:36kgvSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=23417#r23417
2020-09-12 10:42kgvRelationship addedchild of 0023457
2020-09-15 19:51kgvRelationship addedrelated to 0022796

Notes
(0094529)
kgv   
2020-09-12 10:23   
(edited on: 2020-09-12 10:32)
Natalia, as 0030537 fixed first use case (3rd one remains broken), but didn't mentioned it - could you please prepare a test case for this bug?