Browse Source

Second attempt to fix the font fallback

pull/8626/head
Benedikt Stebner 4 years ago
parent
commit
2cf660b601
  1. 2
      src/Avalonia.Base/Media/TextFormatting/TextCharacters.cs

2
src/Avalonia.Base/Media/TextFormatting/TextCharacters.cs

@ -182,7 +182,7 @@ namespace Avalonia.Media.TextFormatting
var currentScript = currentGrapheme.FirstCodepoint.Script;
if (defaultFont != null && defaultFont.TryGetGlyph(currentGrapheme.FirstCodepoint, out _))
if (!currentGrapheme.FirstCodepoint.IsWhiteSpace && defaultFont != null && defaultFont.TryGetGlyph(currentGrapheme.FirstCodepoint, out _))
{
break;
}

Loading…
Cancel
Save