We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8215b8f commit 7abc4acCopy full SHA for 7abc4ac
1 file changed
Assets/Scripts/Game/UserInterface/TextLabel.cs
@@ -280,10 +280,9 @@ void DrawLabelSingleCall()
280
+ g.x * scaleX
281
+ info.offset.x * sdfScale;
282
283
- float rawDestY = glyphH
284
- + baseline
285
- - info.offset.y * sdfScale
286
- - g.y * scaleY;
+ float rawDestY = (glyphH + baseline) // Base position relative to TextLabel top
+ + g.y * scaleY // Vertical offset from top of TextLabel
+ - info.offset.y * sdfScale; // Glyph-specific vertical adjustment
287
float y = Rectangle.y + rawDestY;
288
289
// pixel-perfect rounding
0 commit comments