for i = 1, NUM_CHAT_WINDOWS do local frame = _G[("ChatFrame%d"):format(i)] frame.editBox.header:SetFont(...) end