Skip to content

Commit

Permalink
Use the color arg when drawing a font character in world space
Browse files Browse the repository at this point in the history
  • Loading branch information
wixoaGit committed Jan 21, 2025
1 parent e4190f4 commit 7623b17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Robust.Client/Graphics/Font.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public override float DrawChar(DrawingHandleBase handle, Rune rune, Vector2 base

baseline += new Vector2(metrics.Value.BearingX, -metrics.Value.BearingY);
if(handle is DrawingHandleWorld worldhandle)
worldhandle.DrawTextureRect(texture, Box2.FromDimensions(baseline, texture.Size));
worldhandle.DrawTextureRect(texture, Box2.FromDimensions(baseline, texture.Size), color);
else
handle.DrawTexture(texture, baseline, color);
return metrics.Value.Advance;
Expand Down

0 comments on commit 7623b17

Please sign in to comment.