BlzFrameSetFont

Parameters
frame framehandle
fileName string
height real
flags integer
comment

Sets the font file and font height for the frame, using Blizzard’s UI screen coordinates for height. Overrides the FDF property FrameFont.

Should work with the following frame types: EDITBOX, SIMPLEMESSAGEFRAME, SIMPLEFONTSTRING, FDF String (SimpleFrame).

bug

Applying this native to the following frames will crash the game:

  • ORIGIN_FRAME_TOP_MSG, ORIGIN_FRAME_UNIT_MSG, ORIGIN_FRAME_CHAT_MSG (likely SIMPLEMESSAGEFRAME),
  • ORIGIN_FRAME_PORTRAIT_HP_TEXT, ORIGIN_FRAME_PORTRAIT_MANA_TEXT (likely SIMPLEFONTSTRING).
patch

1.31.0.11889

Source
common.j (suggest an edit or discuss on Github)
return type
nothing
Source code
native BlzFrameSetFont                             takes framehandle frame, string fileName, real height, integer flags returns nothing