JujuAdams / Scribble

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

Adds support for font_add() #411

Closed tabularelf closed 1 year ago

tabularelf commented 1 year ago

With some help from Scott-1 (I do not have their Github), we've managed to make a version of font_add() that works perfectly. This specific version included is cleaned up and removes all of the unnecessary stuff.

This font_add() also does not support swapping out glyphs like regular draw_text() would. (Adding in support for that wouldn't be impossible, just not fast.) This also doesn't fetch all of the information and stores the glpyh data (respect first and last arguments from font_add().)

The scripts included: __scribble_font_delete_from_file, __scribble_font_add_parse_from_file, __scribble_font_add_from_file.

The test object: obj_test_font_add_from_file

JujuAdams commented 1 year ago

Thank you for the work you and Scott have put into this