After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 172833 - When exporting eps some text strings are tiny
When exporting eps some text strings are tiny
Status: RESOLVED DUPLICATE of bug 153609
Product: dia
Classification: Other
Component: exports
0.94
Other Linux
: Normal major
: ---
Assigned To: Dia maintainers
Dia maintainers
Depends on:
Blocks:
 
 
Reported: 2005-04-06 16:41 UTC by Karl O. Pinc
Modified: 2005-06-18 18:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Dia file (made on Windows 0.94) exhibiting problem (157.96 KB, text/plain)
2005-04-06 16:48 UTC, Karl O. Pinc
Details
Exported eps file showing problem with small text (338.88 KB, application/postscript)
2005-04-06 16:50 UTC, Karl O. Pinc
Details

Description Karl O. Pinc 2005-04-06 16:41:43 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.
Comment 1 Karl O. Pinc 2005-04-06 16:42:47 UTC
Workaround is to interactivly export as eps
on Windows and then transfer the files.
Comment 2 Lars Clausen 2005-04-06 16:45:12 UTC
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 ***
Comment 3 Karl O. Pinc 2005-04-06 16:48:14 UTC
Created attachment 39757 [details]
Dia file (made on Windows 0.94) exhibiting problem

Source .dia file for re-creating the problem.
Comment 4 Karl O. Pinc 2005-04-06 16:50:49 UTC
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
Comment 5 Karl O. Pinc 2005-04-06 17:03:00 UTC
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.
Comment 6 Alan Horkan 2005-04-06 18:31:05 UTC
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).  
Comment 7 Lars Clausen 2005-04-06 19:45:48 UTC
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.
Comment 8 Karl O. Pinc 2005-06-18 18:40:34 UTC
Exporting with eps-builtin works.