You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added a Font Selector to my "text searching program" and got a crash. on selecting the "Marlett" font.
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Avalonia.Media.GlyphRun.CreateGlyphRunMetrics()
at Avalonia.Media.GlyphRun.get_Metrics()
at Avalonia.Media.GlyphRun.get_BaselineOrigin()
at Avalonia.Media.GlyphRun.CreateGlyphRunImpl()
at Avalonia.Media.GlyphRun.get_PlatformImpl()
at Avalonia.Media.GlyphRun.get_InkBounds()
at Avalonia.Media.TextFormatting.TextLineImpl.CreateLineMetrics()
at Avalonia.Media.TextFormatting.TextLineImpl.FinalizeLine()
at Avalonia.Media.TextFormatting.TextFormatterImpl.FormatLine(ITe
Non standard fonts should do a default behavior (unfound square visual?), but not throw here. I cannot guaranteed that user installed fonts will not crash the same way.
Avalonia version
11.0.6.0 ( this template ), first discovered in 11.1.0.0
OS
Windows
Additional context
Selecting this in the view for Blitz Search means crashing =(
The text was updated successfully, but these errors were encountered:
Describe the bug
Added a Font Selector to my "text searching program" and got a crash. on selecting the "Marlett" font.
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Avalonia.Media.GlyphRun.CreateGlyphRunMetrics()
at Avalonia.Media.GlyphRun.get_Metrics()
at Avalonia.Media.GlyphRun.get_BaselineOrigin()
at Avalonia.Media.GlyphRun.CreateGlyphRunImpl()
at Avalonia.Media.GlyphRun.get_PlatformImpl()
at Avalonia.Media.GlyphRun.get_InkBounds()
at Avalonia.Media.TextFormatting.TextLineImpl.CreateLineMetrics()
at Avalonia.Media.TextFormatting.TextLineImpl.FinalizeLine()
at Avalonia.Media.TextFormatting.TextFormatterImpl.FormatLine(ITe
To Reproduce
I have created a Repository with an immediate repro of this issue in
https://github.com/Natestah/AvaloniaFontCrash
The above repository has all this, just grab that and run it.
Steps I followed:
Expected behavior
Non standard fonts should do a default behavior (unfound square visual?), but not throw here. I cannot guaranteed that user installed fonts will not crash the same way.
Avalonia version
11.0.6.0 ( this template ), first discovered in 11.1.0.0
OS
Windows
Additional context
Selecting this in the view for Blitz Search means crashing =(
The text was updated successfully, but these errors were encountered: