Non-breaking space
This commit is contained in:
@@ -658,6 +658,10 @@ void Font::LoadFontPageSettings(FontPageSettings &cfg, IniFile &ini, const CStri
|
|||||||
cfg.MapRange("ascii", 0, 0, -1);
|
cfg.MapRange("ascii", 0, 0, -1);
|
||||||
else if(cfg.CharToGlyphNo.empty() && NumFrames == 256)
|
else if(cfg.CharToGlyphNo.empty() && NumFrames == 256)
|
||||||
cfg.MapRange("cp1252", 0, 0, -1);
|
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)
|
CString FontPageSettings::MapRange(CString Mapping, int map_offset, int glyphno, int cnt)
|
||||||
|
|||||||
@@ -257,6 +257,8 @@ static void InitCharAliases()
|
|||||||
{ "kdot", 0x30FB }, /* ・ */
|
{ "kdot", 0x30FB }, /* ・ */
|
||||||
{ "kdash", 0x30FC }, /* ー */
|
{ "kdash", 0x30FC }, /* ー */
|
||||||
|
|
||||||
|
{ "nbsp", 0x00a0 }, /* Non-breaking space */
|
||||||
|
|
||||||
/* Symbols: */
|
/* Symbols: */
|
||||||
{ "omega", 0x03a9 }, /* Ω */
|
{ "omega", 0x03a9 }, /* Ω */
|
||||||
{ "whiteheart", 0x2661 }, /* ♡ */
|
{ "whiteheart", 0x2661 }, /* ♡ */
|
||||||
|
|||||||
Reference in New Issue
Block a user