MantisBT
Mantis Bug Tracker Workflow

View Issue Details Jump to Notes ] Related Changesets ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0031762Open CASCADE[OCCT] OCCT:Visualizationpublic2020-09-12 10:182020-10-03 14:38
Reporterkgv 
Assigned Toabv 
PrioritynormalSeverityminor 
StatusverifiedResolutionfixed 
PlatformOSOS Version
Product Version[OCCT] 6.6.0 
Target Version[OCCT] 7.5.0Fixed in Version 
Summary0031762: Visualization, Font_TextFormatter - tabulation length is respected with one extra symbol shift
DescriptionTest 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
TagsNo tags attached.
Test case number3rdparty/fonts/tabs
Attached Filespng file icon tab8_notepad_OK.png (15,252 bytes) 2020-09-12 10:18
png file icon tab8_notepad2_OK.png (12,186 bytes) 2020-09-12 10:18
png file icon tab8_draw_740_KO.png (7,566 bytes) 2020-09-12 10:18
png file icon tab8_draw_750_OK.png (8,516 bytes) 2020-09-12 10:19
png file icon tab8_draw_654_OK.png (9,508 bytes) 2020-09-12 10:35

- Relationships
related to 0030537verifiednds Open CASCADE Visualization - wrapping text in font text formatter 
child of 0023457closedkgv Community Slow text rendering 

-  Notes
(0094529)
kgv (developer)
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?

(0095459)
git (administrator)
2020-09-29 12:09

Branch CR31762 has been created by kgv.

SHA-1: 151be2a7ae5c57c450fd13a58ad61b07eaea4b99


Detailed log of new commits:

Author: kgv
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.
(0095463)
kgv (developer)
2020-09-29 13:48

Please raise the patch
- OCCT branch: CR31762.

http://jenkins-test-12.nnov.opencascade.com:8080/view/CR31762-master-KGV/view/COMPARE/ [^]
(0095627)
bugmaster (administrator)
2020-10-03 14:03

Combination -
OCCT branch : IR-2020-10-02
master SHA - 6522304c17181a09fa831c040219d611dc44b94a
a206de37fbfa0bf71bd534ae47192bbec23b8522
Products branch : IR-2020-10-02 SHA - d9c364e1137eed3249e5a05befa860c708f243c0
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
(0095652)
git (administrator)
2020-10-03 14:38

Branch CR31762 has been deleted by inv.

SHA-1: 151be2a7ae5c57c450fd13a58ad61b07eaea4b99

- Related Changesets
occt: master 6183f3fe
Timestamp: 2020-09-29 09:12:14
Author: abv
Committer: abv
Details ] Diff ]
0031762: Visualization, Font_TextFormatter - tabulation length is respected with one extra symbol shift

Integrate test case for checking various scenarios with tabulation symbol.
add - tests/3rdparty/fonts/tabs Diff ] File ]

- Issue History
Date Modified Username Field Change
2020-09-12 10:18 kgv New Issue
2020-09-12 10:18 kgv Assigned To => kgv
2020-09-12 10:18 kgv File Added: tab8_notepad_OK.png
2020-09-12 10:18 kgv File Added: tab8_notepad2_OK.png
2020-09-12 10:18 kgv File Added: tab8_draw_740_KO.png
2020-09-12 10:19 kgv File Added: tab8_draw_750_OK.png
2020-09-12 10:19 kgv Relationship added related to 0030537
2020-09-12 10:23 kgv Note Added: 0094529
2020-09-12 10:23 kgv Assigned To kgv => nds
2020-09-12 10:23 kgv Status new => assigned
2020-09-12 10:32 kgv Note Edited: 0094529 View Revisions
2020-09-12 10:34 kgv Product Version 7.4.0 => 6.6.0
2020-09-12 10:35 kgv File Added: tab8_draw_654_OK.png
2020-09-12 10:36 kgv Steps to Reproduce Updated View Revisions
2020-09-12 10:42 kgv Relationship added child of 0023457
2020-09-15 19:51 kgv Relationship added related to 0022796
2020-09-29 06:34 nds Target Version 7.5.0 => 7.6.0*
2020-09-29 11:00 kgv Assigned To nds => kgv
2020-09-29 11:00 kgv Target Version 7.6.0* => 7.5.0
2020-09-29 12:09 git Note Added: 0095459
2020-09-29 13:48 kgv Note Added: 0095463
2020-09-29 13:48 kgv Assigned To kgv => bugmaster
2020-09-29 13:48 kgv Status assigned => resolved
2020-09-29 13:48 kgv Status resolved => reviewed
2020-10-03 12:53 bugmaster Test case number => 3rdparty/fonts/tabs
2020-10-03 14:03 bugmaster Note Added: 0095627
2020-10-03 14:03 bugmaster Status reviewed => tested
2020-10-03 14:05 abv Changeset attached => occt master 6183f3fe
2020-10-03 14:05 abv Assigned To bugmaster => abv
2020-10-03 14:05 abv Status tested => verified
2020-10-03 14:05 abv Resolution open => fixed
2020-10-03 14:38 git Note Added: 0095652


Copyright © 2000 - 2020 MantisBT Team
Powered by Mantis Bugtracker