DesktopLabel and Font

I changed the Caption FontName ad it continues to useSystem.

But a size change works fine (still using System).

I set the FontName to Avenir, then Zapf Dingbats (to be sure).

Nobody have changed a Label’s Font ?

Xojo 2025r1.1
Sequoia 15.4.1

I have all of my API 2 desktop labels using Verdana with no problems.

Xojo 2025r1.1
Win 11 24H2

No problem here.

No problem with Xojo 2025R1.1 under macOS Sequoia 15.4.1.

When I try to use this font in Notepad, it can’t be selected (changes to other font).
When I use Word, I can’t find ‘Zapf Dingbats’ as an option.
No problems with other fonts.

I set the FontName to Avenir, then Zapf Dingbats (to be sure).
Sorry Albertto, but I do not care about Zaoft- Dingbats (I wanted to use different fiont, Zapofino, but falled into this one).

I do that ar Design time using
image
, maybe it must be set in code ?

Do you see it on the IDE or not even there?

Here a screenshot with Zapfino font IDE (left) Run (right):

the font above is system.

Edit: here System, Avenir and Zapfino

In code, it seems to be working (Opening). I will try Zapfino when I’m back.

No problem for the size.

Zapfino works, Zapf Dingbats does not. I suppose macOS realizes that Zapf Dingbats doesn’t contain glyphs for the code points to be displayed and fetches matching glyphs from the standard font instead.

Having said that, if you try to display actual Dingbats code points in a Label then Zapf Dingbats will work as well. And there’s more: If you put Dingbat characters in a Label’s Text field they will be displayed with Zapf Dingbats even when the actually selected font is System. Because macOS tries to be helpful again: It realizes that System doesn’t contain glyphs for those Dingbats and fetches these from Zapf Dingbats instead.

1 Like

Sorry, but I DO NOT CARE ABOUT DINGBATS… it was just another Font.

I wanted Avenir as I wrote in the first entry.

I search something that works (not something that crash, not my job).

Strange. Could be another bug related to your locale?

How locale can be related ?

The doc does not talk about locale…

Not sure. It doesn’t make sense that it doesn’t work (for you) using the IDE but it works in Opening event.

What are you using for the Opening event? “Avenir” or other variation?

With Avenir it works just fine; I’ve checked.

1 Like

Avenir:

And to be sure the code is executed, I add a size change that works too:

L_Initialization.FontName = "Avenir"
L_Initialization.FontSize = 24

For the record, you can see below that I use "Apple Chancery" as Font Name and it is ignored…

1 Like

it works with Xojo 2024 Release 4.2…

U do not saved the project with the old version.

BUT, now I load the project with 2025 and… it works!

I do not saw any blac cat recently… ;: or :frowning: (not sure whose to choose)

They changed the project file format between Xojo 2024 Release 4.2 and 2025…