limit.cmd
来自「字体缩放显示」· CMD 代码 · 共 64 行
CMD
64 行
/* */call RxFuncAdd "SysLoadFuncs", "RexxUtil", "SysLoadFuncs"call SysLoadFuncsParse Upper Arg a1 a2app = "FreeType/2"key = "OPENFACES"if Arg() = 0 then call usageif a1 = 'Q' then call queryif a1 = 'S' then call setcall usageset:val = a2if val = '' then do say 'Invalid limit!' exitendif val < 8 then do say 'The lowest acceptable limit is 8!' pause exitendszval = val || d2c(0)rc = SysIni('USER', app, key, szval)say rcif rc = 'ERROR:' then do say 'Error updating OS2.INI!' pause exitendsay "Open faces limit updated to " || val || ". Please reboot to activate changes."pauseexitquery:val = SysIni('USER', app, key)if val = "ERROR:" then val = "not set"/* strip the terminating NULL character */else val = substr(val, 1, pos(d2c(0), val) - 1)say 'The current open faces limit is ' || valpauseexitusage:say 'This program is used to set the limit of concurrently open typefaces for'say 'FreeType/2. Use lower numbers to limit memory consumption and higher to'say 'improve performance if you use lots of fonts.'saysay 'Usage: LIMIT q - query the current limit'say ' LIMIT s <val> - set limit to <val> (effective on next reboot).'pause
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?