Skip to content

Cabin/Display3-narrow fonts dissonance #76

Description

@half-lifeer

With the original Display3-narrow.fnt / .tex and the custom Cabin.fnt / .tex, nicknames in the game display normally, and the text rendered through Cabin.fnt / .tex has an appropriate size.

When replacing Display3-narrow.fnt / .tex with a custom one, the text rendered through Cabin.fnt / .tex has its characters scaled up to large sizes in the game. Given that the custom Display3-narrow.fnt / .tex is larger than 512×256, the characters in the game become huge, and the Cabin.fnt / .tex font scales up along with this character expansion. Even a fully filled 256×256 texture for Display3-narrow increases the size of the characters rendered by Cabin.fnt / .tex.

Also, if you make the texture for Display3-narrow too small, the characters rendered by Cabin.fnt / .tex shrink.

We need to break the dependency between Cabin.fnt / .tex and Display3-narrow, otherwise it's impossible to make them independent fonts from each other.

At the same time, if you replace the Display3-normal font with a custom one that has a 1024×1024 texture, the text and characters will compress properly in the game to a reasonable size.

Here is my Display3-narrow.fnt / .tex with a 512×256 texture. It drastically increases the size of what Cabin.fnt / .tex renders, and it itself renders very large in the game—whereas with Display3-normal it's completely different, and if the same texture were used for it, it would render normally.

Fonts link: https://litter.catbox.moe/benb9t.zip

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working properly

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions