thpatch / thcrap

Touhou Community Reliant Automatic Patcher
https://www.thpatch.net
The Unlicense
551 stars 41 forks source link

th175: stage name font #182

Closed brliron closed 2 years ago

brliron commented 2 years ago

Replace the stage name font for better unicode support image

brliron commented 2 years ago

Some points:

  1. The stage number needs to be displayed with Touhou Biolinum, because it needs characters missing from the JP font.
  2. The stage title (the thing right after the stage number) isn't translatable yet (#180), so it is still in Japanese, and can't be displayed with Touhou Biolimun. For now, it needs to be displayed with the JP font.
  3. For aesthetic reasons, we may want to keep the same font for both texts.
  4. For aesthetic reasons, English might want to keep the JP font.

With all that in mind, we can either change the font for the stage number, or both fonts. In both cases, it would go into th175/data/script/scene/subtitle.nut.jdiff.

For both fonts:
{
    "/Functions/2/Literals/26": "touhou_biolinum"
}

For the 1st font only:

{
    "/Functions/2": {
        "replace_instructions": {
            "78": "dload(s2, \"fontface\", s3, \"touhou_biolinum\")",
        },
        "add_literals": [
            "touhou_biolinum"
        ]
    }
}
brliron commented 2 years ago

Fixed in thpatch/thcrap-tsa@fd07fa25c0e846f2db58153cb662e7c71b88c14b