Test both CP1252 and Unicode font rendering.

Add cached CP1252 and Unicode font encoding objects.

Clean up CP1252 ("simple") TrueType font embedding.
This commit is contained in:
Michael R Sweet
2021-06-23 21:26:01 -04:00
parent 060e7cdbd5
commit 10c8d222cf
3 changed files with 283 additions and 61 deletions

View File

@ -224,6 +224,8 @@ struct _pdfio_file_s // PDF file structure
pdfio_obj_t *info; // Information object/dictionary
pdfio_obj_t *pages_root; // Root pages object
pdfio_obj_t *encrypt; // Encryption object/dictionary
pdfio_obj_t *cp1252_obj, // CP1252 font encoding object
*unicode_obj; // Unicode font encoding object
pdfio_array_t *id_array; // ID array
// Allocated data elements