From f54d2dc8b34afe372cf62934a45ac49df715bc2f Mon Sep 17 00:00:00 2001 From: Roman Shapiro Date: Sun, 2 Jan 2022 05:34:31 +0700 Subject: [PATCH] Fixed test --- src/StbTrueType.Generated.FontInfo.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/StbTrueType.Generated.FontInfo.cs b/src/StbTrueType.Generated.FontInfo.cs index be1bba0..486d324 100644 --- a/src/StbTrueType.Generated.FontInfo.cs +++ b/src/StbTrueType.Generated.FontInfo.cs @@ -1,6 +1,7 @@ // Generated by Sichem at 1/2/2022 4:23:36 AM using Hebron.Runtime; +using System; using System.Runtime.InteropServices; namespace StbTrueTypeSharp @@ -1796,7 +1797,7 @@ public static int stbtt_InitFont_internal(stbtt_fontinfo info, byte* data, int f } if (info.index_map == 0) - return 0; + throw new Exception("The font does not have a table mapping from unicode codepoints to font indices."); info.indexToLocFormat = ttUSHORT(data + info.head + 50); return 1; }