Text.nib
README file for the Text application. The Text application highlights th PostScript language portion of text handling. It is a very simple application that displays a static set of lines with no line breaking or editing capabilities provided. Buttons in the Options panel allow you to set the type of justification and add kerning and tracking. Each of these additions modify the positioning of the text. Three approaches are studied with the timings provided for comparison. Below lies an annotated list of the files used in the application. TextApp - A subclass of Application. Creates the window with the ScrollView, DocView and DrawingView. Provides the id's of the items in the Drawing Options Panel (matrices, buttons, etc). DocView - A subclass of View. Serves as the DocView for the ScrollView. Makes the DrawingView a subview making it easier to size and scale the DrawingView. The Drawing View is resized whenever the user zooms into or out of the document. DrawingView - A subclass of View. The view draws the text with the prescribed attributes using the prescribed approach. The first approach uses the show operator. Changes in the character spacing away from the default are accomodated by using the rmoveto operator. The second approach uses xyshow and the third uses show, ashow, widthshow and awidthshow to meet the different line spacing characteristics. DrawingViewWraps - Wraps for showing character arrays of text (instead of strings). A wrap for copying a font and omitting the default screen font substitiution is also included. hdshowany.c These two files are taken from the generic driver text display hdshowaux.c routines. They provide the structures and procedures for using the different show operators (show, ashow, etc.) rotateprocs.c Simple procedures for handling rotated objects. Topics of interest from the Text application: AFM files (afm.h, DrawingView) Screen fonts (Font, DrawingView) Character widths (afm.h, DrawingView) Kerning pairs (afm.h, DrawingView) Text showing procedures (hdshowany.c, hdshowaux.c, DrawingView) Scaling the view (DocView, DrawingView) Copying a font, omitting the default font substitution (DrawingViewWraps.psw)
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.