DiscussionsIssue archiveOCCT:Visualization

Archived issue #0031762

Visualization, Font_TextFormatter - tabulation length is respected with one extra symbol shift

Open CASCADEOCCT:Visualizationclosed5 public notes

Search issues

Description

Test case below shows that Font_TextFormatter adds unexpected extra symbol shift while formatting tabulation of length 8.

Steps to reproduce

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

Public activity

5 archived notes

Participants are labeled by their role within this record.

01Author
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?

02Commenter 2
Branch [archived branch] has been created by Author.

[revision removed]


Detailed log of new commits:

Author: Author
Date: Tue Sep 29 12:12:14 2020 +0300

    0031762: Visualization, Font_TextFormatter - tabulation length is respected with one extra symbol shift
    
    Integrate test case for checking various scenarios with tabulation symbol.
03Author
04Commenter 3
Combination -
OCCT branch : [archived branch]
master SHA - [revision removed]
[revision removed]
Products branch : [archived branch] SHA - [revision removed]
was compiled on Linux, MacOS and Windows platforms and tested in optimize mode.

Number of compiler warnings:
No new/fixed warnings

Regressions/Differences/Improvements:
No regressions/differences

CPU differences:
Debian80-64:
OCCT
Total CPU difference: 18085.050000000083 / 18057.60000000009 [+0.15%]
Products
Total CPU difference: 12174.620000000117 / 12124.200000000114 [+0.42%]
Windows-64-VC14:
OCCT
Total CPU difference: 19713.125 / 19772.65625 [-0.30%]
Products
Total CPU difference: 13533.8125 / 13527.921875 [+0.04%]


Image differences :
No differences that require special attention

Memory differences :
No differences that require special attention
05Commenter 2
Branch [archived branch] has been deleted by Participant.

[revision removed]

Related records