REGoth-project / REGoth

OpenSource-Reimplementation of the zEngine, used by the game "Gothic"
GNU General Public License v3.0
631 stars 62 forks source link

Log alignment fix #243

Closed kapitaenzufall closed 7 years ago

kapitaenzufall commented 7 years ago

This pr fixes the vertical alignment of multiline text of the log menu. It seems that multiline text needs to be drawn a half font height closer to the top. Because the console uses multiline text with a different aligment I had to compensate the above changes.

@markusobi Well done with the level switch, works great!

Btw. I encountered that mutiline text is vertical drawn with 1 less pixel between the lines. I also found out that the horizontal offset between the glyphs is not always correct.

kapitaenzufall commented 7 years ago

This does not seem to be correct. I ll have to do further research...

markusobi commented 7 years ago

I used zFont::getFontHeight in ConsoleBox and DialogBox to calculate the font height instead of calcTextMetrics. Feel free to change that code if you need to.