Author: majkinetor Last Modified: 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="")
For the functions's parameters and return value, please see it's source code.
This module is part of the Forms Framework package.
For update's details and remarks related to the functions, please see the AutoHotkey Forum: http://www.autohotkey.com/forum/viewtopic.php?t=53317
The functions is an open source item under the BSD license.
For details, please see 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