INFO: Calculating the TrueType Checksum
Article ID: 102354
Article Last Modified on 11/21/2006
APPLIES TO
- Microsoft Win32 Application Programming Interface, when used with:
- Microsoft Windows NT Server 3.5
- Microsoft Windows NT Server 3.51
- Microsoft Windows NT Server 4.0 Standard Edition
- Microsoft Windows NT Workstation 3.5
- Microsoft Windows NT Workstation 3.51
- Microsoft Windows NT Workstation 4.0 Developer Edition
This article was previously published under Q102354
3.10 3.50 3.51 | 4.00
WINDOWS NT | WINDOWS
kbgraphic
SUMMARY
To calculate a TrueType checksum:
- Sum all the ULONGS in the .ttf file, except the checkSumAdjust field (which contains the calculated checksum). Note that TrueType files are big-endian, while Windows and Windows NT are little-endian, so the bytes must be swapped before they are summed.
- Subtract the result from the magic number 0xb1b0afba.
Additional query words: 3.00 3.10 3.50 4.00 5.0 95 98
Keywords: kbinfo KB102354