Not very good idea, because you never know if the system your program runs under supports the symbol. For instance, in Windows 7, unless I am mistaken, the System font is Arial, but in Windows 10, it is Segoe Sans Serif. You have no guarantee the symbol you employ will be available in all systems.
Since it is not possible to change the font used in menus, you cannot even use your own font.
Thanks Markus, I’ll have a look at that but I may well take Michels advice.
@Michel. Hmmmm, now you’ve got me wondering and a bit concerned. I always thought there may be issues using unicode symbols in my app. I’ve used just a couple of basic ones to punctuate message dialogs:
Hopefully the arrow and the block would be pretty common?
Anyway, this is what I was wanting to achieve:
It was really only an afterthought and to separate it from the menu item at left. I guess I could just use the block again.
Well, tried it on my Mac. Copied it from https://emojipedia.org/bust-in-silhouette/ and it works fine simply pasting in the emoji like any other text. Tried it in menu, sub menu, and textfield.
I don’t think system fonts would not support the unicode set, and if a user changes the system font then they might have to expect some problems. I wouldn’t worry. But you could also use a free font and include it in your app if you must.
It doesn’t work for me on Win7, Xojo2016R3. All I get when I paste into the IDE is a rectangular block with a question mark. I’d rather not have to include a font.
It looks like Win7 does use Segoe UI family of fonts for the system fonts. However, I don’t seem to have the same character set for Segoe UI Symbol that I’ve seen on the internet . . .
. . . some time later.
Ok, I’ve finally worked out what the issue is. The font Segoe UI Symbol was updated to include more symbols with the introduction of Win8.1+. That’s why &u1F465 (and many others) doesn’t work for me. I’ve got Win8.1 on another machine so I’ll be able to test this.
I’m aware that we can target for Win/Mac/Linux, can we do the same for different versions of Windows?
[quote=383806:@JosMaraTerryJimnez]Did you tried &u1f464 ?
Found here:
This works fine for menu in macOS[/quote]
Mac does glyph substitution. In other words, when a font does not contain a particular symbol, macOS will fetch it from another font. AFAIK Windows is not able to do the same.
Thanks Jos, but as Michel has suggested, and I’ve tested, that doesn’t work with Win7 (not sure about 8-10).
I did a bit of research and it does look like there is a way to determine the OS version - but there is no way I’ll be going down that path, it’s too complicated for my level of understanding at the moment.
So what I’ve decided is to just use another symbol, a diamond shape:
As I pointed out, it’s more about trying to separate the “User Level” option in the menu from the other items, and I thought that the “user” bust symbol would be more appropriate. If I could move the user level menu item to the right hand side of the window, that would be better.
The “User Level” is the most important part of my whole application. It will determine and drive what other functions are available, enabled/visible etc. I did consider moving it to be first at left, but that’s where most windows users expect the File menu to be.
You can also see in the above image that there is another user option as in MODE standard/presets. In this case the “presets” option will only be available to “Advanced” users.
My app has become so complicated for the user to use effectively, so I’m trying to de-clutter via not making certain controls/options available. I cannot eliminate any of the functionality - everything has a purpose, so all I’m left with is to obscure some of it until the user is familiar.
Happy to consider all other ideas and opinions, but I have to say, things are too far gone now to refactor the main code.