Fix name of ZapfDingbats.

This commit is contained in:
Michael R Sweet 2024-12-15 11:27:18 -05:00
parent 62fdf48ff9
commit 3d6d9e3e3e
No known key found for this signature in database
GPG Key ID: BE67C75EC81F3244
2 changed files with 3 additions and 3 deletions

View File

@ -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,

View File

@ -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);