Re: ImageMagick option not showing up in Coyote Graphics window [message #90400 is a reply to message #90399] |
Fri, 27 February 2015 15:34   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Phillip Bitzer writes:
>
> On Thursday, February 26, 2015 at 11:41:36 AM UTC-6, David Fanning wrote:
>>
>> If I had some assurances the anti-aliasing theory had been addressed, I
>> would be looking for alternate explanations, too. :-)
>>
>> Cheers,
>>
>> David
>> --
>
> OK, I'm leaning toward a font thing. Consider this:
>
> cgWindow
> cgText, 0.5, 0.5, 'Is this ugly?', COLOR='black', /NORMAL, /ADD, ALIGN=.5, CHARSIZE=10
> cgControl, OUTPUT='test.pdf', PS_DELETE=0 ;don't delete the PS file....
> cgControl, /DESTROY
>
> cgPS_OPEN, 'test2.pdf', TT_FONT='Helvetica'
> cgText, 0.5, 0.5, 'Is this ugly?', COLOR='black', /NORMAL, ALIGN=.5, CHARSIZE=10
> cgPS_CLOSE
>
> Leave off the TT_FONT='Helvetica' in the second example, and the text is fine. Looks like the text in the PS file also has this issue, so I don't think it's a GS/ImageMagick issue.
>
> It'll be a couple days before I can roll up my sleeves and figure out what's happening, but perhaps somehow forcing the use of hardware fonts with cgControl will help in the meantime. (Although setting PS_FONT=0 in the call to cgControl doesn't seem to work.)
>
> Current config:
> Mac OS 10.9.5
> IDL Version 8.2.2
> GPL Ghostscript 9.07 (2013-02-14)
> ImageMagick 6.8.3-3 2013-02-21
True-type fonts (sometimes called Outline fonts) are always polygon
filled fonts. I presume drawing the (many!) polygons is what causes the
"scratches.' (I'm not sure at which point anti-aliasing enters into the
equation.) Hardware fonts (always the default when creating PostScript
output with Coyote Graphics routines, unless you tell me something
different) are not polygon filled, so presumably wouldn't be subject to
scratches. I'm using IDL version 8.2.3 and I haven't noticed anything
funny about the PostScript files when using True-Type fonts. Nor am I
aware of any change to the PostScript device that could account for
this.
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.")
|
|
|