Non-breaking space

This commit is contained in:
Glenn Maynard
2004-01-10 03:32:46 +00:00
parent 088a339ee3
commit 304b03efa7
2 changed files with 6 additions and 0 deletions
+4
View File
@@ -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)
+2
View File
@@ -257,6 +257,8 @@ static void InitCharAliases()
{ "kdot", 0x30FB }, /* ・ */
{ "kdash", 0x30FC }, /* ー */
{ "nbsp", 0x00a0 }, /* Non-breaking space */
/* Symbols: */
{ "omega", 0x03a9 }, /* Ω */
{ "whiteheart", 0x2661 }, /* ♡ */