A PostScript Cookbook by Barry Thomas (auth.)

By Barry Thomas (auth.)

Show description

Read Online or Download A PostScript Cookbook PDF

Best desktop publishing books

Digital scrapbooking for dummies

Get inventive with picture elementsTackle picture recommendations at any levelReady to maintain your thoughts digitally? This interactive reference explains the fundamentals of this speedy, flexible new pastime, supplying you with the lowdown at the gear and courses you want to create attractive pages. you furthermore may get specialist tips about electronic images, image layout, scanning, journaling, filters, and fonts.

Real World Adobe GoLive 6

Navigating the intricacies of a full-featured website design and administration device like Adobe GoLive 6 and not using a roadmap can go away even a complicated dressmaker at midnight. that is why you wish actual global GoLive 6. Revised to hide the entire new good points in GoLive 6 (including integrated instruments to place database content material without delay in pages and the hot Adobe internet Workgroup Server for collaborative website building), this industrial-strength advisor offers the knowledge you must faucet the genuine energy of this renowned improvement software.

Adobe InDesign CC Classroom in a Book

The quickest, simplest, so much accomplished solution to study Adobe InDesign CC (2014 unencumber) school room in a Book®, the best-selling sequence of hands-on software program education workbooks, bargains what no different publication or education software does—an authentic education sequence from Adobe structures integrated, constructed with the help of Adobe product specialists.

Extra resources for A PostScript Cookbook

Example text

The program starts by showing the word Normal in the basic Helvetica font at 80 points. Helvetica is selected and scaled in the usual way with the findfont, scalefont and setfont operators. The rest of the examples use the makefont operator to transform the characters by a given matrix. 30 A POSTSCRIPT COOKBOOK Using makefont in this way allows us to scale a font in the x direction for example, like we did in the first program in this chapter, but without scaling the whole x axis. This means that other fonts used and any graphics will retain their true proportions.

Times at 36 points is selected for the graph title and the title centred at the top of the graph. Times at 20 point is used for the text labels and the numerics at the top of each bar. The line width is set for the border of each bar. Finally, to draw the bars and position the labels, the last section of the program executes the procedures label and bar as many times as there are value pairs, moving across each time by the appropriate distance. Finally the last mark is removed from the stack. A POSTSCRIPT COOKBOOK 50 PIE CHART Man's Seven Ages The program adds up the supplied numeric values and allots a percentage of the circle to each value pair.

8 setgray fill grestore % fill path with gray; restore stroke } def /Times-Bold findfont % select Times points scalefont setfont % at given point size 300 420 translate text stringwidth pop 2 div circum div 360 mul rotate % move origin to center of A4 page % get total width of text % halve it % get angle that the text surrounds % rotate back for start point text % % % % % % % % stack the given text main procedure /char exch def get a character 0 radius moveto move to edge of circle str 0 char put put character in string str stringwidth pop get its width circum div 360 mul find the angle it surrounds /charot exch def define character rotation gsave % save graphics state 0 radius translate % origin to edge of circle charot 2 div neg rotate % rot.

Download PDF sample

Rated 4.34 of 5 – based on 24 votes

admin