SDL_FontCache icon indicating copy to clipboard operation
SDL_FontCache copied to clipboard

Doesn't fully render characters

Open mystborn opened this issue 4 years ago • 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.

mystborn avatar May 29 '20 00:05 mystborn

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 avatar Oct 17 '20 00:10 TG-Galeforce

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

grimfang4 avatar Oct 17 '20 01:10 grimfang4

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

Edit 1: Japanese font works when I revert to commit 50afa5d6c1af2744a88b19ecc7e6f007957a1dc5; 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 db5b641fc68fd4815d31a6d020e4a4e1c8483507, 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 0860d7356fb091110bb8701c4bf073d3423b0863, it works as expected.

TG-Galeforce avatar Oct 18 '20 08:10 TG-Galeforce