Guidebook

Guidebook

6M Downloads

Bug - font size resize the whole book

gdarai opened this issue ยท 10 comments

commented

Hi.. I need hint or I am just reporting bug: Adding fontSize="0.6" to the book tag changes the size of the whole book.
I have 2 books added, one without fontSize and second with it.
2018-05-07_22 49 46
2018-05-07_22 49 53
Do you know how to get corret fontSize withour resizing the book?
It is possible that it is a mod interaction conflict, since on smaller modpack it behaves differently/correctly.

commented

I have a certain algorithm to decide the actual size of the book. I tried to keep the font scale in fixed numbers, so like 1x, 2x, 3x... so it can happen that when calculating the new book scale, it will choose a smaller size.

Let me give an example: suppose your normal gui scale is 7x, and you choose 0.6, that results in a font size of 4.2, which would look uneven. So instead of keeping the book in the original size and scaling the text as 4.2x, I round the font scale down to 4x, and then scale the book model to 95% of the original size, to compensate.

But in your case, something else seems to be going on, since the final size should not be THAT small... what book size did you configure in the mod settings?

commented

I did not... what setting and where it should be?
Ok, got it.. still -1, I will try to fix it to some number.

commented

Hi hi... setting the size to 3 = large broke even the good book:
2018-05-07_23 47 11
And did nothing with the small one.

commented

So what do you recommend? The font size 1 is too large... I need to shrink down the text, not make it larger. What should I put there in? Would 0.5 be better? I will try it.
EDIT: Result - it did not help. Unfortunately.

commented

Yes sorry, changing the size is bugged currently, you have to reload resources (F3+T) or restart the game...

commented

Oh, I tried, the screenshots are after the whole game restarted. So, unfortunately no, it is not just a question of restarting the game. size = -1 and fontSize = 0.5 does the same as the original size = -1 and fontSize = 0.6... I will try size = 3 if it will be different after restart to have the full image.
EDIT: Result is the same as in the initial post of this thread.

commented

So, I guess the most important question is: What is your recommended setting to have "normal" size of book and text size simmilar to the one in your example book? (Because that has fontSize=0.6 which is what is causing me the issue. :o) )

commented

The default gui scale works well with my screen, but I have 2560x1440, so that may not be true for you. The issue with books being too small or too big, I have to fix. I wrote it on this screen so I didn't fully test enough sizes to know that it worked well for everyone. Keep this issue open so I remember :)

commented

Ok, thank you. I will for now let my players suffer (come on, I put a lot effort in it and it is sort of readable.) and if I will go out from beta and still have this issue, I will rewrite the book in the standard scale, which somewhat works. For the full information, my monitor is 19201080 minecraft setting 1024768, gui size Large and the issue was for gbook size -1 and fontSize = 0.6.

commented

I have just uploaded version 2.5, which contains many experimental features, including improvements to the logic for calculating the book size, and should behave better overall. However due to the experimental nature of the HUGE changes to the mod's internals, I have marked it as alpha. Feel free to test (it's under review and should be available soon), and tell me if you can find any issue in it!