home *** CD-ROM | disk | FTP | other *** search
- { FONT.PAS }
- { PGL - Turbo Pascal Test Program }
- { Font display test program }
-
- program geom;
- {$R-,S-}
- uses Crt, PGL;
-
- label
- ExitPgm;
-
- var
- j, ierr, midx : integer;
-
- { **** FONT main procedure **** }
- begin
- pgInitDrw( 'Font.plt', 2000, 2000, ierr );
- if ierr <> 0 then
- begin
- Writeln('Error in pgInitDrw' );
- goto ExitPgm;
- end;
-
- pgSetColor( 1 );
-
- midx := pgGetMaxX DIV 2;
- pgSetTextScaling( 5, 1, 5, 1 );
- pgSetTextJustify( pgCENTER, pgBOTTOM );
- pgDrawTextXY( midx, 250, 'Default Font Set (pgSMALL)' );
-
- pgSetTextStyle( pgSIMPLEX );
- pgDrawTextXY( midx, 500, 'Simplex Font Set' );
-
- pgSetTextStyle( pgDUPLEX );
- pgDrawTextXY( midx, 750, 'Duplex Font Set' );
-
- pgSetTextStyle( pgTRIPLEX );
- pgDrawTextXY( midx, 1000, 'Triplex Font Set' );
-
- pgSetTextStyle( pgGOTHIC );
- pgDrawTextXY( midx, 1250, 'Gothic Font Set' );
-
- pgSetTextStyle( pgSCRIPT );
- pgDrawTextXY( midx, 1500, 'Script Font Set' );
-
- pgSetTextStyle( pgSDUPLEX );
- pgDrawTextXY( midx, 1750, 'Script Duplex Font Set' );
-
- { Close The Drawing File. }
- pgEndDrw ;
- ExitPgm:
- end.