I'm not the first to get tripped up by this. But I came up with a solution suitable for the cheap & lazy—er, economical & efficient.
For bad and arbitrary reasons, OT/TTF fonts with layout features are only recognized as such in Windows if they have a DSIG (digital signature) table. Without this table, they behave as normal TTF fonts (i.e., none of the layout features work). This is not true of OT/CFF fonts, which need no DSIG table.
Windows customers can use OT/CFF fonts. But MS Office, and MS Word in particular, still works better with TT-based fonts. For instance, for bad and arbitrary reasons, the built-in PDF generator in Word will not embed OT/CFF fonts, only OT/TTF.
To make a DSIG, one solution is to buy an actual digital signature from a certificate authority. Fontlab, for instance, can generate the DSIG table if you have the signature files. (Don't know how it's handled in Glyphs or Robofont.) But this is about $200 per year. Digitally signing your fonts has other ostensible benefits, so if you like that, great. To me, it's a lot to pay just to get OT/TTF fonts to do what they should've been able to do in the first place, which is: work.
FontForge can put in a dummy DSIG table, but that requires dealing with FontForge.
If you have ttx installed, however, you can do it this way:
Create a ttx file with a dummy DSIG table, like so:
<?xml version="1.0" encoding="ISO-8859-1"?>
<ttFont sfntVersion="\x00\x01\x00\x00" ttLibVersion="2.2">
<DSIG>
<hexdata>
00000001 00000000
</hexdata>
</DSIG>
</ttFont>
Then you can merge this into your OT/TTF like this:
ttx -m font.ttf dsig.ttxThis will decompile the ttf, add the DSIG table, and recompile in one step. Then the font will work as intended in MS Office (or so I have found in my testing thus far.) This is also easy to incorporate into other scripts.
Of course, this is not a real digital signature, but it's sufficient to convince Windows that the font has a valid DSIG table.
(Hat tip to Ross Mills for pointing me in the right direction.)
Comments
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Agree Like- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Agree LikeI'll be curious to learn if this affects web fonts, either in IE or in general.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Agree Like- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Agree Like- Spam
- Abuse
- Troll
1 • Off Topic Insightful Disagree Agree 1LikeThat's odd. When the table was announced in the 90's, all developers were told that fonts without a DSIG would eventually not work at all on Windows. So, this's a fine compromise.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Agree LikePerhaps predictably, Word 2010 still doesn't implement the DSIG restriction consistently: OT/TTF fonts without a DSIG will still show their layout features in the preview window of the Character formatting box, but the layout features won't show up in the document itself. This was the moment of infuriation that started my hacking spree.
Despite the infuriations, Word is nevertheless the most popular typesetting program in the world, and with the addition of layout features, it's actually quite capable.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Agree LikeLike income tax.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Agree LikeAlso, what happens if you output the word-document-with-OT-features-used — to a web site, does any it display in... Firefox?
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Agree LikeIn DTL OTMaster one can copy a dummy DSIG table from another TTF, but that requires dealing with DTL OTMaster.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Agree LikeKeyError: 'ulVersion'when I try to merge the table into the TTF as described above. Is it just me or is anybody else also experiencing that problem?- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Agree LikeAlso check if you need this fix.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Agree Like- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Agree Like- Spam
- Abuse
- Troll
1 • Off Topic 1Insightful Disagree Agree Like