On Mon Feb 5 22:34:12 2024 +0000, Santino Mazza wrote:
I think the bug I got when using GdipMeasureString in draw_string_callback might be an indicator that something is not right, I'm still unsure how to reproduce it though.
I tested GdipMeasureString with different strings that require font linking and it behaves correctly. It's strange because I also tested with the exact same string the game uses and with the generic typographic format, but I still can't get the bug to reproduce. Apparently when the game tries to draw that specific string, GdipMeasureString returns a bounding box with width 0, which causes draw_string_callback to not increase the X position, so it overwrites the other word. Again this doesn't happen if I use font_link_get_text_extent_point.