grimfang4/SDL_FontCache

Doesn't fully render characters

mystborn opened this issue · 3 comments

When using the font found here: https://www.freejapanesefont.com/aozora-mincho-download/
it doesn't fully render characters that characters like g and j. Specifically it cuts off the bottoms of said characters.

An update at some point appears to have broken Japanese characters in general. I just updated the version of FC that I use for one of my games, and Japanese characters no longer render.

@TG-Galeforce Do you know a version which did work? I can bisect from there.

Let me poke around with it and get back to you on it.

Edit 1: Japanese font works when I revert to commit 50afa5d; I tried going back one branch merge at a time until I found one that works.

Edit 2: If I, from that point, apply the changes of commit db5b641, it stops working.

Edit 3: I've confirmed that the problem consistently occurs with that commit, across multiple fonts - both the one that I actually use for my game, as well as publicly available ones. Here's one that I tested: https://www.freejapanesefont.com/motoya-kosugi-maru-download/
Note that the problem doesn't occur when rendering non-Japanese characters from these fonts, so the issue is with the characters themselves rather than the fonts.

Edit 4: If I start from the head at master and revert merge 0860d73, it works as expected.