Some (maybe) helpful font size stuff! #223
Labels
No Label
RGSS accuracy
bug
compilation
discussion
documentation
duplicate
enhancement
invalid
performance issue
port request
question
ruby incompatibility
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: MapleShrine/mkxp#223
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi! I wanted to share this a while ago, but wasn't sure if this program was still being actively developed. But I decided I might as well! Anyway, while working on my own little RPG Maker VX Ace game, I have been making it with mkxp support in mind. I noticed that there were issues with font sizes and such (and I am pretty sure there still are), which sort of bugged me for a while but I actually found a kind of work around for it! I ended up writing a little ruby script:
It basically creates a hash table to compare font sizes with the actual pixel size. This might be a helpful tool for tracking down the possible factors making mkxp not render fonts exactly the same perhaps? It's not really a direct solution to the problem, but it might be a good way to more rigorously test how the numbers compare between the different versions of game.exe and mkxp. Might be more helpful to compare the width and height rather then whatever one is smaller like I do, not sure.
I doubt anyone really cares, but hey someone may find it helpful, either to debug mkxp or just to use in their own game, so why not post it here?
Edit: Thought I would double check but it looks to me like the font size in VX Ace at least is equal to the vertical height of the em box (approximated by the result of .text_size for the letter 'M') in pixels? Might depend on the font though. It may simply be that VX Ace just doesn't use point units for fonts and mkxp does.
Edit 2: But in mkxp, when I look at the width and height of the fonts in pixels, the comparable height for the equivalent width is muuuuch different on some fonts, even if they look the same to me... Curiouser and curiouser... How deep will this rabbit hole go?