Stylesheet File Format

The style sheet (STSH) is stored in the file in two parts, a STSHI and then an array of STDs. The STSHI contains general information about the following stylesheet, including how many styles are in it. After the STSHI, each style is written as an STD. Both the STSHI and each STD are preceded by a ushort that indicates their length.

Field Size Comment

cbStshi 2 bytes size of the following STSHI structure

STSHI (cbStshi) Stylesheet Information

Then for each style in the stylesheet (stshi.cstd), the following is stored:

cbStd 2 bytes size of the following STD structure

STD (cbStd) the style description