Guest User

Untitled

a guest
Jun 22nd, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. Index: mupdf/mupdf/pdf_font.c
  2. ===================================================================
  3. --- mupdf/mupdf/pdf_font.c (revision 1245)
  4. +++ mupdf/mupdf/pdf_font.c (working copy)
  5. @@ -435,6 +435,29 @@
  6. if (ebuffer[i][0])
  7. estrings[i] = ebuffer[i];
  8. }
  9. +
  10. + /* Load encoding Differences nonetheless, when they're available */
  11. + if (fz_isdict(encoding))
  12. + {
  13. + fz_obj *diff, *item;
  14. +
  15. + diff = fz_dictgets(encoding, "Differences");
  16. + if (fz_isarray(diff))
  17. + {
  18. + n = fz_arraylen(diff);
  19. + k = 0;
  20. + for (i = 0; i < n; i++)
  21. + {
  22. + item = fz_arrayget(diff, i);
  23. + if (fz_isint(item))
  24. + k = fz_toint(item);
  25. + if (fz_isname(item))
  26. + estrings[k++] = fz_toname(item);
  27. + if (k < 0) k = 0;
  28. + if (k > 255) k = 255;
  29. + }
  30. + }
  31. + }
  32. }
  33.  
  34. error = pdf_newidentitycmap(&fontdesc->encoding, 0, 1);
Add Comment
Please, Sign In to add comment