home *** CD-ROM | disk | FTP | other *** search
- /* LOAD LIBRARY: import IFF DR2D character drawings into an open font */
- /* Copyright 1993 Soft-Logik Publishing Corporation */
- /* May not be distributed without Soft-Logik Publishing Corporation's express written permission */
- /* $VER: 2.0 */
-
- ADDRESS 'TYPESMITH'
- OPTIONS RESULTS
- TRACE OFF
-
- /* Screen to front */
-
- to_front
-
- /* get the file name prefix for the drawings */
-
- get_string 'Enter the filepath and filename prefix:|Ok|Exit'
- IF RC=5 THEN EXIT
-
- library=RESULT
-
- /* FIND WHICH CHARACTERS TO IMPORT */
-
- firstchar=1
- lastchar=255
-
- display_alert 'Import all 255 characters?|All|Some'
-
- IF RC=5 THEN DO
-
- /* get the start and end characters to import */
-
- Get_First:
- get_string 'Enter the number of the first character:|Ok|Exit'
- IF RC=5 THEN EXIT
- firstchar=RESULT
- IF (firstchar<1)|(firstchar>255) THEN DO
- display_alert 'Must be between 0 and 255.|Continue'
- SIGNAL get_first
- END
-
- Get_Last:
- get_string 'Enter the number of the last character:|Ok|Exit'
- IF RC=5 THEN EXIT
- lastchar=RESULT
- IF (lastchar<firstchar)|(lastchar>255) THEN DO
- display_alert 'Must be between the first character and 255.|Continue'
- SIGNAL get_last
- END
-
- /* IMPORT LOOP */
-
- importcount=0
-
- DO i=firstchar TO lastchar
- goto_char i
- filename=library'.'i
- import_dr2d filename
- importcount=importcount+1
- IF RC=20 THEN DO
- display_alert 'File 'filename' does not exist!|Continue|Exit'
- IF RC=5 THEN EXIT
- importcount=importcount-1
- END
- END
-
- display_alert ' 'importcount' character(s) imported!|Exit'
-
- /* THAT'S ALL SHE WROTE */
-