CADENCE plot to EPS/PS: text export

P

PM

Guest
Are there any plans for "improving" plotting to PS/EPS (schematics),
in particular exporting text as text and not as "ugly" polygons?

Thanks in advance for the diskussion!
 
On Fri, 07 Jan 2005 10:55:13 +0100, PM <pm@gmx.de> wrote:

Are there any plans for "improving" plotting to PS/EPS (schematics),
in particular exporting text as text and not as "ugly" polygons?

Thanks in advance for the diskussion!
Put :residentFonts: in your .cdsplotinit entry. That's exactly what it is for.

Andrew.
 
Why don't you output EPS directly? Just use type=epsf (say) rather than
type=postscript1

Andrew.

On Fri, 07 Jan 2005 08:50:56 -0700, Satya Mishra <snmishra@XXXhotYYYpop.com>
wrote:

"PM" == PM <pm@gmx.de> writes:
PM> Date: Fri, 07 Jan 2005 10:55:13 +0100

PM> Are there any plans for "improving" plotting to PS/EPS
PM> (schematics), in particular exporting text as text and not as
PM> "ugly" polygons?

PM> Thanks in advance for the diskussion!

PM

I have been getting around the system using some ugly hacks. Here's
what I do:

Print to a file using a postscript printer setup.
For example,

--- ~/.cdsplotinit ---
ps-rf|Hewlett-Packard LaserJet 8100, PS: \
:manufacturer=Hewlett-Packard: \
:type=postscript1: \
:spool=lp -d ps: \
:query=lpstat -o ps: \
:remove=cancel $1 ps: \
:pPDFile=/cad/printerDrivers/HP8100_6.PPD: \
:resolution#600: \
:maximumPages#30: \
:residentFonts: \
:eek:ldText: \
:pPD="(A)*PageSize Letter": \
:pPD="(B)*PageSize Tabloid": \
:pPD="(B)*LandscapeOrientation": \
:paperSize="A" 4902 6402 99 99: \
:paperSize="B" 6402 10002 99 99: \
:paperSize="Legal" 4926 8202 90 90: \
:paperSize="A4" 4758 6846 90 90: \
:paperSize="A3" 6846 9720 90 90:
----------------------

Note the :residentFonts: and :eek:ldText: options.

Then use ps2epsi or epstool --bbox on the file to add bounding boxes
and previews as necessary.

Satya
 
Andrew Beckett wrote:
On Fri, 07 Jan 2005 10:55:13 +0100, PM <pm@gmx.de> wrote:

Are there any plans for "improving" plotting to PS/EPS (schematics),
in particular exporting text as text and not as "ugly" polygons?

Thanks in advance for the diskussion!

Put :residentFonts: in your .cdsplotinit entry. That's exactly what it is for.
Thanks Andrew,

this is exactly what I was looking for (since years :-(

But: shouldn't this be the default behavior?
Instead of enable this with a not so obvious filter option.

Postscript can after all handle fonts :)
(in particular scaling).

And further I'm citing now (aware of ":residentFonts:") cdsdoc:

"Uses the plotter's resident fonts instead of the stroked fonts
displayed on the screen. The stroked fonts produce larger files
and plot more slowly."
;-)
 
Andrew Beckett wrote:
On Fri, 07 Jan 2005 10:55:13 +0100, PM <pm@gmx.de> wrote:


Are there any plans for "improving" plotting to PS/EPS (schematics),
in particular exporting text as text and not as "ugly" polygons?

Thanks in advance for the diskussion!


Put :residentFonts: in your .cdsplotinit entry. That's exactly what it is for.
.... but it's not over:

