Skip to content

Commit

Permalink
fix character offsets
Browse files Browse the repository at this point in the history
  • Loading branch information
amylizzle committed Dec 16, 2024
1 parent 861e9de commit 392d4fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenDreamClient/Rendering/DreamViewOverlay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,7 @@ public Texture GetTextureFromMaptext(string maptext, int width, int height, Draw
var metric = font.GetCharMetrics(rune, scale);
Vector2 mod = new Vector2(0);
if(metric.HasValue)
mod.Y += metric.Value.BearingY;
mod.Y += metric.Value.BearingY - (metric.Value.Height - metric.Value.BearingY);

baseLine.X += font.DrawChar(handle, rune, baseLine+mod, scale, Color.White);
}
Expand Down

0 comments on commit 392d4fc

Please sign in to comment.