diff options
author | Mattias Andrée <maandree@kth.se> | 2021-10-30 00:35:08 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-10-30 00:35:37 +0200 |
commit | 0fe690ba5a23e7d0962b0a1a868df293a3bbe425 (patch) | |
tree | 17ef16b564c13f66127d5f7600c2542a502db39e /libparsepcf_preparse_font.c | |
parent | First commit (diff) | |
download | libparsepcf-0fe690ba5a23e7d0962b0a1a868df293a3bbe425.tar.gz libparsepcf-0fe690ba5a23e7d0962b0a1a868df293a3bbe425.tar.bz2 libparsepcf-0fe690ba5a23e7d0962b0a1a868df293a3bbe425.tar.xz |
Second commit
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'libparsepcf_preparse_font.c')
-rw-r--r-- | libparsepcf_preparse_font.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libparsepcf_preparse_font.c b/libparsepcf_preparse_font.c index 5874b50..058365a 100644 --- a/libparsepcf_preparse_font.c +++ b/libparsepcf_preparse_font.c @@ -87,7 +87,7 @@ libparsepcf_preparse_font(const char *file, size_t size, struct libparsepcf_font max = font->swidths; } - if (min != max || !font->mtx_table) + if (min != max || !font->mtx_table || !font->enc_table) goto ebfont; if (!font->inkmtx_table && font->accel_table && font->accels.ink_metrics) goto ebfont; |