page size, font size, rescaling

Asked by Ross Boylan

I would like to be able to resize my image without changing the font size of text. I also have a related question about changing the page size. The image is entirely based on vector graphics--no bitmaps.

I created graphs with graphviz and combined them with svg_stack (http://github.com/astraw/svg_stack) into an SVG file. When opened in inkscape it had dimensions roughly 5' x 4'. I wanted something that was more like 2'x3'. I did this by selecting all and transforming the size. My concern was that this would shrink the text too far to be legible--the SVG file explicitly mentions text is 14pt.

Does the text get shrunk, or does the 14pt still control the size? The output was still legible and the text was good-sized; I don't think it could be around the 7pt the shrink seems to suggest. So I wonder what size comes out on the page in this situation.

If the text does get shrunk from the overall resize, is there a way to retain the original size? I realize this might result in text appearing outside of ovals that originally contained the text entirely. It may be relevant that the SVG specifies the font size for each piece of text rather than using a global setting.

This leads to my second question about page size. I tried changing the dpi setting in export, but when I saved as pdf the document had exactly the same dimensions as before (with the default 90dpi). Why doesn't changing the dpi change the dimensions of the final output?

As it was I used the resize page to drrawing or selection option in document properties to change the page size.

It would be nice if this material were better documented; I had to hunt around to come up with the select all/scale/fit page sequence.

Thanks.
Ross Boylan

Running Inkscape 0.48 on Debian GNU/Linux.

Question information

Language:
English Edit question
Status:
Expired
For:
Inkscape Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Brynn (brynn4inks-deactivatedaccount) said :
#1

I'm not entirely clear what you're doing. And I probably can't answer your question about dpi.

To keep the text from being scaled with the rest of the image, just don't select the text. Only select the parts that you want to be scaled.

If you want to use Ctrl A, then you can hold the Shift key, and click on the text which deselects it. Then scale everything else. However, when you do this, you may need to move the text afterwards, if the text isn't precisely in the center of everything else, before you start to scale.

Or another idea might be to go ahead and scale everything. Then select the text, and either switch to the Selection tool, and scale with the arrows; or keep with the Text tool, and change the size on the Text control bar.

You could look in the XML Editor yourself, to be sure. But I don't think the 14 pt is kept in the SVG/XML. Once you scale it, Inkscape calculates its new size. In my experience, unless I'm lucky, when I scale the text, it ends up with a decimal point in the size. Rarely can I scale by hand and have and even pt size. But I'm pretty sure the SVG/XML keeps the current, scaled size.

For the dpi issue, do you mean that you exported a PNG at something besides 90 dpi, and then saved the PNG as PDF? If that's what you did, I don't know why it went back to the same size as PDF. After you exported to PNG, did you confirm the PNG was the right size? I wonder if you saved the SVG as PDF, by mistake?

Revision history for this message
Ross Boylan (rossboylan) said :
#2

Thanks for your response. I'll start by answering the questions in the last paragraph.

I did not export to PNG. I used File | save as and selected PDF. It was deliberate; why do you say that's a mistake? My goal was to produce PDF.

The 14pt is being kept in the XML; it was generated by dot/graphviz. However, inkscape says it is 17.5 pt type. The XML has no dpi info (at least it has neither the string "dpi" nor the string "resolution"). 17.5 = 14 * 90/72, so Inkscape seems to have assumed the input was 72dpi and scaled up for 90dpi (inkscape default for export). Since the font size in points is resolution independent, adjusting it for resolution seems odd.

To provide more context, dot produced and svg file that was a graph with nodes containing text and arrows between them. Since there were a lot of nodes and several text elements per node, selecting just the text, or just not the text, would take awhile to do manually, and if I resized the non-text only the text would no longer be in position (as you note).

Revision history for this message
Ross Boylan (rossboylan) said :
#3

Looking more closely, it appears the font sizes are in pixels, so the translation from 14pt to 17.5 px is proper and understandable, given the slightly odd decision to use pixels as the unit.

Revision history for this message
Brynn (brynn4inks-deactivatedaccount) said :
#4

"I did not export to PNG. I used File | save as and selected PDF. It was deliberate; why do you say that's a mistake? My goal was to produce PDF."

I misunderstood what you said.

Unfortunately, as I noted before, I probably won't be much help with the dpi issue. I have no experience with changing the dpi, when saving as PDF. However, I notice just above the "Resolution for rasterization (dpi)" setting, in the Save As PDF dialog, is "Rasterize filter effects". Maybe the dpi setting refers to that, rather than the whole image?? That's just a guess. (PDF files can hold both vector and raster content.)

On the issue of having too many text objects to select or not select, I wonder if the so-called rubberband selection technique might make it easier. Since you have to drag the selection box around entire objects to select them, I've used that in certain situation, to make tricky selections.

Not being able to see your image, I have no idea if that will help. But just in case. Also, if the text is on top of other objects, and it's hard to know where to start/end the drag from outside the image border, remember you can hold Shift and avoid selecting something unintentionally, in the initial click to start the click-drag.

If you decide to try to select the text objects, be sure, after you finally get them selected, to either group, or move to another layer. That will make subsequent selections MUCH easier. Also, you might be able to use grouping, to help in a massive selection process. For example, group every 10 or 20 objects. Then if something happens, like your finger slips off the Shift key, or you select the wrong thing, or whatever, you won't lose the whole selection.

Beyond that, idk. If no one else answers after awhile, I would suggest posting at InkscapeForum.com. You'll get a faster response, and also be able to share the file. Sometimes it's really hard to give good suggestions, without being able to see a file. (I also have a forum for Inkscape, but since I already can't help you much, maybe they can :-) )

Revision history for this message
Launchpad Janitor (janitor) said :
#5

This question was expired because it remained in the 'Open' state without activity for the last 15 days.