View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0015732 | Scribus | Scripter | public | 2019-07-04 14:21 | 2019-07-30 21:27 |
Reporter | adn | Assigned To | jghali | ||
Priority | normal | Severity | trivial | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 1.4.8 | ||||
Fixed in Version | 1.4.9.svn | ||||
Summary | 0015732: setFontSize() changes only 1 character | ||||
Description | The function setFontSize() changes only the first charcter of a selected text part. I want to change the font of text in a textbox to Tohoma Regular 11pts. The total selected text becomes Tohoma Regular, but only the first character becomes 11pts while the rest remains in the old 12pts size. | ||||
Steps To Reproduce | numsel = scribus.selectionCount() if (numsel == 1): item = scribus.getSelectedObject() if item[0:4] == 'Text': scribus.setFont('Tahoma Regular') scribus.setFontSize(11.0,item) else: message = 'This function can only be applied at text boxes!' res1 = scribus.messageBox('Error',message,scribus.ICON_WARNING) else: res2 = scribus.messageBox('Error','No text selected!',scribus.ICON_WARNING) | ||||
Additional Information | The Python code is given in "Steps To Reproduce". The screen copies before.png and after.png show the effect. The text "format()" at the end of the first alinea has been changed with this script. The original font was Times New Roman Regular 12pts. Only the first character has become 11pts and the rest remain 12pts. | ||||
Tags | No tags attached. | ||||
Patch | No | ||||
|
|
|
This issue was in fact solved rather recently, last October, in our development branch whose next release is going to be 1.5.5. Despite our 1.4.x branch being pretty much end of life, I took the liberty to backport the fix to our 1.4.x branch. There probably won't be a 1.4.9 release, so this commit is mostly for Linux distros who like to pick selected fixes. |
Date Modified | Username | Field | Change |
---|---|---|---|
2019-07-04 14:21 | adn | New Issue | |
2019-07-04 14:21 | adn | File Added: before.png | |
2019-07-04 14:21 | adn | File Added: after.png | |
2019-07-04 22:02 | jghali | Assigned To | => jghali |
2019-07-04 22:02 | jghali | Status | new => resolved |
2019-07-04 22:02 | jghali | Resolution | open => fixed |
2019-07-04 22:02 | jghali | Fixed in Version | => 1.4.9.svn |
2019-07-04 22:02 | jghali | Note Added: 0046362 | |
2019-07-04 22:05 | jghali | Note Edited: 0046362 | |
2019-07-30 21:27 | cbradney | Status | resolved => closed |