Describe the bug
While calling MeasureTextEx() before window init, the application crashes with 0xC0000005 (Access Violation). I think, we need to catch this.
To Reproduce
open Raylib_CSharp.Fonts
open type Raylib_CSharp.Fonts.TextManager
let text = "Label default"
let size = 20.0f
let textMeasure =
MeasureTextEx(Font.GetDefault(), text, size, 1f)
printf $"Text measure: {textMeasure.X}, {textMeasure.Y}"
Expected behavior
More informative error or Vector2.Zero
Screenshots
Desktop (please complete the following information):
Describe the bug
While calling MeasureTextEx() before window init, the application crashes with 0xC0000005 (Access Violation). I think, we need to catch this.
To Reproduce
Expected behavior
More informative error or Vector2.Zero
Screenshots
Desktop (please complete the following information):