View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001406 | Scribus | Scripter | public | 2004-12-17 02:53 | 2008-04-21 20:18 |
Reporter | Assigned To | ||||
Priority | normal | Severity | feature | Reproducibility | always |
Status | confirmed | Resolution | open | ||
Platform | x86 Linux | OS | Fedora Core | OS Version | 1 |
Product Version | 1.3.0cvs | ||||
Summary | 0001406: Add text metrics to scripter | ||||
Description | To be useful for any sort of automatic pagination, the scripter really needs font metrics and text metrics. At minimum, a string width function is required. Something like: stringWidth("Bork! Bork! Bork!", font="Utopia Bold", size=48, kerning=0, hscale=1) without the way to know string widths, it's nigh impossible to decide how big to make frames and where to put them. It would also be extremely useful to have a way to tell when text doesn't fit in a frame, how many lines text takes up in a frame, and how much vertical space a particular block of text will take up in a particular style. | ||||
Tags | No tags attached. | ||||
Patch | |||||
|
This would be nice to have not only for scripter. Could be then used to create automatic lists where the first line indent could be set precisely with any font and font size and those lines would align (even the first line after the bullet, or number what ever is used as a list item symbol) |
|
So far, I haven't been able to see how to do this. Unassigning, though I will continue to look into it. |
|
the font metrics are imho must for em, en, thin etc. space too... |
|
I agree it could be useful to one of these things. For my current needs, I would like to know if a text fit in a frame or not (to resize the frame or change the font size). I think it's not difficult to do. Secondly, knowing the width of a text could be very, very useful. Maybe it could be easier to know the effective height (and the number of lines) of a text in a frame . |
|
Reminder sent to: |
Date Modified | Username | Field | Change |
---|---|---|---|
2004-12-17 02:53 |
|
New Issue | |
2004-12-17 03:19 |
|
Category | Default => Scripter |
2004-12-18 21:24 | Tsoots | Note Added: 0003178 | |
2004-12-20 06:04 |
|
Assigned To | ringerc => |
2004-12-20 06:05 |
|
Note Added: 0003185 | |
2004-12-20 06:05 |
|
Status | assigned => new |
2005-01-01 16:14 | subik | Note Added: 0003313 | |
2005-06-03 09:16 | fcoiffie | Note Added: 0004882 | |
2005-06-04 08:28 |
|
Status | new => confirmed |
2005-06-06 09:19 |
|
Reported by | => ringerc |
2005-06-06 09:19 |
|
Product Version | 1.2.1cvs => 1.3.0cvs |
2005-06-06 09:20 |
|
Relationship added | child of 0002058 |
2005-10-11 16:32 |
|
Relationship added | related to 0002708 |
2006-05-13 21:39 | christoph_s | Relationship added | child of 0003813 |
2008-04-21 20:18 |
|
Note Added: 0019528 |