JujuAdams / Scribble

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

Expand the scribble_font_scale() to easier scale fonts globally #471

Closed vaantti closed 1 year ago

vaantti commented 1 year ago

I was looking into resizing my UI in an easy way. I thought giving the user a setting for e.g. "Normal, Larger, Largest" then using scribble_font_scale() to scale all the fonts.

The trouble is the function takes the existing size and scales relative to that. So there would need to be a way to reset to the initial font size value first and then rescale from that.

JujuAdams commented 1 year ago

https://github.com/JujuAdams/Scribble/commit/b151b936d5740b08541e621496e5f796d1bd14c1