Skip to content

Add Chinese language #269

@csy19900206

Description

@csy19900206

Hi,ducalex , I want add new language,
Chinese in retrogo display all "blank", I try use font_converter
it not work. Do you help me ,how to display
retro-go/tools/font_converter.py

Traceback (most recent call last):
File "/usr/lib/python3.10/tkinter/init.py", line 1921, in call
return self.func(*args)
File "/home/sams/文档/esp32game/org_code/retro-go/tools/font_converter.py", line 279, in generate_font_data
font_name, font_size, font_data = load_ttf_font(font_path, int(font_height_input.get()))
File "/home/sams/文档/esp32game/org_code/retro-go/tools/font_converter.py", line 143, in load_ttf_font
for char_code in get_char_list(list_char_ranges.get()):
File "/home/sams/文档/esp32game/org_code/retro-go/tools/font_converter.py", line 99, in get_char_list
list_char.append(int(first))
ValueError: invalid literal for int() with base 10: 'xxxxxxx'
xxxxxxx range is 32-126, 0x4E00-0x9FFF, 0x3000-0x303F

translations.zip is my translate c file .

translations.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions