• Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

HTML5 Basic function not working in 'web' exporter

O

oliverr

Guest
Hi,

I'm experienced with the desktop versions and it all works perfectly. Recently purchased the 'web' exporter and can't even get this very very simple function working in the draw event:
draw_text(10, 10, "test");

I am using IDE v2.1.4.288 Runtime v2.1.4.212 (Mac)

Anyone have any ideas what could be wrong?

Thanks!
 

chance

predictably random
Forum Staff
Moderator
Maybe a Mac thing. But to be sure.. have you declared a font? And a colour?

This works fine for me (latest IDE / runner, Win10 exported to HTML5, Firefox browser):
Code:
draw_set_colour(c_black);
draw_set_font(font0);
draw_text(10,10,"hello");
In my example, font0 is defined as Arial.
 
H

Homunculus

Guest
I think the html5 export, unlike the desktop counterpart, has no default font.
 
O

oliverr

Guest
Thanks for your help with this, really appreciate it, creating the font worked perfectly!!

Is there any HTML5 specific documentation? Thanks
 

Dog Slobber

Member
Is there any HTML5 specific documentation? Thanks
Not really.

Generally platform specific items are documented within individual functions

Unfortunately, when I experienced the same problem you did, I couldn't find any reference document that HTML5 must set a font

It's either not there or not in an intuitive place.
 
Top