J
jadegames
Guest
Hi, I am completely unable to use WebFonts for HTML5 games I create. I know it's possible, the documentations says it is http://docs.yoyogames.com/source/dadiospice/002_reference/game assets/fonts/font_add.html but I am unable to get it to work.
I did a quick search on this forum and the search "Web Font" yielded 0 results so I believe I've done my due diligence by looking on the forum to see if this question had been asked first.
I've disabled WebGL and put all the Web Font formats into a folder and added it to the Included Files section. Then I run the following
Font0 = font_add( '1/Daughter.woff', 80, false, false, 32, 128);
draw_set_font(Font0);
But Font0 shows a very small number that looks nothing like my font, I believe it has reverted to the default of Aerial. There are no errors in the debug mode logs or on the browser console either.
Has anyone managed to use Web Fonts with HTML5 before successfully? I know I can add the font via the font section and import one that way, but I had the goal for a future project of using Google Noto so I would have one font to rule them all.
I did a quick search on this forum and the search "Web Font" yielded 0 results so I believe I've done my due diligence by looking on the forum to see if this question had been asked first.
I've disabled WebGL and put all the Web Font formats into a folder and added it to the Included Files section. Then I run the following
Font0 = font_add( '1/Daughter.woff', 80, false, false, 32, 128);
draw_set_font(Font0);
But Font0 shows a very small number that looks nothing like my font, I believe it has reverted to the default of Aerial. There are no errors in the debug mode logs or on the browser console either.
Has anyone managed to use Web Fonts with HTML5 before successfully? I know I can add the font via the font section and import one that way, but I had the goal for a future project of using Google Noto so I would have one font to rule them all.