Fix Unicode font handling (Issue #16)

This commit is contained in:
Michael R Sweet
2023-11-14 18:19:34 -05:00
parent 688810f143
commit 600fa4ce59
8 changed files with 38 additions and 39 deletions

View File

@@ -1526,7 +1526,7 @@ pdfioFileCreateFontObjFromFile(
{
// Encode a repeating sequence...
pdfioArrayAppendNumber(w_array, start);
pdfioArrayAppendNumber(w_array, i);
pdfioArrayAppendNumber(w_array, i - 1);
pdfioArrayAppendNumber(w_array, w0);
}
else
@@ -1551,6 +1551,8 @@ pdfioFileCreateFontObjFromFile(
if (i == 65536)
pdfioArrayAppendNumber(temp_array, w0);
else
i --;
pdfioArrayAppendArray(w_array, temp_array);
}