Skip to content

Commit

Permalink
[hotconv] reset dsigCnt in hotReuse() so subsequent conversions add f…
Browse files Browse the repository at this point in the history
…ull stub 'DSIG' table.
  • Loading branch information
NSGod authored and kaydeearts committed Jun 8, 2023
1 parent cb2e003 commit e8b0f6d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion c/makeotf/lib/hotconv/hot.c
Original file line number Diff line number Diff line change
Expand Up @@ -851,6 +851,8 @@ static void setVBounds(hotCtx g) {
}
}

static unsigned int dsigCnt = 0;

static void hotReuse(hotCtx g) {
g->hadError = 0;
g->convertFlags = 0;
Expand All @@ -859,11 +861,11 @@ static void hotReuse(hotCtx g) {
sfntReuse(g);
mapReuse(g);
featReuse(g);
dsigCnt = 0;
}

char *refillDSIG(void *ctx, long *count, unsigned long tag) {
static const char data[] = "\x00\x00\x00\x01\x00\x00\x00";
static unsigned int dsigCnt = 0;
if (dsigCnt == 0) {
*count = 8;
dsigCnt = 1;
Expand Down

0 comments on commit e8b0f6d

Please sign in to comment.