Re: fonts in coyote graphics: how to replicate supermongo? [message #82441] |
Mon, 10 December 2012 16:02  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
sdjohnson.mail@gmail.com writes:
> Can I do something similar with ps_start and ps_end? I often don't want to send the plot to the screen.
>
> The font in questions is the default latex font: Computer Modern Roman.
Uh, sure.
PS_Start, TT_FONT="Computer Modern Roman", FONT=1
cgPlot, cgDemodata(1), XTitle='Time', YTitle='Signal'
PS_End
The only requirement is that the font be a true-type
(or OpenType) font and be installed on your machine.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|
|
Re: fonts in coyote graphics: how to replicate supermongo? [message #82443 is a reply to message #82442] |
Mon, 10 December 2012 14:02   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
sdjohnson.mail@gmail.com writes:
> I was wondering if it is possible to use routines in Coyote graphics to create postscript output with a font other than the default. In particular, I would really like the text in my plots to have the same font as those of supermongo.
>
> Does anyone know how to do this?
What font is that? There is no restriction on which
font you use in your PostScript file when you use
Coyote Graphics routines. Here is how you would make
an output file using the FreeStyle Script font, if you
have it installed on your machine:
cgWindow_SetDefs, PS_TT_FONT='FreeStyle Script', PS_FONT=1
cgPlot, cgDemoData(1), XTitle='Time', YTitle='Signal', /Window
cgControl, Output='freesytle_example.ps'
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|
Re: fonts in coyote graphics: how to replicate supermongo? [message #82530 is a reply to message #82441] |
Mon, 17 December 2012 11:08  |
Paul Van Delst[1]
Messages: 1157 Registered: April 2002
|
Senior Member |
|
|
On 12/10/12 19:02, David Fanning wrote:
> sdjohnson.mail@gmail.com writes:
>
>> Can I do something similar with ps_start and ps_end? I often don't want to send the plot to the screen.
>>
>> The font in questions is the default latex font: Computer Modern Roman.
>
> Uh, sure.
>
> PS_Start, TT_FONT="Computer Modern Roman", FONT=1
> cgPlot, cgDemodata(1), XTitle='Time', YTitle='Signal'
> PS_End
<anal_retentive_mode>
Start -> Finish (or Stop, depending on context)
Begin -> End
</anal_retentive_mode>
Merry Holidays! (see what I mean? :o)
cheers,
paulv
|
|
|