JujuAdams / Scribble

Efficient, internationalized, multi-effects text renderer for GameMaker
https://www.jujuadams.com/Scribble/
MIT License
335 stars 46 forks source link

Now scans for all project fonts using asset_get_ids #524

Closed biyectivo closed 3 months ago

biyectivo commented 5 months ago

The function __scribble_font_add_all_from_project() used to scan fonts by using a numeric integer from 0 to 999 and checking whether the font with that index exists. However since typed references exist this should not work. At least in GRMT this does indeed not work and it complains about submitting an integer, not a font reference, to font_exists(). So the commit is about using the asset_get_ids() function to get all fonts in an array and process them.

JujuAdams commented 3 months ago

Thanks for the PR.