Use the font dictionary everywhere
This commit is contained in:
@@ -266,7 +266,7 @@ namespace OpenRA.Mods.Cnc.Widgets
|
||||
public void AddChatLine(Color c, string from, string text)
|
||||
{
|
||||
var name = from+":";
|
||||
var font = Game.Renderer.RegularFont;
|
||||
var font = Game.Renderer.Fonts["Regular"];
|
||||
var nameSize = font.Measure(from);
|
||||
|
||||
var template = chatTemplate.Clone() as ContainerWidget;
|
||||
|
||||
@@ -190,7 +190,7 @@ namespace OpenRA.Mods.Cnc.Widgets
|
||||
{
|
||||
if (text == null) text = "";
|
||||
|
||||
var font = (Bold) ? Game.Renderer.BoldFont : Game.Renderer.RegularFont;
|
||||
var font = (Bold) ? Game.Renderer.Fonts["Bold"] : Game.Renderer.Fonts["Regular"];
|
||||
var pos = RenderOrigin;
|
||||
|
||||
if (CursorPosition > text.Length)
|
||||
|
||||
Reference in New Issue
Block a user