From c7f5b24593c31162fac44b7e62ac414e8ff64d24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Sat, 1 Nov 2014 15:55:55 +0100 Subject: [PATCH] use LoadChar --- OpenRA.Game/Graphics/SpriteFont.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/OpenRA.Game/Graphics/SpriteFont.cs b/OpenRA.Game/Graphics/SpriteFont.cs index 7bcce0b0af..1a01339b2b 100644 --- a/OpenRA.Game/Graphics/SpriteFont.cs +++ b/OpenRA.Game/Graphics/SpriteFont.cs @@ -97,8 +97,7 @@ namespace OpenRA.Graphics GlyphInfo CreateGlyph(Pair c) { - var index = face.GetCharIndex(c.First); - face.LoadGlyph(index, LoadFlags.Default, LoadTarget.Normal); + face.LoadChar(c.First, LoadFlags.Default, LoadTarget.Normal); face.Glyph.RenderGlyph(RenderMode.Normal); var size = new Size((int)face.Glyph.Metrics.Width >> 6, (int)face.Glyph.Metrics.Height >> 6);