# string wx.loadFont(string path)

Loads a custom font file.

# Parameters

# string path

The font file path, which can be the code package file path or the local file path of the wxfile:// protocol.

# Return Values

# string

If the font is loaded successfully, the family value of the font is returned; otherwise, a null is returned.