GNOME Bugzilla – Bug 172833
When exporting eps some text strings are tiny
Last modified: 2005-06-18 18:40:34 UTC
Distribution/Version: Centos 3.3 (rebranded RH ES 3.3) Create document with Dia 0.94 on MS Windows (XP, from binary dia downloaded from dia site.) Exporting interactively to eps from Dia on Windows works fine. Transfer the .dia file to Centos 3.3 (which is RH ES 3.3). Use the following commands to export eps: dia --export=sex.eps --export-to-format=eps-pango sex.dia or dia --export=sex.eps --export-to-format=eps sex.dia Some of the text strings in the resultant document are tiny, some are normal. You see this when viewing the document interactively with ggv, using pstopnm|pnmtopng, or using ImageMagick/convert to convert to png. Examination of the sex.dia xml file reveals no distinguishable difference between the text that shows up small and other text. FWIW, see also bug # 172830, which describes another trivial problem that occurs when the above export commands are run.
Workaround is to interactivly export as eps on Windows and then transfer the files.
Thanks for your bug report. This particular bug has already been reported, but more reports are always welcome. *** This bug has been marked as a duplicate of 153609 ***
Created attachment 39757 [details] Dia file (made on Windows 0.94) exhibiting problem Source .dia file for re-creating the problem.
Created attachment 39759 [details] Exported eps file showing problem with small text EPS file exported with dia --export=sex.eps --export-to-format=eps-pango sex.dia
BTW, the only way I've found to get a DIA document into docbook (4.2) is to export as eps and use a filter to turn the eps into a relatively high resolution raster image (PNG or whatnot) Something like the ImageMagick convert -antialias -density 600x600 foo.eps foo.png does the trick. Then use the raster image in your docbook xml, telling it to scale the image. <imagedata scalefit="1" width="6in" fileref="foo.png" format="PNG" /> If you do a regular png or other export the resolution is terrible and the image comes out all fuzzy, at least if you generate PDF output. Likely later versions of docbook will accept vector image formats, but in the mean time this works. Without an ability to get a dia diagram into print or onto the web the program is kinda useless to me. When parts of the diagram come out entirely unreadable the diagram as a whole is no good.
If it is really PDF that you are interested in it might be worth noting that Hans has been experimenting with adding gnome-print support (which provides PDF export).
You can get pngs of high resolution from Dia directly by exporting and setting the size of the output image. Unfortunately, there's no way to set the resolution directly. If you're not using anything but the standard 13 postscript fonts, you can also try exporting with eps-builtin.
Exporting with eps-builtin works.