From 304b03efa714be302c28022df8bd87b3c59c9cb4 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 10 Jan 2004 03:32:46 +0000 Subject: [PATCH] Non-breaking space --- stepmania/src/Font.cpp | 4 ++++ stepmania/src/FontCharAliases.cpp | 2 ++ 2 files changed, 6 insertions(+) diff --git a/stepmania/src/Font.cpp b/stepmania/src/Font.cpp index 28aaf67145..0e7866e9f0 100644 --- a/stepmania/src/Font.cpp +++ b/stepmania/src/Font.cpp @@ -658,6 +658,10 @@ void Font::LoadFontPageSettings(FontPageSettings &cfg, IniFile &ini, const CStri cfg.MapRange("ascii", 0, 0, -1); else if(cfg.CharToGlyphNo.empty() && NumFrames == 256) cfg.MapRange("cp1252", 0, 0, -1); + + /* If ' ' is set and nbsp is not, set nbsp. */ + if( cfg.CharToGlyphNo.find(' ') != cfg.CharToGlyphNo.end() ) + cfg.CharToGlyphNo[0x00A0] = cfg.CharToGlyphNo[' ']; } CString FontPageSettings::MapRange(CString Mapping, int map_offset, int glyphno, int cnt) diff --git a/stepmania/src/FontCharAliases.cpp b/stepmania/src/FontCharAliases.cpp index edf4f4fc6b..98b891d4a4 100644 --- a/stepmania/src/FontCharAliases.cpp +++ b/stepmania/src/FontCharAliases.cpp @@ -257,6 +257,8 @@ static void InitCharAliases() { "kdot", 0x30FB }, /* ・ */ { "kdash", 0x30FC }, /* ー */ + { "nbsp", 0x00a0 }, /* Non-breaking space */ + /* Symbols: */ { "omega", 0x03a9 }, /* Ω */ { "whiteheart", 0x2661 }, /* ♡ */