Font Style in popup after font is chosen

I’m showing fonts on macos using:

Var i, myFontCount As Integer
myFontCount = System.FontCount - 1
For i = 0 To myFontCount
Me.AddRow(System.FontAt(i))
Next

Is there a way for Xojo to show the font styles on mac for each font that’s selected?

Screen Shot 2021-04-17 at 9.41.22 PM

Also, which is easier to use between FTC and MBS XL?

63500 - System.FontCount and System.FontAt on macOS now include font family members

As of 2021r1 you can get the font family members on macOS.

Thank you

Here’s an example of how to separate them out into two popupmenus:

https://www.dropbox.com/s/h9rd1zr7dse7bj2/FontFamilyExtraction.xojo_binary_project.zip?dl=1

1 Like

Thanks a lot Greg.

I get a NilObjectException at line 50 in the Window Open event, because ff is Nil.

Yeah, I just whipped that up until it ran. I didn’t add any error checking.