New account registration is temporarily disabled.

[RMMV] SHOW TEXT: FRACTIONS

Posts

Pages: 1
Hello,

I am using RPG Maker MV.

I've scoured the internet to see if I can learn how to display a fraction as text anywhere and haven't had any luck.

I am hoping someone can help me. Everyone here is probably very comfortable with 3/4 being three quarters, but for my target audience I really want to display it with the 3 clearly on top and the 4 on bottom.

Any help would be appreciated, thank-you.
There are some unicode glyphs for 1/4, 1/2 and 3/4: ¼½¾
Which may display better or worse depending on your font.

You could make an icon for each of the fractions you want and pixel draw it the way you want (icon height matches the default line height)

To display arbritrary fractions the way you want, I think would need a plugin.
(draw the numerator and denominator with half height one above the other)
There is a function used to calculate the text width of a string which could be used here to find whether the top or bottom part is wider.
Pages: 1