aboutsummaryrefslogtreecommitdiff
path: root/mod/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'mod/src/main/java')
-rw-r--r--mod/src/main/java/kr/syeyoung/dungeonsguide/mod/guiv2/elements/richtext/RichText.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/guiv2/elements/richtext/RichText.java b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/guiv2/elements/richtext/RichText.java
index cc651a9d..3dc58c7e 100644
--- a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/guiv2/elements/richtext/RichText.java
+++ b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/guiv2/elements/richtext/RichText.java
@@ -120,7 +120,6 @@ public class RichText extends Widget implements Layouter, Renderer {
richLines = lines;
-
return new Size(takeAllSpace ? constraintBox.getMaxWidth() : maxWidth, sumHeight);
}
@@ -208,7 +207,8 @@ public class RichText extends Widget implements Layouter, Renderer {
x = 0;
for (FlatTextSpan lineElement : richLine.getLineElements()) {
lineElement.textStyle.getFontRenderer()
- .render(lineElement, x, y + richLine.getBaseline() - lineElement.getBaseline(), currentScale);
+ .render(lineElement, x, y + richLine.getBaseline() - lineElement.getBaseline()
+ + lineElement.textStyle.getTopAscent() * lineElement.textStyle.getSize(), currentScale);
x += lineElement.getWidth();
}
y += richLine.getHeight();