From f63a410cd2f3a18e0ec146e7ca97a07ea65b172b Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Tue, 8 Dec 2020 01:43:52 +0100 Subject: [PATCH] use the actual unicode 1em space in GenericFont --- MLEM/Font/GenericFont.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/MLEM/Font/GenericFont.cs b/MLEM/Font/GenericFont.cs index 1a38e87..856cd62 100644 --- a/MLEM/Font/GenericFont.cs +++ b/MLEM/Font/GenericFont.cs @@ -1,7 +1,6 @@ using System.Text; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; -using MLEM.Formatting.Codes; using MLEM.Misc; namespace MLEM.Font { @@ -12,11 +11,11 @@ namespace MLEM.Font { public abstract class GenericFont : GenericDataHolder { /// - /// This field holds a special, private use area code point for a one em space. + /// This field holds the unicode representation of a one em space. /// This is a character that isn't drawn, but has the same width as . - /// It is mainly used for . + /// Whereas a regular would have to explicitly support this character for width calculations, generic fonts implicitly support it in . /// - public const char OneEmSpace = '\uF8FF'; + public const char OneEmSpace = '\u2003'; /// /// This field holds the unicode representation of a non-breaking space. /// Whereas a regular would have to explicitly support this character for width calculations, generic fonts implicitly support it in .