gr_reg.gml
来自「开放源码的编译器open watcom 1.6.0版的源代码」· GML 代码 · 共 40 行
GML
40 行
.gfunc registerfonts
.if '&lang' eq 'C' .do begin
short _FAR _registerfonts( char _FAR *path );
.do end
.el .do begin
integer*2 function _registerfonts( path )
character*(*) path
.do end
.gfuncend
.desc begin
The &func &routine initializes the font graphics system.
Fonts must be registered, and a font selected,
before text can be displayed with the
.kw _outgtext
&routine..
.pp
The argument
.arg path
specifies the location of the font files.
This argument is a file specification, and can contain drive and
directory components and may contain wildcard characters.
The &func &routine opens each of the font files specified and
reads the font information.
Memory is allocated to store the characteristics of the font.
These font characteristics are used by the
.kw _setfont
&routine when selecting a font.
.desc end
.return begin
The &func &routine returns the number of fonts that were registered if
the &routine is successful; otherwise, a negative number is returned.
.return end
.see begin
.seelist &function. _unregisterfonts _setfont _getfontinfo _outgtext _getgtextextent _setgtextvector _getgtextvector
.see end
.grexam begin eg_reg.&langsuff
.grexam end
.class &grfun
.system
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?