D
DarkzFlame
Guest
I'm following this tutorial by diestware on how to create a Dialogue Box.
And I noticed that it only supports Monospaced fonts, but preferably I want it to be Non-Monospaced like a font like Arial where one character is longer than the other.
Currently it uses the amount of characters multiplied by a width variable that remains the same for each character, to place each character correctly. as you can see here below.
But I wonder if there is a way to make the variable change depending on the width of the previous character.
Or another way that makes it Non-Monospaced.
And I noticed that it only supports Monospaced fonts, but preferably I want it to be Non-Monospaced like a font like Arial where one character is longer than the other.
Currently it uses the amount of characters multiplied by a width variable that remains the same for each character, to place each character correctly. as you can see here below.
Code:
draw_text(tX+(space*char_width), tY+(13*line), string_char_at(message[message_current],i))
Or another way that makes it Non-Monospaced.