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 
Return to the default flat view Create a new topic Submit Reply
Re: Sun Symble in true type font Times [message #48907] Fri, 02 June 2006 11:41 Go to previous message
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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
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 18:11:03 PDT 2025

Total time taken to generate the page: 0.00204 seconds