作者: majkinetor 最近更新时间: nonexistent
Creates font or sets applies to control. Also draws text from specified font or calculates width and height of text.
Font(HCtrl="", Font="", BRedraw=1)
Font_DrawText(Text, DC="", Font="", Flags="", Rect="")
关于函数的参数和返回值, 请参阅其源码.
This module is part of the Forms Framework package.
关于此函数(集)的更新细节和注意事项, 请参见 AutoHotkey 论坛: http://www.autohotkey.com/forum/viewtopic.php?t=53317
此函数(集)是基于 BSD 许可的开源项目. 想了解许可详情, 请参见 http://creativecommons.org/licenses/BSD/
; #Include Font.ahk #NoEnv SendMode Input SetWorkingDir %A_ScriptDir% Gui, Add, Text, HwndH1, hello Gui, Add, Text, HwndH2 x+8, majkinetor Gui, Add, Text, HwndH3 x+8, thx MsgBox Proceed further to see what happens if font changed with Font. Gui, Show, h100 w200 Sleep, 1500 hCtrl := Font(h2, "s9 italic, Courier New", 1) Return GuiClose: ExitApp