2 This file is part of the Free Pascal run time library.
4 A file in Amiga system run time library.
5 Copyright (c) 1998 by Nils Sjoholm
6 member of the Amiga RTL development team.
8 See the file COPYING.FPC, included in this distribution,
9 for details about the copyright.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15 **********************************************************************}
29 pFontContents
= ^tFontContents
;
30 tFontContents
= record
31 fc_FileName
: Array [0..MAXFONTPATH
-1] of Char;
38 pTFontContents
= ^tTFontContents
;
39 tTFontContents
= record
40 tfc_FileName
: Array[0..MAXFONTPATH
-3] of Char;
59 pFontContentsHeader
= ^tFontContentsHeader
;
60 tFontContentsHeader
= record
62 fch_NumEntries
: Word;
72 pDiskFontHeader
= ^tDiskFontHeader
;
73 tDiskFontHeader
= record
77 dfh_Segment
: Longint;
78 dfh_Name
: Array [0..MAXFONTNAME
-1] of Char;
98 pAvailFonts
= ^tAvailFonts
;
104 pTAvailFonts
= ^tTAvailFonts
;
105 tTAvailFonts
= record
107 taf_Attr
: tTTextAttr
;
110 pAvailFontsHeader
= ^tAvailFontsHeader
;
111 tAvailFontsHeader
= record
112 afh_NumEntries
: Word;
115 VAR DiskfontBase
: pLibrary
;
117 FUNCTION AvailFonts(buffer
: pCHAR
; bufBytes
: LONGINT; flags
: LONGINT) : LONGINT;
118 PROCEDURE DisposeFontContents(fontContentsHeader
: pFontContentsHeader
);
119 FUNCTION NewFontContents(fontsLock
: BPTR
; fontName
: pCHAR
) : pFontContentsHeader
;
120 FUNCTION NewScaledDiskFont(sourceFont
: pTextFont
; destTextAttr
: pTextAttr
) : pDiskFontHeader
;
121 FUNCTION OpenDiskFont(textAttr
: pTextAttr
) : pTextFont
;
125 FUNCTION AvailFonts(buffer
: pCHAR
; bufBytes
: LONGINT; flags
: LONGINT) : LONGINT;
132 MOVEA
.L DiskfontBase
,A6
139 PROCEDURE DisposeFontContents(fontContentsHeader
: pFontContentsHeader
);
143 MOVEA
.L fontContentsHeader
,A1
144 MOVEA
.L DiskfontBase
,A6
150 FUNCTION NewFontContents(fontsLock
: BPTR
; fontName
: pCHAR
) : pFontContentsHeader
;
156 MOVEA
.L DiskfontBase
,A6
163 FUNCTION NewScaledDiskFont(sourceFont
: pTextFont
; destTextAttr
: pTextAttr
) : pDiskFontHeader
;
167 MOVEA
.L sourceFont
,A0
168 MOVEA
.L destTextAttr
,A1
169 MOVEA
.L DiskfontBase
,A6
176 FUNCTION OpenDiskFont(textAttr
: pTextAttr
) : pTextFont
;
181 MOVEA
.L DiskfontBase
,A6
188 END. (* UNIT DISKFONT *)