X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/halibut/blobdiff_plain/944c4044572da20ed1fb9bc01085221856b53c1f..0ca5b0e1c6d371465224227f56bab2818cb64d28:/bk_pdf.c diff --git a/bk_pdf.c b/bk_pdf.c index 6daebc6..5ebf67e 100644 --- a/bk_pdf.c +++ b/bk_pdf.c @@ -257,6 +257,7 @@ void pdf_backend(paragraph *sourceform, keywordlist *keywords, sprintf(buf, "<%02X>", i + ranges[i] - 1); objstream(cmap, buf); sprintf(buf, "%hu\n", + (unsigned short) sfnt_glyphtoindex(fe->font->info->fontfile, fe->vector[i])); objstream(cmap, buf); @@ -278,6 +279,7 @@ void pdf_backend(paragraph *sourceform, keywordlist *keywords, sprintf(buf, "<%02X>", i); objstream(cmap, buf); sprintf(buf, "%hu\n", + (unsigned short) sfnt_glyphtoindex(fe->font->info->fontfile, fe->vector[i])); objstream(cmap, buf);