Skip to content

Commit

Permalink
Fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Shapiro committed Jan 1, 2022
1 parent 4361ea3 commit f54d2dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/StbTrueType.Generated.FontInfo.cs
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit f54d2dc

Please sign in to comment.