rlyt123456
https://github.com/SourMesen/Mesen2/blob/master/Core/Shared/Video/DrawStringCommand.cpp
软件osd显示的汉 ...
有人在23年问过作者这个问题以及作者的回复
kongmao45678 wrote: ↑Sat Feb 18, 2023 5:31 pm
1、On the OSD display, I guess it is because of the font library, some Chinese characters cannot be displayed correctly, can this problem be fixed, thank you.
2、If the file name of the compressed package is in Chinese, use mesen2 to open it, and the game name displayed on the top of the window will be garbled characters.
Neither of these are easy to fix, unfortunately. Japanese characters (and so some Chinese characters) work because I've embedded a free bitmap font with most common Japanese kanji in Mesen, but the font does not contain Chinese characters (and the author of the font did not make a matching Chinese font, either)
For 2), ZIP files don't have a standard way of encoding file names, so this is usually the result of the ZIP filenames being encoded in an encoding that's neither UTF-8 nor Windows' current default encoding (which are the 2 encodings that Mesen will try to use)
译文:
kongmao45678写道:↑2023年2月18日星期六下午5:31
1、 在OSD显示上,我想是因为字体库的原因,一些汉字无法正确显示,这个问题可以解决吗,谢谢。
2、 如果压缩包的文件名是中文的,请使用mesen2打开它,窗口顶部显示的游戏名称将是乱码字符。
作者:不幸的是,这两个问题都不容易解决。日文字符(以及一些中文字符)是有效的,因为我在Mesen中嵌入了一个包含最常见日文汉字的免费位图字体,但该字体不包含中文字符(而且该字体的作者也没有制作匹配的中文字体)
对于2),ZIP文件没有标准的文件名编码方式,因此这通常是由于ZIP文件名的编码既不是UTF-8也不是Windows当前的默认编码(Mesen将尝试使用的两种编码)