Hi Jean-Marie,
Thank you for your ideas. It would be wonderful to be able to get
into the postscript directly and work with labels, or have some special
options like you describe. But, Ferret does all graphics output through its
version of PPLUS, which draws the fonts as graphics primitives using
GKS graphics calls. Ferret does not directly write postscript in any of
its modes, including the -batch mode. So I think Billy's suggestions are
where we stand.
Ansley
Jean-Marie Beckers wrote:
Adding just a few additional strings on an EPS file is not a problem; I
was really more interested in having a way to ged rid of ALL drawn
letters, including labels etc and to have them as hardware caracters
I'm not a Ferret/PPL expert so the lines of action I can think are the
following:
One could add into the font table an additional font @HW (hardware font)
which is just the copy of the default font.
The @HW "command" when USING fonts could then be used as a FLAG setting
which could be used at the lowest level routine that plots characters
to replace its standart way of plotting caracters by a suitable
piece of postscript or other replacement code.
The problem is that if ferret ALWAYS gets through a metafile (does
-batch
simple chain the operations or does it directly produce postscript ??)
then these postscript commands should be made "special commands"
understood and treated
differently by Fprint.
This would only work when producing postscript and the user should not
use
@HW when plotting in X.
If the intermediate Metafile accepts "comments" in it, another
possibility would simply to add before and after each caracter to be
plotted a specific comment that can be interpreted by Fprint so that it
can replace the
drawing sequence between these two comments by a postscript call to a
text placement. This approach would then also work on X.
This would ask for recoding and a new compilation, probably only
possible
for someone used to the code ?
Billy Kessler a écrit :
One solution is to convert postscript out of ferret into encapsulated postscript (eps) files, then bring the postscript in to a word processor (e.g. WOrdPerfect), and add whatever titles, captions, etc are needed. I do this frequently. Conversion to eps can be done with the unix shell script ps2epsi (part of the ghostscript freeware package). The change is small, just adding the "bounding box" statement. THe word processor treatment is not suitable for axis or contour labels and other small things, but I routinely make ferret postscript with no titles, then add titles and a caption in WordPerfect. One hint if you are doing this is to use Fprint -p portrait if the page you will be putting the graphic on is in portrait orientation. Wordperfect allows rotation but it is easier to get the size and spacing right if the ferret postscript is already that way. Billy K On Wed, 17 Apr 2002, Olivier Marti wrote:Le 16/04/02 20:02, « Ansley Manke » <ansley@pmel.noaa.gov> a écrit :I've already tried to edit Ferret PostScript with Adobe Illustrator, and IHello Jean-Marie, There is not a way to change to system fonts within Ferret or the postprocessing done by Fprint. Possibly the best solution is to use a graphics tool such as Illustrator. Has anyone done this? It sounds as if you have some ideas; if you work out methods of customizing your plots, please post them to the Users' group. Ansley Manke
was very disapointed. Ferret does not include any character in the graphic
file. Instead, all characters are emulated through graphic primitives.
Editing the PostScript means removing all emulated 'characters' to replace
them by actual ones. This is a real pain.
This comes from the metafile generated by Ferret, and thus cannot be change
by a smarter version of Fprint.
Olivier
--
/ Olivier MARTI mailto:olivier.marti@cea.fr \
| Laboratoire des Sciences du Climat et de l'Environnement |
| Tel: +33 1 69 08 77 27 Fax: +33 1 69 08 77 16 |
\ <http://www.ipsl.jussieu.fr/~omamce> /