Does anyone know what AHK considers to be a change of font, ie something that add to the font table and moves one step closer to the "out of fonts" error message? For example, consider this function:
Code: Select all
GetLineWidth(fnt, itm, name := "myownfont")
{
static l
Gui, New
Gui, -dpiscale
Gui, Font, s%fnt% bold, arial
Gui, Font, s%fnt% bold, Comic Sans MF
Gui, Font, s%fnt% bold, %name%
Gui, add, text, vl, %itm%
GuiControlget, l, pos
Gui, destroy
return lw
}
Does this add to the font table three times total or three times every time the function is called? Thanks