# Type "Graphics" has no member named "Font" ?!? And no SystemFont?!?

**URL:** <https://forum.xojo.com/t/type-graphics-has-no-member-named-font-and-no-systemfont/70969>\
**Category:** General\
**Created:** [June 30, 2022, 5:27pm UTC](https://forum.xojo.com/t/type-graphics-has-no-member-named-font-and-no-systemfont/70969 "2022-06-30T17:27:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_McKernon](https://forum.xojo.com/user_avatar/forum.xojo.com/john_mckernon/32/183_2.png) [@John\_McKernon](https://forum.xojo.com/u/John_McKernon)\
**Post date:** [June 30, 2022, 5:27pm UTC](https://forum.xojo.com/t/type-graphics-has-no-member-named-font-and-no-systemfont/70969/1 "2022-06-30T17:27:57Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Paul\_Lefebvre](https://forum.xojo.com/user_avatar/forum.xojo.com/paul_lefebvre/32/3152_2.png) [@Paul\_Lefebvre](https://forum.xojo.com/u/Paul_Lefebvre)\
**Post date:** [June 30, 2022, 5:48pm UTC](https://forum.xojo.com/t/type-graphics-has-no-member-named-font-and-no-systemfont/70969/2 "2022-06-30T17:48:38Z")

</div>

The Font property is only available for iOS projects, but it looks like that is not noted in the new docs. Please create an [Issue](https://xojo.com/issues) for that.

With desktop Graphics, you’ll still use FontName, FontSize, etc.

---

<div class="post-metadata">

**Author:** ![John\_McKernon](https://forum.xojo.com/user_avatar/forum.xojo.com/john_mckernon/32/183_2.png) [@John\_McKernon](https://forum.xojo.com/u/John_McKernon)\
**Post date:** [June 30, 2022, 6:33pm UTC](https://forum.xojo.com/t/type-graphics-has-no-member-named-font-and-no-systemfont/70969/3 "2022-06-30T18:33:20Z")

</div>

Done, thanks!
