home *** CD-ROM | disk | FTP | other *** search
/ NOVA - For the NeXT Workstation / NOVA - For the NeXT Workstation.iso / SourceCode / AdobeExamples / NX_Text / README < prev    next >
Encoding:
Text File  |  1992-12-19  |  2.2 KB  |  50 lines

  1.  
  2. README file for the Text application.
  3.  
  4. The Text application highlights th PostScript language portion of text handling. It is a
  5. very simple application that displays a static set of lines with no line breaking or
  6. editing capabilities provided. Buttons in the Options panel allow you to set the type of
  7. justification and add kerning and tracking. Each of these additions modify the
  8. positioning of the text. Three approaches are studied with the timings provided for
  9. comparison.
  10.  
  11.  
  12. Below lies an annotated list of the files used in the application. 
  13.  
  14. TextApp            - A subclass of Application. Creates the window with the
  15.                     ScrollView, DocView and DrawingView. Provides the
  16.                     id's of the items in the Drawing Options Panel (matrices, buttons, etc).
  17. DocView            - A subclass of View. Serves as the DocView for the ScrollView.
  18.                     Makes the DrawingView a subview making it easier to
  19.                     size and scale the DrawingView. The Drawing View is
  20.                     resized whenever the user zooms into or out of the
  21.                     document.
  22. DrawingView        - A subclass of View. The view draws the text with the prescribed
  23.                     attributes using the prescribed approach. The first approach
  24.                     uses the show operator. Changes in the character spacing
  25.                     away from the default are accomodated by using the rmoveto
  26.                     operator. The second approach uses xyshow and the third
  27.                     uses show, ashow, widthshow and awidthshow to meet the
  28.                     different line spacing characteristics.
  29.  
  30.  
  31. DrawingViewWraps    - Wraps for showing character arrays of text (instead of strings).
  32.                     A wrap for copying a font and omitting the default screen font
  33.                     substitiution is also included.
  34.  
  35. hdshowany.c            These two files are taken from the generic driver text display
  36. hdshowaux.c            routines. They provide the structures and procedures for using
  37.                     the different show operators (show, ashow, etc.)
  38. rotateprocs.c            Simple procedures for handling rotated objects.
  39.  
  40.  
  41. Topics of interest from the Text application:
  42.  
  43. AFM files (afm.h, DrawingView)
  44. Screen fonts (Font, DrawingView)
  45. Character widths (afm.h, DrawingView)
  46. Kerning pairs (afm.h, DrawingView)
  47. Text showing procedures (hdshowany.c, hdshowaux.c, DrawingView)
  48. Scaling the view (DocView, DrawingView)
  49. Copying a font, omitting the default font substitution (DrawingViewWraps.psw)
  50.