@@ -1343,12 +1343,13 @@ namespace MWGui
1343
1343
return codePoint == ' \r ' ;
1344
1344
}
1345
1345
1346
+ // Normal no-break space (0x00A0) is ignored here
1347
+ // because Morrowind compatibility requires us to render its glyph
1346
1348
static bool ucsSpace (int codePoint)
1347
1349
{
1348
1350
switch (codePoint)
1349
1351
{
1350
1352
case 0x0020 : // SPACE
1351
- case 0x00A0 : // NO-BREAK SPACE
1352
1353
case 0x1680 : // OGHAM SPACE MARK
1353
1354
case 0x180E : // MONGOLIAN VOWEL SEPARATOR
1354
1355
case 0x2000 : // EN QUAD
@@ -1373,12 +1374,14 @@ namespace MWGui
1373
1374
}
1374
1375
}
1375
1376
1377
+ // No-break spaces (0x00A0, 0x202F, 0xFEFF - normal, narrow, zero width)
1378
+ // are ignored here for obvious reasons
1379
+ // Figure space (0x2007) is not a breaking space either
1376
1380
static bool ucsBreakingSpace (int codePoint)
1377
1381
{
1378
1382
switch (codePoint)
1379
1383
{
1380
1384
case 0x0020 : // SPACE
1381
- // case 0x00A0: // NO-BREAK SPACE
1382
1385
case 0x1680 : // OGHAM SPACE MARK
1383
1386
case 0x180E : // MONGOLIAN VOWEL SEPARATOR
1384
1387
case 0x2000 : // EN QUAD
@@ -1388,15 +1391,12 @@ namespace MWGui
1388
1391
case 0x2004 : // THREE-PER-EM SPACE
1389
1392
case 0x2005 : // FOUR-PER-EM SPACE
1390
1393
case 0x2006 : // SIX-PER-EM SPACE
1391
- case 0x2007 : // FIGURE SPACE
1392
1394
case 0x2008 : // PUNCTUATION SPACE
1393
1395
case 0x2009 : // THIN SPACE
1394
1396
case 0x200A : // HAIR SPACE
1395
1397
case 0x200B : // ZERO WIDTH SPACE
1396
- case 0x202F : // NARROW NO-BREAK SPACE
1397
1398
case 0x205F : // MEDIUM MATHEMATICAL SPACE
1398
1399
case 0x3000 : // IDEOGRAPHIC SPACE
1399
- // case 0xFEFF: // ZERO WIDTH NO-BREAK SPACE
1400
1400
return true ;
1401
1401
default :
1402
1402
return false ;
0 commit comments