mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-22 20:58:34 +01:00
use the actual unicode 1em space in GenericFont
This commit is contained in:
parent
b963941b5c
commit
f63a410cd2
1 changed files with 3 additions and 4 deletions
|
@ -1,7 +1,6 @@
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using Microsoft.Xna.Framework;
|
using Microsoft.Xna.Framework;
|
||||||
using Microsoft.Xna.Framework.Graphics;
|
using Microsoft.Xna.Framework.Graphics;
|
||||||
using MLEM.Formatting.Codes;
|
|
||||||
using MLEM.Misc;
|
using MLEM.Misc;
|
||||||
|
|
||||||
namespace MLEM.Font {
|
namespace MLEM.Font {
|
||||||
|
@ -12,11 +11,11 @@ namespace MLEM.Font {
|
||||||
public abstract class GenericFont : GenericDataHolder {
|
public abstract class GenericFont : GenericDataHolder {
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 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 <see cref="LineHeight"/>.
|
/// This is a character that isn't drawn, but has the same width as <see cref="LineHeight"/>.
|
||||||
/// It is mainly used for <see cref="ImageCode"/>.
|
/// Whereas a regular <see cref="SpriteFont"/> would have to explicitly support this character for width calculations, generic fonts implicitly support it in <see cref="MeasureString"/>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public const char OneEmSpace = '\uF8FF';
|
public const char OneEmSpace = '\u2003';
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// This field holds the unicode representation of a non-breaking space.
|
/// This field holds the unicode representation of a non-breaking space.
|
||||||
/// Whereas a regular <see cref="SpriteFont"/> would have to explicitly support this character for width calculations, generic fonts implicitly support it in <see cref="MeasureString"/>.
|
/// Whereas a regular <see cref="SpriteFont"/> would have to explicitly support this character for width calculations, generic fonts implicitly support it in <see cref="MeasureString"/>.
|
||||||
|
|
Loading…
Reference in a new issue