From 3d6d9e3e3e3031cf6e169757ced017e4be0d5f9c Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Sun, 15 Dec 2024 11:27:18 -0500 Subject: [PATCH] Fix name of ZapfDingbats. --- pdfio-base-font-widths.h | 2 +- pdfio-content.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pdfio-base-font-widths.h b/pdfio-base-font-widths.h index f311da9..ce5d854 100644 --- a/pdfio-base-font-widths.h +++ b/pdfio-base-font-widths.h @@ -284,7 +284,7 @@ static short times_roman_widths[256] = }; -static short zapf_dingbats_widths[256] = +static short zapfdingbats_widths[256] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, diff --git a/pdfio-content.c b/pdfio-content.c index a3ee04a..3eb421b 100644 --- a/pdfio-content.c +++ b/pdfio-content.c @@ -1171,8 +1171,8 @@ pdfioContentTextMeasure( widths = times_italic_widths; else if (!strcmp(basefont, "Times-Roman")) widths = times_roman_widths; - else if (!strcmp(basefont, "Zapf-Dingbats")) - widths = zapf_dingbats_widths; + else if (!strcmp(basefont, "ZapfDingbats")) + widths = zapfdingbats_widths; else return (0.0);