View Issue Details

IDProjectCategoryView StatusLast Update
0012190ScribusTypographypublic2022-12-11 21:30
ReporterPeterBenedek Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status confirmedResolutionopen 
Platformx86OSLinux Mint OS Version16 (32bit)
Product Version1.5.0svn 
Target Version1.5.4 
Summary0012190: Incorrect text align in textbox when applying "Adjust Frame Height to Text" (see last line)
DescriptionEnvironment: Linux Mint 16 "Petra"
Version: Scribus 1.5.0 (https://launchpad.net/~scribus/+archive/ppa)
Language: HU

"Fixed Linespacing" and "Align Baseline".
Incorrectly aligns the last line, if use "Adjust Frame Height to Text" function.


Link this video: https://www.dropbox.com/s/3nljdgdrzgy810b/example.avi
Additional Information1st pic: still everything ok
2nd pic: increased font size by 1 pt
3rd pic: maximum ascent
4th pic: font ascent
5th pic: Has this anything to do with that? text editor and marked all the text - there is no space or other sign, just enter for the next line.
Tags#tobeclosed, layout, scribusctl
PatchNo

Relationships

related to 0014668 new Adjust frame height to text fails if frame is not tall enough to display text. 
has duplicate 0013350 closedjghali Bug - Text Boxes 'Adjust Frame Height to Text' distorts formatting 
has duplicate 0013542 closedjghali Alignment of 2nd line changes 
has duplicate 0012754 closedPeterBenedek No "text align right" for last line of bottom aligned text 
has duplicate 0016613 closedjghali When adjusting frame height to text on a text box, the the justification of the text is lost 
related to 0010430 closedKunda text frames lost preferences 
related to 0015153 confirmed "Adjust Frame Height to Text" does not always work 

Activities

Kunda

2014-08-12 21:54

updater   ~0033240

Confirmed on OSX 10.8.5 1.5.0svn r19415

Kunda

2015-11-15 15:30

updater   ~0037501

Conversation started on ML: http://lists.scribus.net/pipermail/scribus-dev/2015-November/002732.html

Hello,

I am working on the issue
http://bugs.scribus.net/view.php?id=12190
From the behaviour of the problem I think that the problem hear comes
from the code responsible of the "fixed linspacing" and "align to
baseline grid". I found in scribusdoc.cpp  the function
itemSelection_SetLineSpacingMode. This function calls an other
function called setLineSpacingMode(int) and pass integer variable
represent the choice of the mode of the line spaceing (fixed = 0 ,
auto  = 1 , align to baseline=2) .  Unfortunately, I did not found the
code of this function. Does any one has an idea ?

Ibrahim

Kunda

2015-11-18 11:23

updater   ~0037533

Last edited: 2016-03-24 14:46

Also check out screenshots in 0013542 (Thx Laser)
Merged in to this ticket

Kunda

2016-01-15 20:26

updater  

center1.png (48,298 bytes)   
center1.png (48,298 bytes)   

Kunda

2016-01-15 20:27

updater  

center2.png (46,869 bytes)   
center2.png (46,869 bytes)   

Kunda

2016-01-15 20:27

updater  

center3.png (52,342 bytes)   
center3.png (52,342 bytes)   

Kunda

2016-01-15 20:27

updater  

center4.png (50,435 bytes)   
center4.png (50,435 bytes)   

Kunda

2016-01-15 20:27

updater  

center5.png (2,882 bytes)   
center5.png (2,882 bytes)   

Kunda

2016-03-24 14:52

updater   ~0039385

Persists on 1.5.2svn 21112 (post Host-Oman 'boxes' branch merge)

Kunda

2016-03-24 14:55

updater  

adjust-frame-to-height-bug.gif (96,326 bytes)   
adjust-frame-to-height-bug.gif (96,326 bytes)   

Kunda

2016-05-21 15:03

updater   ~0041286

Test document to check once fix is proposed for this ticket:
https://bugs.scribus.net/file_download.php?file_id=5570&type=bug
from 0010430

PeterBenedek

2016-06-07 15:51

developer  

test.zip (553,061 bytes)

PeterBenedek

2016-06-07 15:55

developer   ~0041626

Upload test.zip (and the result 0012190.png)

PeterBenedek

2016-06-07 15:55

developer  

0012190.png (54,003 bytes)   
0012190.png (54,003 bytes)   

Kunda

2016-11-24 14:26

updater   ~0042526

Last edited: 2016-11-24 14:33

@PeterBenedek This is fixed in latest CTL
Can you test it in CTL ?
Download: https://transfer.sh/hH7YH/scribus-gite0a850c-glibc2.14-x86-64.appimage
Do: chmod +x scribus-gite0a850c-glibc2.14-x86-64.appimage
Run: ./scribus-gite0a850c-glibc2.14-x86-64.appimage

Edit: Meaning I can't reproduce the bug shown in: https://www.dropbox.com/s/3nljdgdrzgy810b/example.avi

PeterBenedek

2016-11-25 08:07

developer  

example.mp4 (3,060,524 bytes)   

PeterBenedek

2016-11-25 08:18

developer   ~0042544

Tested the appimage file.

Excellent work!

The original problem is really solved, but there is a small fault.
If text not included (j, g, y, -- hanging character) and I use "Fixed line spacing, or "Align to Baseline Grid", it does not work well (example.mp4)

Kunda

2016-11-25 10:12

updater   ~0042545

@PeterBenedek Question, how are you triggering 'Adjust frame to Height of textbox' without using the mouse right click menu? What shortcut are you using?

@fahad great work you guys did in CTL. As Peter mentioned above can you reproduce the remaining issue ?

PeterBenedek

2016-11-25 11:17

developer   ~0042548

Last edited: 2016-11-25 11:30

Double click at lower-middle point. This is an old feature.

Further test results: 0012190.gif

PeterBenedek

2016-11-25 11:30

developer  

0012190.gif (703,202 bytes)   
0012190.gif (703,202 bytes)   

Fahad

2016-11-25 16:50

developer   ~0042553

No at least for my limited testing time. If there is any bug in CTL branch, please submit it here:
https://github.com/HOST-Oman/scribus/issues

Kunda

2016-11-25 21:43

updater   ~0042554

@peterbenedek do you mind opening this bug in CTL ?

Issue History

Date Modified Username Field Change
2014-04-03 13:21 PeterBenedek New Issue
2014-04-07 15:41 JLuc Tag Attached: layout
2014-08-12 21:54 Kunda Note Added: 0033240
2014-08-12 21:54 Kunda Status new => confirmed
2014-08-12 21:54 Kunda Target Version => 1.5.1
2015-09-14 13:56 jghali Relationship added has duplicate 0013350
2015-11-15 15:30 Kunda Note Added: 0037501
2015-11-18 10:04 jghali Relationship added has duplicate 0013542
2015-11-18 11:23 Kunda Note Added: 0037533
2016-01-15 20:26 Kunda File Added: center1.png
2016-01-15 20:27 Kunda File Added: center2.png
2016-01-15 20:27 Kunda File Added: center3.png
2016-01-15 20:27 Kunda File Added: center4.png
2016-01-15 20:27 Kunda File Added: center5.png
2016-01-15 20:28 Kunda Patch => No
2016-01-15 20:28 Kunda Additional Information Updated
2016-01-23 17:16 cbradney Target Version 1.5.1 => 1.5.3
2016-03-24 14:46 Kunda Note Edited: 0037533
2016-03-24 14:52 Kunda Note Added: 0039385
2016-03-24 14:52 Kunda Summary Incorrect text align in textbox (final line). => Incorrect text align in textbox when applying "Adjust Frame Height to Text" (see last line)
2016-03-24 14:55 Kunda File Added: adjust-frame-to-height-bug.gif
2016-05-21 15:01 Kunda Relationship added related to 0010430
2016-05-21 15:03 Kunda Note Added: 0041286
2016-06-07 11:49 PeterBenedek Relationship added duplicate of 0012754
2016-06-07 15:18 PeterBenedek Relationship deleted 0012754
2016-06-07 15:19 PeterBenedek Relationship added has duplicate 0012754
2016-06-07 15:51 PeterBenedek File Added: test.zip
2016-06-07 15:55 PeterBenedek Note Added: 0041626
2016-06-07 15:55 PeterBenedek File Added: 0012190.png
2016-11-24 14:26 Kunda Note Added: 0042526
2016-11-24 14:27 Kunda Tag Attached: #tobeclosed
2016-11-24 14:31 Kunda Tag Attached: scribusctl
2016-11-24 14:33 Kunda Note Edited: 0042526
2016-11-25 08:07 PeterBenedek File Added: example.mp4
2016-11-25 08:18 PeterBenedek Note Added: 0042544
2016-11-25 10:12 Kunda Note Added: 0042545
2016-11-25 11:17 PeterBenedek Note Added: 0042548
2016-11-25 11:30 PeterBenedek Note Edited: 0042548
2016-11-25 11:30 PeterBenedek File Added: 0012190.gif
2016-11-25 16:50 Fahad Note Added: 0042553
2016-11-25 21:43 Kunda Note Added: 0042554
2016-12-08 22:04 Kunda Target Version 1.5.3 => 1.5.4
2018-02-22 07:58 PeterBenedek Relationship added duplicate of 0015153
2021-08-11 05:07 PeterBenedek Relationship added duplicate of 0016613
2021-08-11 14:16 jghali Relationship replaced has duplicate 0016613
2022-02-06 20:41 jghali Relationship replaced related to 0015153
2022-12-10 17:42 JLuc Relationship added related to 0014668
2022-12-11 18:46 PeterBenedek Relationship added has duplicate 0016871
2022-12-11 21:30 jghali Relationship deleted has duplicate 0016871