Mantis Issue Tracking for Scribus
· Hosting provided by Anduin.net / Øverby Consulting ·

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001406ScribusScripterpublic04-Dec-17 03:5308-Apr-21 22:18
Reporterringerc 
Assigned To 
PrioritynormalSeverityfeatureReproducibilityalways
StatusconfirmedResolutionopen 
Platformx86 LinuxOSFedora CoreOS Version1
Product Version1.3.0cvs 
Target VersionFixed in Version 
Summary0001406: Add text metrics to scripter
DescriptionTo 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.
TagsNo tags attached.
Attached Files

- Relationships
related to 0002708closedcezaryece Autosizing of frames 
child of 0002058assignedavox Text and font metrics 
child of 0003813acknowledged Metabug: Scripter 

-  Notes
(0003178)
Tsoots (manager)
04-Dec-18 22:24

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)
(0003185)
ringerc (administrator)
04-Dec-20 07:05

So far, I haven't been able to see how to do this. Unassigning, though I will continue to look into it.
(0003313)
subik (manager)
05-Jan-01 17:14

the font metrics are imho must for em, en, thin etc. space too...
(0004882)
fcoiffie (reporter)
05-Jun-03 11:16

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 .
(0019528)
plinnell (administrator)
08-Apr-21 22:18

Reminder sent to: user23


- Issue History
Date Modified Username Field Change
04-Dec-17 03:53 ringerc New Issue
04-Dec-17 04:19 ringerc Category Default => Scripter
04-Dec-18 22:24 Tsoots Note Added: 0003178
04-Dec-20 07:04 ringerc Assigned To ringerc =>
04-Dec-20 07:05 ringerc Note Added: 0003185
04-Dec-20 07:05 ringerc Status assigned => new
05-Jan-01 17:14 subik Note Added: 0003313
05-Jun-03 11:16 fcoiffie Note Added: 0004882
05-Jun-04 10:28 ringerc Status new => confirmed
05-Jun-06 11:19 ringerc Product Version 1.2.1cvs => 1.3.0cvs
05-Jun-06 11:20 ringerc Relationship added child of 0002058
05-Oct-11 18:32 ringerc Relationship added related to 0002708
06-May-13 23:39 christoph_s Relationship added child of 0003813
08-Apr-21 22:18 plinnell Note Added: 0019528



Copyright © 2000 - 2014 MantisBT Team
Powered by Mantis Bugtracker