gr_setcs.gml
来自「开放源码的编译器open watcom 1.6.0版的源代码」· GML 代码 · 共 54 行
GML
54 行
.gfuncw setcharsize
.if '&lang' eq 'C' .do begin
void _FAR _setcharsize( short height, short width );
void _FAR _setcharsize_w( double height, double width );
.do end
.el .do begin
subroutine _setcharsize( height, width )
integer*2 height, width
subroutine _setcharsize_w( height, width )
double precision height, width
.do end
.gfuncend
.desc begin
The &func &routines set the character height and width to the values
specified by the arguments
.arg height
and
.arg width.
For the &func &routine, the arguments
.arg height
and
.arg width
represent a number of pixels.
For the &func2 &routine, the arguments
.arg height
and
.arg width
represent lengths along the y-axis and x-axis in the window coordinate system.
.np
These sizes are used when displaying text with the
.kw _grtext
&routine..
The default character sizes are dependent on the graphics mode selected,
and can be determined by the
.kw _gettextsettings
&routine..
.desc end
.if '&lang' eq 'C' .do begin
.return begin
The &func &routines do not return a value.
.return end
.do end
.see begin
.seelist &function. _grtext _gettextsettings
.see end
.grexam begin eg_getts.&langsuff
.grexam output
.picture eg_getts
.grexam end
.class &grfun
.system
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?