Text Scrap File Text scraps are sequentially structured files. They are coded as follows: OffSet Description -------- ------------------------------------------------------ $00-$01 Length of the text scrap in bytes (65535 byte limit) $02 NEWCARDSET code ($17) $03-$04 Font ID to use $05 Style Byte (see below) $06 - Text (could include tabs, ruler esc, newcardsets) NewCardSet OffSet Description -------- ------------------------------------------------------ $00 NEWCARDSET code 23 ($17) $01-$02 Font ID to use $03 Style Byte (see below) The style byte is organized as follows: Bit Description (all 0's gives plain text) -------- ------------------------------------------------------ 7 Underline 6 Bold 5 Reverse 4 Italic 3 Outline 2 Superscript 1 Subscript Ruler Escape OffSet Description -------- ------------------------------------------------------ $00 Ruler Escape 17 ($11) $01-$02 Left Margin $03-$04 Right margin <= LeftMargin $06-$21 Tabs of 2 bytes each (bit 15 = dec align., 0-14 tab pos.) $22-$23 Paragraph margin $24 Justification byte (bit 0-1: 00 = left justified 01 = centered text 10 = right justified text 11 = full justification) (bit 2-3: 00 = single spaced 01 = 1 1/2 spaced 10 = double spaced) $25 Text color $26-$27 Reserved