devkitPro / libctru

Homebrew development library for Nintendo 3DS/Horizon OS user mode (Arm11)

Home Page:https://libctru.devkitpro.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unicode font support/examples

deltabeard opened this issue · comments

Hello,

Currently, when printing unicode characters such as "ろん -「おちゃめ機能」FUKKIRETAX9-29-q7YnyUmY" they appear as incorrect ASCII characters as shown below (Shown next to "2: "):
2016-12-31-110026_400x480_scrot

I know that using the system font example, or with sftdlib, unicode text can be printed. But is there a way to print unicode characters on the console?

Thanks.

commented

The console is only meant to quickly display ASCII text for debugging or prototyping purposes. What you see are the raw UTF-8 code units comprising the strings you are trying to print, as interpreted through whatever old 8-bit codepage the console font contains data for. If you need serious text rendering, you should use the system font or any other text rendering mechanism which supports Unicode characters.

In the future it is possible that we will consider expanding the console code in this way, however don't count on it.