mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
Use the color arg when drawing a font character in world space (#5626)
This commit is contained in:
@@ -133,7 +133,7 @@ namespace Robust.Client.Graphics
|
||||
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user