Sample 25539: Creating figures for a symbol font using PROC GFONT
This sample is from the "SAS/GRAPH Software: Reference, Version 8", Volume 2, Chapter 16.
For additional information on the sample refer to this book.
/*+-------------------------------------------------------------+
| S A S S A M P L E L I B R A R Y |
| |
| NAME: GFOCRFIG |
| TITLE: GFOCRFIG-Creating Figures for a Symbol Font |
| PRODUCT: GRAPH |
| SYSTEM: ALL |
| KEYS: GRAPHICS GFONT |
| PROCS: GFONT |
| DATA: INTERNAL |
| |
| SUPPORT: GRAPHICS STAFF UPDATE: |
| REF: SAS/GRAPH REFERENCE GUIDE |
| MISC: EDIT AND UNCOMMENT THE LIBNAME STATEMENT |
| IF THE LIBREF HAS NOT BEEN DEFINED. |
+-------------------------------------------------------------+*/
/* Specify the libref GFONT0 */
*libname gfont0 'SAS-data-library';
/* Set the graphics environment */
goptions reset=all gunit=pct border cback=white
colors=(black blue green red)
ftext=swiss htitle=6 htext=3;
/* Create the font data set FIGURES */
/* for a triangle, a heart, and a circle with slash */
data figures;
input char $ ptype $ x y segment lp $;
datalines;
A W 0 64 0 P /* triangle pointing right */
A V 4 4 1 P
A V 60 32 1 P
A V 4 60 1 P
A V 4 4 1 P
B W 0 64 0 P /* heart */
B V 32 2 1 P
B V 44 17 1 P
B V 58 40 1 P
B C 46 47 1 P
B V 56 58 1 P
B C 46 47 1 P
B V 32 52 1 P
B C 18 47 1 P
B V 8 58 1 P
B C 18 47 1 P
B V 6 40 1 P
B V 20 17 1 P
B V 32 2 1 P
C W 0 64 0 P /* circle with slash */
C V 32 64 1 P
C C 32 32 1 P
C V 64 32 1 P
C C 32 32 1 P
C V 32 0 1 P
C C 32 32 1 P
C V 0 32 1 P
C C 32 32 1 P
C V 32 64 1 P
C V . . 1 P
C V 12.4 18.1 1 P
C C 32 32 1 P
C V 8 32 1 P
C C 32 32 1 P
C V 32 56 1 P
C C 32 32 1 P
C V 45.9 51.6 1 P
C V . . 1 P
C V 51.6 45.9 1 P
C C 32 32 1 P
C V 56 32 1 P
C C 32 32 1 P
C V 32 8 1 P
C C 32 32 1 P
C V 18.1 12.4 1 P
;
/* Define title and footnote */
title 'A Font of Three Figures';
footnote j=r 'GFOCRFIG ';
/* Generate and display the font FIGURES */
proc gfont data=figures
name=figures
filled
height=.75in
ctext=red
showroman
romht=.5in
resol=2;
run;
quit;

This example shows how to create three simple figures for a symbol font.
| Type: | Sample |
| Topic: | SAS Reference ==> Procedures ==> GFONT
|
| Date Modified: | 2005-08-27 03:03:20 |
| Date Created: | 2005-05-23 14:14:09 |
Operating System and Release Information
| SAS System | SAS/GRAPH | All | 8 TS M0 | n/a |