Readme file for Text1 (text1.pas) *********************************** Text1 uses some of the information set up on your computer via Control Panel. All fonts are installed through the same method so that they are all avaiable to all Windows programs. Text1 doesn't use the fonts that you have installed after setting up Windows (text2.pas will do that), it only uses the STOCK TOOL fonts, the defaults required and set up by Windows itself. These stock tools must not be amended or deleted by your program, so text1 does not call the DeleteObject procedure used in other programs. Text1 uses the pre-defined constants: OEM_FIXED_FONT and SYSTEM_FIXED_FONT to select one of the stock tool fonts. Text2 will allow access to user-installed fonts using a different selection method. TextOut is the main function for printing text, either in a window or to the printer. TextOut does not use the current position and relies on the X and Y coordinates supplied in the brackets. StrLen tells TextOut how many characters to print - in this case the full Str-ing Len-gth of the supplied text. To print more lines, your program must calculate the size of the text printed by TextOut so that the additional lines don't overlap. Use GetTextExtent to determine the Hiword is the height of the text and the Loword is the length. Text1 prints the next lines as if they belong to another paragraph, so only the height is needed.