07th-mod / 07th-mod/ui-editing-scripts
Improve Japanese Font Rendering + Fix missing glyphs in msgothic_2
- Ngôn ngữ chính
- Python
- Star
- 5
- Fork
- 15
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
To summarize, some Japanese characters are hard to read in our mod, which could be improved through various means. If w
If we're regenerating the fonts to fix this issue, we might as well also fix the missing glyph in Matsuribayashi (or just make msgothic2 the same set of characters as in msgothic0)
See
- https://github.com/07th-mod/matsuribayashi/issues/41
Below I've copied the previous discussion from discord:
----
**OP:**
> I'm just being extremely picky, but I'm wondering if there's an easy way to change the japanese font. Any moderately complex kanji is always extremely aliased to the point where stroke lines blur together

> I see there's a FontID setting in init.txt, but changing the parameter doesn't seem to do anything with the linux version
for comparison this is DejaVu Sans

> and this is how the character 鷹 looks in umineko

**drojf:**
> Unfortunately, it's kinda difficult....you need to get the font, put it into unity, generate a SDF font in unity, export the font from unity, then run our scripts (for ch1-8 only): https://07th-mod.com/wiki/developer/sharedassets/ui-editing-scripts/#adding-font-support-for-a-new-language-chapters-1-8-only
the fonts are converted to SDF style fonts, so it might just be a quality limitation due to how many characters we can fit in the texture atlas
from the wiki: >The current Japanese font contains about 3000 26pt Japanese characters and fits in 2048x2048, taking up 4MB.
> I'm not sure what the max texture atlas size is in Unity, lemme double check since I was messing with this before...
oh ok, on the version of Unity used on Rei, the max texture atlas size is 8192 (for both dimensions), so we could technically have higher res fonts, but I haven't checked the older versions of unity
I'm not sure if there are any issues having such a large texture, though
**OP (some time later):**
> some fonts look better than others at low res. I have a feeling msgothic is not well optimized. Noto Sans CJK JP is free and open source and might be a better choice. I'd try it myself but I apparently would need to install windows in order to use unity5

Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Hướng nghiên cứu
Issue này liên quan đến việc tạo font cho một mod dựa trên Unity. Hãy bắt đầu bằng cách đọc trang wiki được liên kết về việc thêm hỗ trợ font (https://07th-mod.com/wiki/developer/sharedassets/ui-editing-scripts/#adding-font-support-for-a-new-language-chapters-1-8-only). Kiểm tra các texture font hiện có và các script trong repository này để hiểu pipeline tạo font SDF. 'Hoàn thành' có nghĩa là tạo ra một texture font mới với các glyph tiếng Nhật được cải thiện và đảm bảo nó hoạt động trong game.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- python, unity
- Lĩnh vực
- game-dev, tooling
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 45/100