Browse Source

Fix TryGetShapeableLength

pull/4893/head
Benedikt Stebner 4 years ago
parent
commit
6fcba32bbf
  1. 2
      src/Avalonia.Visuals/Media/TextFormatting/TextCharacters.cs

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

@ -190,7 +190,7 @@ namespace Avalonia.Media.TextFormatting
}
//Stop at the first missing glyph
if (!font.TryGetGlyph(currentGrapheme.FirstCodepoint, out _))
if (!currentGrapheme.FirstCodepoint.IsBreakChar && !font.TryGetGlyph(currentGrapheme.FirstCodepoint, out _))
{
break;
}

Loading…
Cancel
Save