Browse Source

Fix TryGetShapeableLength

Benedikt Stebner 3 năm trước cách đây
mục cha
commit
6fcba32bbf

+ 1 - 1
src/Avalonia.Visuals/Media/TextFormatting/TextCharacters.cs

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