These are chat archives for caryll/otfcc
• If the length stored in the record is less than 32768, then the actual length is the length noted in the record.
• If the length stored in the record is 32768 (0x8000), then the actual length is computed as follows:
• For the last “extra” record (the very last record of the table), the length is the difference between the total length of the TSI1 table and the textOffset of the final record.
• For the last “normal” record (the last record just prior to the record containing the “magic number”), the length is the difference between the textOffset of the record following the “magic number” record and the textOffset of the last “normal” record.
uint32_t predictedTextLength = textPart.length - textOffset;
is just a fallback option for the last Extra.