JujuAdams / Scribble

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

Regions bounds extend further beyond the bottom of the text #397

Closed squishyb closed 1 year ago

squishyb commented 1 year ago

As above, the bounds of regions seem to extend a little further beyond the bottom of where they should. This causes some issues in detection in the following examples:

Video showing two examples

To investigate further, I drew the bounds of regions to the screen. This is what led me to believe it maybe the issue, as you're still technically hovering over the other region: Image showing Bounds drawn to screen

Let me know if you'd like anymore details! Thank you :)

Edit: The font I'm using in the above example is "Teko", found here: Google Fonts: Teko

JujuAdams commented 1 year ago

Not possible to fix this fully as GameMaker is giving me oversized UVs for each character so I can't get the actual visual bounding box. Instead, if I scan backwards then this mostly works around the issue.

Work around is here and will be released in v8.2: https://github.com/JujuAdams/Scribble/commit/d54104d05afaab0e1804b7b14429caab5b3b25ed