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

Inefficient text wrapping in terminals #43

Open
aaronfreed opened this issue Feb 21, 2025 · 0 comments
Open

Inefficient text wrapping in terminals #43

aaronfreed opened this issue Feb 21, 2025 · 0 comments

Comments

@aaronfreed
Copy link
Contributor

By way of example, i wrote this paragraph for Eternal:

ma'at comes from living in harmony with
nature and with each other, from being
benevolent and kind, from being honourable
and truthful, from alleviating the suffering
of those less fortunate than us rather than
exploiting their misfortune. order cannot
exist without balance or justice, and trying
too hard to impose it results in chaos, just
as trying too hard to fit a square peg into
a round hole breaks the peg.

I had to insert hard line breaks into the above text to get the game to not wrap "suffering" onto the next line. (The same would apply for “trying” and “just”.) Using the standard wrapping behaviour with spaces at the end of words would create the following line breaks in-game:

ma'at comes from living in harmony with
nature and with each other, from being
benevolent and kind, from being honourable
and truthful, from alleviating the
suffering of those less fortunate than us
rather than exploiting their misfortune.
order cannot exist without balance or
justice, and trying too hard to impose it
results in chaos, just as trying too hard
to fit a square peg into a round hole
breaks the peg.

Which in short means it uses an extra line break because the game doesn't wrap text as efficiently as it could. We hates it, precious.

(This may be a font bug, and I’m not sure how much we can do about it on our end, but I’m making the issue for it anyway.)

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

No branches or pull requests

1 participant