[Ingameinfo XML] icon in the middle of line indented incorrectly
PinkYuDeer opened this issue · 1 comments
Your GTNH Discord Username
No response
Your Pack Version
2.8.0 nightly 814(2.6.0 as far as I know)
Your Server
private server(SP also)
Java Version
Java 21(Java 8 also)
Type of Server
None
Your Expectation
The Chinese community has customized the following configurations in the IGI profile:
IGI profile details:
<line>
<str>{pingicon}{gold}{username} {white}FPS: </str>
<op>
<str>gt</str>
<var>fps</var>
<num>60</num>
<num>45</num>
<num>30</num>
<num>15</num>
<num>0</num>
<str>{green}</str>
<str>{yellow}</str>
<str>{gold}</str>
<str>{red}</str>
<str>{darkred}</str>
<str/>
</op>
<var>fps</var>
<icon>
<str>minecraft:daylight_detector</str>
</icon>
<str>$f现实时间: $r</str>
<str>$6{rltime24} $r</str>
</line>
The Reality
And then we try profile version 2.0, Added a few Spaces:
IGI profile details:
<line>
<str>{pingicon}{gold}{username} {white}FPS: </str>
<op>
<str>gt</str>
<var>fps</var>
<num>60</num>
<num>45</num>
<num>30</num>
<num>15</num>
<num>0</num>
<str>{green}</str>
<str>{yellow}</str>
<str>{gold}</str>
<str>{red}</str>
<str>{darkred}</str>
<str/>
</op>
<var>fps</var>
<icon>
<str>minecraft:daylight_detector</str>
</icon>
<str> $f现实时间: $r</str>
<str>$6{rltime24} $r</str>
</line>
However, when the player customizes the font, the offset problem arises again:
Many players in the Chinese community are using custom fonts. But we can't seem to do this perfectly in a config file anyway.
Also, once the player has customized the font, indents adjusted by Spaces can also become cluttered.
Before:
Your Proposal
This may be a problem that only occurs when using Chinese and custom fonts. Sorry for taking up dev's time.
Want a fix:
- Make the icon in the middle of the row stay in the right place.
Hoping for an improvement:
- Allows tabs to be configured in the configuration file.
appreciate for the dev
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.