Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Addressed an issue with Japanese language display. #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Qsan-jp
Copy link

@Qsan-jp Qsan-jp commented Mar 17, 2019

Japanese hiragana and katakana assigned gothic fonts.
Sazanami-goothic.ttf from U+3040 to U+30FF.

I coped with the kanji used in Japanese which can not be displayed wich can not be displayed with Firefly font.

12normal.json : Change Japanese font from 9 pixel font to 12 pixel font

…th Firefly font.

Japanese hiragana and katakana assigned gothic fonts.
@PhracturedBlue
Copy link
Contributor

Thank you for helping with this. Have you verified these changes in either the emulator or a real Tx for both color and monochrome screens? Also, how did you choose the characters to display in the list? I don't see that such a large list is maintainable so I'd prefer to find an alternative to it.

@Qsan-jp
Copy link
Author

Qsan-jp commented Mar 18, 2019

I tested with T8SG v2 plus and emulator.

I heard that there are characters that can not be displayed in Japanese on SNS, and I investigated.
As more letters were expected than I expected, I made a list as below.

  1. Make a BDF file of a font to be used as a base and a font to be completed.
    I used fontoforge for this work. https://fontforge.github.io/

  2. Extract character code of registered font with grep.
    Extract the row containing ENCODING.

  3. Check the difference between the two extraction results in DIFF.
    Lines that contain only the font to be complemented will be the not be displayd character code.

  4. Mold a list of character codes and apply to config.

I think that it is realistic to replace the list in the above steps when modifying to the font.

@somewhatlurker
Copy link

Sorry for bumping this over a year later, but from what I'm seeing build_bdf.py will only output a single glyph for each character right? (I haven't tested it yet, so that's a genuine question)

If so, you could just use the full {"start": "0x4e00", "end": "0x9fff", "ignore_ascent": true} range for both fonts. (ensure that the old Chinese/kanji font is listed before sazanami mincho so it will be used first)

Also, I noticed you accidentally set size 12 for 18bold.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants