Native Font Dialog

I am sure this has been asked and answered before, but I cannot find any related topics :frowning:

Is it possilbe (and if so does anyone have some drop in code)… to call the Native Font Dialog (for Win/macOS)

For Mac you can use NSFontPanelMBS from my plugins:

http://www.monkeybreadsoftware.net/class-nsfontpanelmbs.shtml

And before you jump down his throat over plugins, he told you it’s a lot of work to do in Xojo declares when you had asked this previously: https://forum.xojo.com/1954-select-font-dialog

I could offer to add a class for Windows if needed to my plugins later today…

There’s nothing in macoslib nor in wfs, so either taking the long fun road of declares, or the quick easy road of plugins, but your code, your rules…

my bad… using Google… I actually found a custom control I built years ago…
Still amazed that Xojo doesn’t encapsulate this control somehow.

Submit a feature request

Have a look at macoslib. If I recall right, there used to be an example about using NSFontPanel.

I went to the github repo and did a search for the phrases “NSFontPanel”, “FontPanel” and “Font”… nada…