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