comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: calligraphic font
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: calligraphic font [message #84514 is a reply to message #84513] Tue, 21 May 2013 09:32 Go to previous messageGo to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On 5/21/13 6:32 AM, David Fanning wrote:
> bing999 writes:
>
>> Is it possible to use a calligraphic font with postscript fonts (!
>> p.font=0) to output as a pdf?
>> I tried all the fonts available according to exelis (http://
>> www.exelisvis.com/docs/Using_Device_Fonts.html) but none corresponds
>> to what I am looking for...
>
> In theory, you ought to be able to do this with true-type fonts:
>
> Device, Set_Font='Brush Script MT Italic', /TT_Font
> PS_Start, 'script.ps'
> cgText, 0.5, 0.5, /Normal, Align=0.5, Font=1, $
> 'This is test script with handwriting font.'
> PS_End, /PNG
>
> But, I've read the documenation five times now, followed directions
> EXACTLY as specified (modifing the ttfont.map file, etc.), and can't get
> it to work.
>
> This leads me to believe this functionality must be broken in IDL 8.2.2.
>
> Cheers,
>
> David
>

Sure, here is an example using Brush Script MT:

http://michaelgalloy.com/wp-content/uploads/2013/05/calligra phic-font.ps

Converted to an image:

http://michaelgalloy.com/wp-content/uploads/2013/05/calligra phic-font.png

I used MG_FONTS to install Brush Script MT:

https://github.com/mgalloy/mglib/blob/master/src/vis/util/mg _fonts.pro

I also had to change the name of the font file to BrushScript.ttf
(removing a space).

mg_fonts, install={ mg_fonts_tt, $
name: 'Brush Script', $
filename: filepath('BrushScript.ttf',
root='~/Desktop'), $
direct_size: 0.625, $
object_size: 1.0 }

Mike
--
Michael Galloy
www.michaelgalloy.com
Modern IDL: A Guide to IDL Programming (http://modernidl.idldev.com)
Research Mathematician
Tech-X Corporation
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: ENVI_SVM_DOIT
Next Topic: IDL 8.2 legend problem

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 12:43:18 PDT 2025

Total time taken to generate the page: 0.32478 seconds