Angelica

Angelica

125k Downloads

Using custom font (SmoothFont) causes terrible line wrapping issue

ChromaPIE opened this issue ยท 14 comments

commented

Your GTNH Discord Username

No response

Your Pack Version

nightly 2025-02-22

Your Server

SP

Java Version

Java 21

Type of Server

None

Your Expectation

See The Reality

The Reality

Image

Image

Image

Might be a MUI2 issue. I remember seeing similar f-ed up line wrapping issue on the dev build of GTCEu, which is under migration to MUI2 too. No such issue on the current released version of GTCEu, also judging from the fact that there's no reports nor discussions about this so far, at least from my search result, this might be the thing.
Kind of sure this won't get any better for English as the in-game language.
Tried tuning each and every config back and forth on SmoothFont, no luck. (EDIT: Scroll down) Switching back to the default font fixes this.
Please let me know if this do be an MUI2 issue and actually purely upstream that has nothing to do with GTNH and fixing it in its branch is out of the plan, so I could report it there.

Your Proposal

Texts on GT machines displayed correctly.

Final Checklist

  • I have searched this issue tracker and there is nothing similar already. Posting on a closed issue saying the bug still exists will prompt us to investigate and reopen it once we confirm your report.
  • I can reproduce this problem consistently by follow the exact steps I described above, or this does not need reproducing, e.g. recipe loophole.
  • I have asked other people and they confirm they also have this problem by follow the exact steps I described above, or this does not need reproducing, e.g. recipe loophole.
commented

Angelica is not compatible with most of what SmoothFont does.
You can try disabling enableFontRenderer in the config file and restarting the pack

commented

i already got that disabled and besides the wrapping thing its working all fine this whole time. smoothfont wont even work with angelica's renderer enabled.

commented

SF is already on our list of known incompatibilities because it changes a lot of font rendering code
https://github.com/GTNewHorizons/Angelica#known-incompatibilities

commented

Image

Image

these screenshots from 1.12.2 GTCEu dev build might be able to further proof it being an MUI2 and SmoothFont problem but not at all about Angelica. The instance doesn't have any 1.12 port of Sodium and Iris for 1.12 isn't even a thing.

Closing this makes sense as it's not really a GTNH nor its MUI2 fork's issue but it's just not on Angelica.

commented

What happens if you fully disable Angelica?

commented

Just got off pc but i think we'd get the same result. as i mentioned the 1.12 instance above doesn't have any Sodium/Iris backports, the machines which hasn't been migrated to MUI2 display texts just fine, but all MUI2 ones got the exact same problem.

commented

FYI most of the GUIs in GTNH are still written in MUI1.

commented

Sorry for that but I made that assumption simply based on my experience with the released/dev build of GTCEu. this is also described above. the problem on MUI2's end is still solid tho. How both GTNH and GTCEu are malfunctioning exactly the same way when dealing with auto wrapping with custom fonts makes it literally feel like they share the same root cause. But again, I'm sure Angelica has nothing to do with it.

commented

Until you try without Angelica, we wont know.

commented

Update: pretty bizarre thing happened, diabled Angelica, game frozen on loading and the whole system freaked out, can't terminate process, can't even reboot. I'm sure something about the system got broken already. The second try had Angelica on and SF off, still froze the game. btw it's not just minecraft, everything else started acting up for some reason, can't open/close/random unresponsive.. On my way recovering the system right now.

There might be some way more complex stuff happening to my device and because of that I won't, though really want to, continue testing things out.

I have to highlight it that it's just to explain why I can't continue helping with testing stuff about the issue. It is just a simple auto wrapping problem that's possibly caused by the GUI's bad support for custom font. I suspected that it might be caused by MUI2 or similar feature GTNH's fork(s) has to deal with text wrapping, and gave my point. But with all due respect there's really no point keeping this in Angelica's repo simply because the two mods are incompatible. As I mentioned above, having that config on kills SF's modification to font as a whole, it won't work at all but won't cause any fatal problem either.

Imma give my final request to move it back to the main repo but if y'all insist I have no other choice.

commented

risked it all and gave it a try. Without Angelica.

And when using default font
Image

commented

I got this mod already lol. it fixes questbook and stuff but obviously does nothing to GT GUIs

commented

Update: though exceptional compat could prossibly be done on GTNH/MUI2's side, here's a workaround by in SF's config.

Keep AA OFF or at Normal; Fixed Size, set Size to Normal, try setting resolution at or below 32.
It might vary between fonts, but this does fix the issue simply by tuning the config options.