# MX\_CHOOSEFONT > [HTML Version](mx_choosefont.htm) **xcall MIAMEX, MX\_CHOOSEFONT, font\$, status** MX\_CHOOSEFONT (MIAMEX 165) displays the font selection dialog and return the selected font name. **Parameters** _font\$ _([String](string.htm.md), 32+) \[in/out\] name of font. On input, it determines the default font selected in the dialog; on output it returns the newly selected font. _status _(F) \[out\] is 0 for OK, or else indicates an error. Executing this function in a non-GUI environment should return -1.