Browse Source

Fix TryGetShapeableLength

Benedikt Stebner 3 years ago
parent
commit
6fcba32bbf
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Avalonia.Visuals/Media/TextFormatting/TextCharacters.cs

+ 1 - 1
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;
                 }