I’m running Xojo 2022 R1.1 and am making some changes to the font code in my existing project.
I’d like to get the system font and use it for drawing text in a graphics Paint event. Looking at the documentation for Graphics, there is a Font property. There is also a SystemFont method:
SystemFont(size as double = 0.0) As Font
So in my graphics paint event, I use g.Font=SystemFont(10)
However, I get a compile error “This item does not exist”, with “SystemFont” highlighted. I also get a compile error message Type “Graphics” has no member named “Font”
Is the documentation wrong? Is there a new way of setting the font for subsequent text drawing? If so, why does the compiler accept the old syntax in existing code, but not in changes I make in that same code?