home *** CD-ROM | disk | FTP | other *** search
- {
- Text.i of PCQ Pascal
-
- These are the structures required for messing around with
- fonts and text in a graphics window. Some of this I pulled
- from Graphics.i, which will cause problems with some programs.
- Sorry about that, but it's happened before and I'm afraid it
- will probably happen again.
- }
-
- {$I "Include/Graphics.i"}
-
- Const
- FS_NORMAL = 0;
- FSF_UNDERLINED = 1;
- FSF_BOLD = 2;
- FSF_ITALIC = 4;
- FSF_EXTENDED = 8;
-
- Type
- TextAttr = record
- taName : String;
- taYSize : Short;
- taStyle : Byte;
- taFlags : Byte;
- end;
- TextAttrPtr = ^TextAttr;
-
- TextFont = record
- tfMessage : Message;
- tfYSize : Short;
- tfStyle : Byte;
- tfFlags : Byte;
- tfXSize : Short;
- tfBaseline : Short;
- tfBoldSmear : Short;
- tfAccessors : Short;
- tfLoChar,
- tfHiChar : Byte;
- tfCharData : Address;
- tfModulo : Short;
- tfCharLoc : Address;
- tfCharSpace : Address;
- tfCharKern : Address;
- end;
- TextFontPtr = ^TextFont;
-
- Procedure AddFont(TF : TextFontPtr);
- External;
-
- Procedure AskFont(rp : RastPortPtr; TxtAtt : TextAttrPtr);
- External;
-
- Function AskSoftStyle(rp : RastPortPtr) : Integer;
- External;
-
- Procedure ClearEOL(rp : RastPortPtr);
- External;
-
- Procedure ClearScreen(rp : RastPortPtr);
- External;
-
- Procedure CloseFont(font : TextFontPtr);
- External;
-
- Function OpenFont(ta : TextAttrPtr) : TextFontPtr;
- External;
-
- Procedure RemFont(tf : TextFontPtr);
- External;
-
- Procedure SetFont(rp : RastPortPtr; font : TextFontPtr);
- External;
-
- Function SetSoftStyle(rp : RastPortPtr; style, enable : Integer) : Integer;
- External;
-
- Procedure GText(rp : RastPortPtr; s : String; l : Integer);
- External;
-
- Function TextLength(rp : RastPortPtr; s : String; l : Integer) : Integer;
- External;
-
-