d0k3 / GodMode9

GodMode9 Explorer - A full access file browser for the Nintendo 3DS console :godmode:
GNU General Public License v3.0
2.15k stars 194 forks source link

[HELP WANTED/TESTING] Proper display of japanese characters (unicode support ?) #687

Closed TheShadowRunner closed 2 years ago

TheShadowRunner commented 3 years ago

Hi and congratulations on release 2.0 ! I would like to request proper japanese font diplay for titles. Currently japanese is rendered as "???????" as can be seen on this sample image: Dsc_0060 Thank you for considering !

ghost commented 3 years ago

I'd like this as well

d0k3 commented 3 years ago

Not against it. But we will need a japanese font in pbm format and proper adressing, and there's no way I'll be able to do this on my own. A 6x10 japanese font may also be a little hard to do.

Anyways, if someone can do the font and someone knowledgeable in unicode can help with the adressing, we can add that.

d0k3 commented 3 years ago

Alright, thanks to @Epicpkmn11 (big thanks for that, again) we now got Unicode support in GodMode9. You can even enter Unicode symbols via the software keyboard hex numpad, and you can create your own Unicode fonts.

What we need now, is testing, and we basically need testing for everything, but especially for everything that's in any way connected to text. Counting on your help here!

Here's a test build: GodMode9-v2.0.0-34-ge1e0e6fb-20210831135031.zip

ghost commented 3 years ago

On Thursday/Friday I’ll download the build! I’m really happy for Japanese support! Great work⚡️

On Aug 31, 2021, at 4:53 AM, d0k3 @.***> wrote:

 Alright, thanks to @Epicpkmn11 (big thanks for that, again) we now got Unicode support in GodMode9. You can even enter Unicode symbols via the software keyboard hex numpad, and you can create your own Unicode fonts.

What we need now, is testing, and we basically need testing for everything, but especially for everything that's in any way connected to text. Counting on your help here!

Here's a test build: GodMode9-v2.0.0-34-ge1e0e6fb-20210831135031.zip

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

TheShadowRunner commented 3 years ago

Thank you very much for your work @Epicpkmn11 , we're almost there! As you can see on the pic there are still quite a few missing characters, I'm guessing they're all kanjis ? At least we got hira & kata which helps a LOT already! ^^ Dsc_0081

Epicpkmn11 commented 3 years ago

Yeah, the default font doesn't have any Kanji as I didn't want to bloat up the default font too much. Just opened #728 which adds a complete JIS X 0201 font in the resources folder so if you want to try it out that should display all Kanji correctly.

Edit: Oh also the current build isn't able to load fonts that big so here's a build from my new PR: GodMode9-v2.0.0-36-g68a1a508.zip

TheShadowRunner commented 3 years ago

Thanks! So I guess I have to grab these 3 files: https://github.com/Epicpkmn11/GodMode9/commit/68a1a5082ebe24fc736ae46238a5b4597c1d7a4e and create a resources/fonts folder at root of SD card?

Epicpkmn11 commented 3 years ago

You just need the .frf file and you can put it wherever you want on your SD, then just select it in GodMode9 and you can choose to load it or set it as your default font.

The PBM is an image and the TXT is the mapping from the image to Unicode and they're used together to convert to an FRF. (I just put them in so that is can be easily modified if needed in the future)

TheShadowRunner commented 3 years ago

Oh that's how it works ^^; Thank you again.

TheShadowRunner commented 3 years ago

Epicpkmn11, is it possible for you to make a font that has standard latin characters (same size and spacing as GM9 default) but that has also full jpn support (kanjis) ? Frankly 8x8 美咲ゴシック doesn't look too good and kanjis are still hardly readable. Even if kanjis are even harder to read at 6x8, it's still better than question marks of the default font, and latin would look ok. What I'm looking for really is the default font with kanjis support even if they don't look too good.

Epicpkmn11 commented 3 years ago

Here's a couple using k6x8 combined with the default: k6x8+default.zip

The difference between k6x8+default.frf and default+k6x8.frf is just in the Kana and Cyrillic, k6x8+default uses k6x8's Kana and Cyrillic where default+k6x8 uses the default's. Also, I moved the added characters to the very end of the PBM instead of the start this time fyi, not sure why I didn't think to do that before lol since this way the JIS X 0208 grid isn't messed with.

imo the two additional pixels width make a huge difference in the readability of the Kanji, most of these look like globs of pixels that barely resemble the kanji where 8x8 often actually look somewhat close, doesn't hurt to have options though. imo this one isn't worth putting in the resources folder, but if y'all like it feel free.

TheShadowRunner commented 3 years ago

Thank you very much for not only being fast but also giving choice ! "default+k6x8.frf" is perfect for me, exactly what I wished for. Kana in "k6x8+default" looks slightly less good imho. Thanks again!

heiyu-04 commented 2 years ago

I'm trying to make a font library with Chinese characters, but the display effect is very poor. Can you tell me the font of your scanning dot matrix

d0k3 commented 2 years ago

Alright, I think we can close this, with Unicode support already beeing in GM9. Great work, @Epicpkmn11 !