From 23024908c7f33e5a895af55935566ce3b2711fc3 Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Mon, 1 Oct 2012 10:37:58 +0200 Subject: [PATCH] Minor fixes. --- frontend/main.cpp | 1 + lib/tattc.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/main.cpp b/frontend/main.cpp index 84c0f02..7ce3cab 100644 --- a/frontend/main.cpp +++ b/frontend/main.cpp @@ -69,6 +69,7 @@ progress(long curr_idx, { fprintf(stderr, "subfont %ld of %ld\n", curr_sfnt + 1, num_sfnts); data->last_sfnt = curr_sfnt; + data->last_percent = 0; data->begin = true; } diff --git a/lib/tattc.c b/lib/tattc.c index 630eca8..a6bffe7 100644 --- a/lib/tattc.c +++ b/lib/tattc.c @@ -37,7 +37,7 @@ TA_font_build_TTC_header(FONT* font, FT_Byte* p; - len = 24 + 4 * num_sfnts; + len = (font->have_DSIG ? 24 : 12) + 4 * num_sfnts; buf = (FT_Byte*)malloc(len); if (!buf) return FT_Err_Out_Of_Memory; -- 2.11.4.GIT