[reportlab-users] TTF puzzles

Tim Roberts reportlab-users@reportlab.com
Wed, 24 Dec 2003 10:23:04 -0800


On Tue, 23 Dec 2003 22:15:40 +0000, Robin Becker <robin@reportlab.com>
wrote:
>
>I'm in the process of making a font name caching mechanism for reportlab
>and find the following problems with some windows fonts. Has anyone any
>idea why these are problematic. Is there a different way to calculate
>checksums (say endianness different) or is there some other reason why
>these fonts are off. 
>
>File: c:\winnt\fonts\BATANG.TTF   !!!!!!!!!!! Invalid checksum
>0X5875EBF8 len: 15519828 &3: 0 !!!!!!!!!!!
>File: c:\winnt\fonts\MSMINCHO.TTF   !!!!!!!!!!! Invalid checksum
>0XC314B372 table: head !!!!!!!!!!!
>File: c:\winnt\fonts\PMINGLIU.TTF   !!!!!!!!!!! Invalid checksum
>0XBCB6209C table: head !!!!!!!!!!!

Well, isn't that odd.  I see the same thing here.  All three of these are
Far East fonts, and therefore huge.  In fact, these are the three largest
fonts on my machine.  Of course, I don't know why that's relevant.

The MSMINCHO and MINGLIU fonts on my machine are .TTC, not .TTF; they have
multiple fonts in one file.  Do you actually have a .TTF version?

>File: c:\winnt\fonts\marlett.ttf   !!!!!!!!!!! Could not find PostScript
>font name !!!!!!!!!!!

Marlett is a symbol font.  It is, in fact, the font that contains the
icons you see at the upper right, the icons on the scroll bar buttons, and
the sizing handle at the lower right of every Windows window.  It doesn't
have a Unicode cmap, so ttfonts.py won't look up the name.

>File: c:\winnt\fonts\techno.ttf   !!!!!!!!!!! Font does not allow
>subsetting/embedding (0002) !!!!!!!!!!!
>File: c:\winnt\fonts\technodh.ttf   !!!!!!!!!!! Font does not allow
>subsetting/embedding (0002) !!!!!!!!!!!
>File: c:\winnt\fonts\technold.ttf   !!!!!!!!!!! Font does not allow
>subsetting/embedding (0002) !!!!!!!!!!!
>File: c:\winnt\fonts\technolddh.ttf   !!!!!!!!!!! Font does not allow
>subsetting/embedding (0002) !!!!!!!!!!!

I don't have this font, so I can't tell you the issue, but the TrueType
spec does allow a font to be marked as non-embeddable.
--
- Tim Roberts, timr@probo.com
  Providenza & Boekelheide, Inc.