Mantis

View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0025788RunnerHTML5Public2017-02-24 15:202017-03-08 16:53
Reporterzen 
Assigned ToFritz 
PriorityVery HighSeverityA - Crash/HangReproducibility100%
StatusResolvedResolutionFixed 
Platform OS OS Version
Summary0025788: HTML5: Some font functions are not implemented, crashing the game
DescriptionThere are a couple of issues with font_* functions in HTML5

font_replace is supposed to be a function for HTML5 only... but is not implemented.
font_replace_sprite_ext is not implemented too.
font_delete is implemented, so there is no crash when it is used, but it doesn't do anything.

You can test with the examples available in the documentation. Run in debug mode and open the console to see you will get a "ReferenceError".
font_replace(fnt_Custom, 'Arial', 24, true, true, 32, 128);
font_replace_sprite_ext(global.Font, spr_CalcFont, "0123456789+-*/=", true, 2);

These functions don't seem to be obsolete as they are still there in the GMS:2 documentation (so GMS:2 might be affected as well).
Additional InformationOriginal helpdesk ticket: http://help.yoyogames.com/tickets/120123 [^]
1.4 Version1.4.1763
2.x Runtime Version
2.x Runtime Version Verified In
Attached Files

- Relationships

-  Notes
(0052101)
Fritz (Developer)
2017-03-08 16:53

font_replace removed
font_replace_sprite_ext added
font_delete now deletes the font


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker