Gramps Bugtracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001239Feature RequestsReportspublic2007-09-18 21:162008-06-01 20:02
Reporterdrbeams 
Assigned To 
PrioritynormalSeverityfeatureReproducibilityalways
StatusfeedbackResolutionopen 
PlatformAnyOSAnyOS VersionAny
Summary0001239: Fit to Font Size option for Relationship Graph
DescriptionAn option for the paper to "fit to font size" for the output. By fitting the paper size to the font size, you get a custom size paper.

Code Generators, Relationship Graph, Paper Size

TagsNo tags attached.
Attached Files

- Relationships
related to 0001734resolvedpez4brian Errors in GraphViz reports, generated for more than one page. 

-  Notes
(0002907)
bmcage (administrator)
2007-09-20 00:25

I think this is out of our control. We pass commands to the Graphviz program, that makes the page.
One of the things we can pass is font size. So the user must determine by trial and error what the good fontsize is, combined with number of pages and paper size.

As graphviz has no options to automatically set fontsize to paper size relation, there is nothing else we can do.
(0002910)
drbeams (developer)
2007-09-20 11:49

Someone is looking at this. The solution has been proposed, but has not been tried yet.
(0002913)
bmcage (administrator)
2007-09-20 14:30

Reminder sent to: pez4brian

drbeams/Ahmuck says you will look at this. Hope your idea works, remember changing dot page numbers to get fontsize/pagenumber ration ok for printing
(0003475)
pez4brian (administrator)
2007-10-12 20:10

I did some tests. If we don't specify a paper size, Graphviz will render the graph in the optimal size. We could easily add an option to ignore paper specification. There is one snag, however - PDF. PDF generation requires that we specify a paper size.

It is quite easy for a user to do this themselves. They can just generate a .dot file, remove the paper specifications from the file, and then use Graphviz to generate the graph.

So, while this is possible, I'm not sure how to handle PDF. Suggestions are welcome.

One question is this: do we need this? Don't users usually want to specify the size of the graph? If they are worried about the size being too small - causing fonts to be grainy - they can just choose a really large paper size.
(0003479)
johan (reporter)
2007-10-13 02:01

Firstly, I would think anything that, for a user, is a simple modification of a text file, would also be a simple modification of a text file for a python program.

Secondly: For printing: No, I, as a user, would not use that feature at the moment. I have instead used the feature "use optimal number of pages", and I always select the paper size.
When creating flash-files, I would use this if I could generate them from pdfs such as to include links to the narrative web-site, bacause then I would like to use a minimal paper size, and only one page, but I think I failed using pdf2swf (http://www.swftools.org/ [^]) for some reason.
(0004975)
bmcage (administrator)
2008-02-11 01:25

Johan, for swf, did you pass over ps file or not?
As in http://www.gramps-project.org/wiki/index.php?title=Make_flash_plugin_from_a_png [^]
(0004985)
johan (reporter)
2008-02-11 04:04

On using pdf2swf:
I do not remember what I used at that time. When trying now, I succeed, except for the ps2pdf step, which only captures part of the ps document. The forum for discussing that is not here, though.

On the question: Is this feature useful:
I said I might this feature for generating flash files.
For practical use, generating an svg file instead of has been proposed, and was discarded by me as being to inefficient to use in viewers. In a firefox 3 beta on ubuntu gutsy, performance for viewing svg files is very usable for me (some 800 individuals in the graph), and thus I will aim at not using flash anymore.

Therefore, my reason for wanting this feature is probably not valid anymore.

- Issue History
Date Modified Username Field Change
2007-09-18 21:16 drbeams New Issue
2007-09-20 00:25 bmcage Note Added: 0002907
2007-09-20 11:49 drbeams Note Added: 0002910
2007-09-20 14:30 bmcage Note Added: 0002913
2007-09-27 20:50 pez4brian Status new => assigned
2007-09-27 20:50 pez4brian Assigned To => pez4brian
2007-10-12 20:10 pez4brian Note Added: 0003475
2007-10-12 20:11 pez4brian Status assigned => feedback
2007-10-13 02:01 johan Note Added: 0003479
2008-02-10 19:57 pez4brian Relationship added related to 0001734
2008-02-11 01:25 bmcage Note Added: 0004975
2008-02-11 04:04 johan Note Added: 0004985
2008-06-01 20:02 pez4brian Assigned To pez4brian =>


MantisBT 1.2.14 [^]
Copyright © 2000 - 2013 MantisBT Team
Powered by Mantis Bugtracker