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

Home » Public Forums » archive » Re: Sun Symble in true type font Times
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Sun Symble in true type font Times [message #48907] Fri, 02 June 2006 11:41
Karl Schultz is currently offline  Karl Schultz
Messages: 341
Registered: October 1999
Senior Member
On Fri, 02 Jun 2006 07:47:26 -0600, David Fanning wrote:

> Bringfried Stecklum writes:
>
>> [quoted text muted]
>
> Humm. I see the font has been "completely redesigned" in 2005,
> after Joel and I discovered how to do this in the Fall of 2004.
> Perhaps that has something to do with the problem. In any
> case, I don't know enough about PostScript fonts in general
> to have much of a chance of debugging the problem.
>
> Perhaps Karl can offer some insight.
>
> Cheers,
>
> David

Sure. I think David is correct.

TrueType font files have a table in them that handles the mapping of
character codes to glyph indicies, called 'cmap'.

http://developer.apple.com/FONTS/TTRefMan/RM06/Chap6cmap.htm l
http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi& ;item_id=IWS-Chapter08#ba57949e

IDL can read the types of font files discussed in the second reference:

"Each mapping subtable has two numbers associated with it: the platform id
and the encoding id. The platform id indicates what architecture the
subtable is designed for. For example, a platform id of 0 indicates Apple
Unicode, 1 indicates Apple Script Manager, 2 indicates ISO, and 3
indicates Microsoft. The meaning of the encoding id depends on the
platform. For example, some older fonts have only two subtables: Platform
1, encoding 0 (Mac Roman 8-bit simple 256 glyph encoding) and Platform 3,
encoding 1 (Windows Unicode)."

This particular font file has a subtable for Apple RSymbol (0,8) and one
for Windows encoding 0 (3,0). IDL can read (1,0) and (3,1), per the last
sentence in the above quote.

I think I saw that there were 210 glyphs in the font, so I'm not sure why
both of these "older" encodings could not be used.

In any case, that is the cause of the problem.

I'll write an IDL Change Request to see if we should expand our TT font
support along these lines. Any input on how common this sort of thing is
would be appreciated. And I see we do have one instance already. Nice
font, btw.

Karl
Re: Sun Symble in true type font Times [message #48913 is a reply to message #48907] Fri, 02 June 2006 06:47 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Bringfried Stecklum writes:

> Following the recommendation, all I get (with IDL 6.1.1) is
>
> IDL> showfont,'Courier','Courier',/tt
> % Compiled module: SHOWFONT.
> % XYOUTS: Unsupported glyph table format for TrueType fonts.
> % XYOUTS: Unsupported glyph table format for TrueType fonts.
> etc.
>
> Something seems to be broken?

Humm. I see the font has been "completely redesigned" in 2005,
after Joel and I discovered how to do this in the Fall of 2004.
Perhaps that has something to do with the problem. In any
case, I don't know enough about PostScript fonts in general
to have much of a chance of debugging the problem.

Perhaps Karl can offer some insight.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Re: Sun Symble in true type font Times [message #48916 is a reply to message #48913] Thu, 01 June 2006 23:57 Go to previous message
Bringfried Stecklum is currently offline  Bringfried Stecklum
Messages: 75
Registered: January 1996
Member
David Fanning wrote:
> Boto writes:
>
>> I know the sunsymbol.pro in astron package.
>> But it can not express sun symbol correctly in tru type font.
>> Can you give me a tip to overcome this?
>
> Here is a lengthy thread on this very topic. Pay particular
> attention to the article by Joel Vernet and my follow-up.
>
> http://tinyurl.com/mst5q
>
> Cheers,
>
> David
Following the recommendation, all I get (with IDL 6.1.1) is

IDL> showfont,'Courier','Courier',/tt
% Compiled module: SHOWFONT.
% XYOUTS: Unsupported glyph table format for TrueType fonts.
% XYOUTS: Unsupported glyph table format for TrueType fonts.
etc.

Something seems to be broken?
  • Attachment: stecklum.vcf
    (Size: 0.20KB, Downloaded 91 times)
Re: Sun Symble in true type font Times [message #48917 is a reply to message #48916] Thu, 01 June 2006 20:49 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Boto writes:

> I know the sunsymbol.pro in astron package.
> But it can not express sun symbol correctly in tru type font.
> Can you give me a tip to overcome this?

Here is a lengthy thread on this very topic. Pay particular
attention to the article by Joel Vernet and my follow-up.

http://tinyurl.com/mst5q

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Problems with the Windows IDE
Next Topic: Legend creation on an image

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

Current Time: Wed Oct 08 19:42:15 PDT 2025

Total time taken to generate the page: 0.00475 seconds