Graphics.DrawText not showing on Webcanvas on Xojo Cloud

I have a webpage with a webcanvas. I use Graphics.DrawText to show some text among other graphics in the webcanvas. It all works fine when I run/debug it on my Windows computer with Chrome. But, when I deploy the app to Xojo Cloud, the text is not showing up in the webcanvas. The rest of the graphics show up just fine.

I have tried specifying g.fontname = “Arial”, as well as Not specifying a font. Same result.

Any ideas why the text is not showing up?

The font used must be installed on the server. There’s instructions around here somewhere…looking…

I thought it might be something along those lines. There’s not a default set of fonts on the server?

You’ll have to check your specific distro for what they include.

EDIT: Oh, Xojo Cloud, I’d ask @Jason_Parsley what’s included now, but I believe there’s a fonts folder on Xojo Cloud servers that you can drop fonts in. Just connect with SFTP.

From Xojo Cloud documentation…

Installing fonts.

To install your own fonts, use SFTP to copy them to the Fonts folder of the home directory.

I will go do that.
Thanks!

2 Likes

Happy to help.

1 Like