Exporting text as text this way works, but horizontal text is exported
under some small angle (see attachment) :-(
For example: when converting ps to fig (via pstoedit), the text elements
have a slope of 0.0175 (should be 0.0!).
I'm not fluent in postscript, but eventually the problem is in the
/rfsc/rfe/rfc-Definitions (with some rotation in there ...)

Is this a known bug or am I missing some further
magic (filter) option(s)?

Thanks&regards,
PM
 
PM wrote:

... but it's not over:

Exporting text as text this way works, but horizontal text is exported
under some small angle (see attachment) :-(
For example: when converting ps to fig (via pstoedit), the text elements
have a slope of 0.0175 (should be 0.0!).
I'm not fluent in postscript, but eventually the problem is in the
/rfsc/rfe/rfc-Definitions (with some rotation in there ...)

Is this a known bug or am I missing some further
magic (filter) option(s)?
.... this is 5.0.33_USR2.
I have checked also 4.4.6: export is OK!
The problem is definitely in $cds_root/tools/plot/etc/ps.prologue:

4.4.6:
-rwxr-xr-x 1 cds cds 20136 Fri 05 Apr 2002 20:27:51
tools/plot/etc/ps.prologue

5.0.33:
-rwxr-xr-x 1 cds cds 20891 Wed 18 Feb 2004 00:41:00
tools/plot/etc/ps.prologue



PM
 
Andrew Beckett wrote:
I suspect there is a PCR for the PDF idea, but the more people that ask for
this, the more likely it is to get done. I agree entirely...

There's also suggestions to produce windows metafile format, and SVG, and
various other things like that.
PCR 752273 covers this. I'm keen on this and am working a prototype to
be followed by specs and documentation.

--
David Cuthbert (dacut at cadence.com) Tel: (412) 599-1820
Cadence Design Systems R&D
 
Sorry for the delay in replying.

I don't use EPSF directly IIRC, because epsf doesn't support
residentFonts option. I don't like the stroked fonts, either on screen
or in print. I have no idea why it even makes sense to continue using
stroked fonts in this age of fast processors and good scalable font
rendering engines (freetype2 for example).

Enough of my rant. My apologies if my information is incorrect.

Satya


"Andrew" == Andrew Beckett <andrewb@DcEaLdEeTnEcTe.HcIoSm> writes:
Andrew> Date: Sat, 08 Jan 2005 15:56:48 +0000

Andrew> Why don't you output EPS directly? Just use type=epsf
Andrew> (say) rather than type=postscript1

Andrew> Andrew.

Andrew> On Fri, 07 Jan 2005 08:50:56 -0700, Satya Mishra
Andrew> <snmishra@XXXhotYYYpop.com>
Andrew> wrote:

"PM" == PM <pm@gmx.de> writes:
PM> Date: Fri, 07 Jan 2005 10:55:13 +0100

PM> Are there any plans for "improving" plotting to PS/EPS
PM> (schematics), in particular exporting text as text and not as
PM> "ugly" polygons?
PM> Thanks in advance for the diskussion!
PM

I have been getting around the system using some ugly
hacks. Here's what I do:

Print to a file using a postscript printer setup. For example,

--- ~/.cdsplotinit --- ps-rf|Hewlett-Packard LaserJet 8100, PS:
\ :manufacturer=Hewlett-Packard: \ :type=postscript1: \
:spool=lp -d ps: \ :query=lpstat -o ps: \ :remove=cancel $1 ps:
\ :pPDFile=/cad/printerDrivers/HP8100_6.PPD: \ :resolution#600:
\ :maximumPages#30: \ :residentFonts: \ :eek:ldText: \
:pPD="(A)*PageSize Letter": \ :pPD="(B)*PageSize Tabloid": \
:pPD="(B)*LandscapeOrientation": \ :paperSize="A" 4902 6402 99
99: \ :paperSize="B" 6402 10002 99 99: \ :paperSize="Legal"
4926 8202 90 90: \ :paperSize="A4" 4758 6846 90 90: \
:paperSize="A3" 6846 9720 90 90: ----------------------

Note the :residentFonts: and :eek:ldText: options.

Then use ps2epsi or epstool --bbox on the file to add bounding
boxes and previews as necessary.

Satya

--
Remove XXX and YYY to get my address
 
Satya Mishra wrote:
PM> Exporting text as text this way works, but horizontal text is
PM> exported under some small angle (see attachment) :-( For
PM> example: when converting ps to fig (via pstoedit), the text
PM> elements have a slope of 0.0175 (should be 0.0!). I'm not
PM> fluent in postscript, but eventually the problem is in the
PM> /rfsc/rfe/rfc-Definitions (with some rotation in there ...)

PM> Is this a known bug or am I missing some further magic
PM> (filter) option(s)?


If you read my post, you will find the :eek:ldText: option. This fixes
the angled of the text.
Thanks, this should be an option, but as said: it's magic ;-)
Who is here old und who have to be fixed?
Should we call it a feature?
An what about :newText:? or maybe :modernText:?
Anyway 'cdsdoc' won't tell me anything about :eek:ldText:

PM
 
Satya Mishra wrote:
I got this answer from a CAD support person at our company. Apparently
it is documented on Sourcelink. But the description is not very
obvious.

Glad that it helped.
Satya
Thank you Satya for your discussion readiness,
may be someone with CADENCE should participate too??

PM
 
Andrew Beckett wrote:

There's also suggestions to produce windows metafile format, and SVG,
and
various other things like that.
Cadence users regularly use our ps2vector software to batch convert
PS/EPS output to SVG, WMF, EMF, CGM, MIF, DXF or HPGL vector formats.
Or, the ps2bitmap module to render to a TIFF, GIF or JPEG raster image
at any dpi resolution. The software is commercially available on Sun
Solaris, HP-UX, AIX, Linux and Windows platforms. More info at the URL
below. Please contact me directly if interested.

Jeroen Dekker
--
Square One - The Graphics Connection
Visit http://www.square1.nl/index.htm
jeroen@square1.nl
 
On Tue, 11 Jan 2005 12:52:53 -0700, Satya Mishra <snmishra@XXXhotYYYpop.com>
wrote:

Sorry for the delay in replying.

I don't use EPSF directly IIRC, because epsf doesn't support
residentFonts option. I don't like the stroked fonts, either on screen
or in print. I have no idea why it even makes sense to continue using
stroked fonts in this age of fast processors and good scalable font
rendering engines (freetype2 for example).

Enough of my rant. My apologies if my information is incorrect.

Satya
This is wrong. epsf _DOES_ support :residentFonts:

I just tried it and proved that it works.

Andrew.
 
"PM" == PM <pm@gmx.de> writes:
PM> Date: Fri, 07 Jan 2005 10:55:13 +0100

PM> Are there any plans for "improving" plotting to PS/EPS
PM> (schematics), in particular exporting text as text and not as
PM> "ugly" polygons?

PM> Thanks in advance for the diskussion!

PM

I have been getting around the system using some ugly hacks. Here's
what I do:

Print to a file using a postscript printer setup.
For example,

--- ~/.cdsplotinit ---
ps-rf|Hewlett-Packard LaserJet 8100, PS: \
:manufacturer=Hewlett-Packard: \
:type=postscript1: \
:spool=lp -d ps: \
:query=lpstat -o ps: \
:remove=cancel $1 ps: \
:pPDFile=/cad/printerDrivers/HP8100_6.PPD: \
:resolution#600: \
:maximumPages#30: \
:residentFonts: \
:eek:ldText: \
:pPD="(A)*PageSize Letter": \
:pPD="(B)*PageSize Tabloid": \
:pPD="(B)*LandscapeOrientation": \
:paperSize="A" 4902 6402 99 99: \
:paperSize="B" 6402 10002 99 99: \
:paperSize="Legal" 4926 8202 90 90: \
:paperSize="A4" 4758 6846 90 90: \
:paperSize="A3" 6846 9720 90 90:
----------------------

Note the :residentFonts: and :eek:ldText: options.

Then use ps2epsi or epstool --bbox on the file to add bounding boxes
and previews as necessary.

Satya

--
Remove XXX and YYY to get my address
 
Historically people wanted the text to look exactly the same on paper as it
did on the screen. Many, many years back (before I joined Cadence, and that
was nearly 10 years ago now), :residentFonts: was added.

The trouble is that changing the defaults inevitably upsets customers - so the
default was left as it was.

Regards,

Andrew.

On Mon, 10 Jan 2005 07:57:05 +0100, PM <pm@gmx.de> wrote:

Andrew Beckett wrote:
On Fri, 07 Jan 2005 10:55:13 +0100, PM <pm@gmx.de> wrote:

Are there any plans for "improving" plotting to PS/EPS (schematics),
in particular exporting text as text and not as "ugly" polygons?

Thanks in advance for the diskussion!

Put :residentFonts: in your .cdsplotinit entry. That's exactly what it is for.

Thanks Andrew,

this is exactly what I was looking for (since years :-(

But: shouldn't this be the default behavior?
Instead of enable this with a not so obvious filter option.

Postscript can after all handle fonts :)
(in particular scaling).

And further I'm citing now (aware of ":residentFonts:") cdsdoc:

"Uses the plotter's resident fonts instead of the stroked fonts
displayed on the screen. The stroked fonts produce larger files
and plot more slowly."
;-)
 
Andrew Beckett wrote:
Why don't you output EPS directly? Just use type=epsf (say) rather than
type=postscript1
My experience with epsf was that the plot was in colour. As the
background is white, not all colours are easy to read. I normally plot
to B/W laser, and then colour plots result in almost unreadable elements.

Maybe this has changed lately.

My biggest problem is the more or less random output of pages when
plotting a large design, and that these are all self contained plot
files with a large prolog making the plot take forever. I used to have a
script that cat'ed the postscript files together and removed all but
the first prolog. When using this, plotting took almost no time as the
prolog contain the definition of all the stiched fonts, as far as I
coult tell.

Maybe Cadence would optimize the plot routines, they could definitively
become a bit more PDF friendly. PDF wasn't the state-of art back then,
but it is now. Shouldn't be too much work, and PDF standard is open.
Maybe enough engineers should stand up and shout "me too" until somebody
get the message.

Could also be that ths is a PCR somewhere.

Kind regards,
--
Svenn
 
On Mon, 10 Jan 2005 15:09:39 +0100, Svenn Are Bjerkem <svenn.are@bjerkem.de>
wrote:

Andrew Beckett wrote:
Why don't you output EPS directly? Just use type=epsf (say) rather than
type=postscript1


My experience with epsf was that the plot was in colour. As the
background is white, not all colours are easy to read. I normally plot
to B/W laser, and then colour plots result in almost unreadable elements.

Maybe this has changed lately.

My biggest problem is the more or less random output of pages when
plotting a large design, and that these are all self contained plot
files with a large prolog making the plot take forever. I used to have a
script that cat'ed the postscript files together and removed all but
the first prolog. When using this, plotting took almost no time as the
prolog contain the definition of all the stiched fonts, as far as I
coult tell.

Maybe Cadence would optimize the plot routines, they could definitively
become a bit more PDF friendly. PDF wasn't the state-of art back then,
but it is now. Shouldn't be too much work, and PDF standard is open.
Maybe enough engineers should stand up and shout "me too" until somebody
get the message.

Could also be that ths is a PCR somewhere.

Kind regards,
epsf comes in a variety of different flavours - epsfi (with a preview
image), epsfiC (preview image, colour), etc - not very well documented
(I have a PCR on that).

I suspect there is a PCR for the PDF idea, but the more people that ask for
this, the more likely it is to get done. I agree entirely...

There's also suggestions to produce windows metafile format, and SVG, and
various other things like that.

Andrew.
 
"PM" == PM <pm@gmx.de> writes:
PM> Date: Tue, 11 Jan 2005 13:08:49 +0100

PM> Andrew Beckett wrote:
On Fri, 07 Jan 2005 10:55:13 +0100, PM <pm@gmx.de> wrote:
Are there any plans for "improving" plotting to PS/EPS
(schematics), in particular exporting text as text and not as
"ugly" polygons?

Thanks in advance for the diskussion!
Put :residentFonts: in your .cdsplotinit entry. That's exactly
what it is for.
PM> ... but it's not over:

PM> Exporting text as text this way works, but horizontal text is
PM> exported under some small angle (see attachment) :-( For
PM> example: when converting ps to fig (via pstoedit), the text
PM> elements have a slope of 0.0175 (should be 0.0!). I'm not
PM> fluent in postscript, but eventually the problem is in the
PM> /rfsc/rfe/rfc-Definitions (with some rotation in there ...)

PM> Is this a known bug or am I missing some further magic
PM> (filter) option(s)?

PM> Thanks&regards, PM

PM

If you read my post, you will find the :eek:ldText: option. This fixes
the angled of the text.

Satya

--
Remove XXX and YYY to get my address
 
"PM" == PM <pm@gmx.de> writes:
PM> Date: Wed, 12 Jan 2005 08:12:20 +0100

PM> Satya Mishra wrote: Exporting text as text this way works, but
PM> horizontal text is exported under some small angle (see
PM> attachment) :-( For example: when converting ps to fig (via
PM> pstoedit), the text elements have a slope of 0.0175 (should be
PM> 0.0!). I'm not fluent in postscript, but eventually the
PM> problem is in the /rfsc/rfe/rfc-Definitions (with some
PM> rotation in there ...) Is this a known bug or am I missing
PM> some further magic (filter) option(s)?
If you read my post, you will find the :eek:ldText: option. This
fixes the angled of the text.
PM> Thanks, this should be an option, but as said: it's magic ;-)
PM> Who is here old und who have to be fixed? Should we call it a
PM> feature? An what about :newText:? or maybe :modernText:?
PM> Anyway 'cdsdoc' won't tell me anything about :eek:ldText:

PM> PM

I got this answer from a CAD support person at our company. Apparently
it is documented on Sourcelink. But the description is not very
obvious.

Glad that it helped.
Satya

--
Remove XXX and YYY to get my address
 
"Andrew" == Andrew Beckett <andrewb@DcEaLdEeTnEcTe.HcIoSm> writes:
Andrew> Date: Tue, 01 Feb 2005 14:19:12 +0000

Andrew> On Tue, 11 Jan 2005 12:52:53 -0700, Satya Mishra
Andrew> <snmishra@XXXhotYYYpop.com>
Andrew> wrote:

Sorry for the delay in replying.

I don't use EPSF directly IIRC, because epsf doesn't support
residentFonts option. I don't like the stroked fonts, either on
screen or in print. I have no idea why it even makes sense to
continue using stroked fonts in this age of fast processors and
good scalable font rendering engines (freetype2 for example).

Enough of my rant. My apologies if my information is incorrect.

Satya
Andrew> This is wrong. epsf _DOES_ support :residentFonts:

Andrew> I just tried it and proved that it works.

Andrew> Andrew.

Andrew

My apologies for the incorrect information. For some reason I had it
in my mind that :residentFonts: didn't work with epsf. I also tried it
and it does work.

As usual you are correct!

Satya



--
Remove XXX and YYY to get my address
 

Welcome to EDABoard.com

Sponsor

Back
Top