added support for ignore bad char flag

- updated unit tests to include
- using the textstate.to_unichr abstraction
This commit is contained in:
ari committed 2019-12-08 14:44:46 -05:00
1 parent 841576d9b8
commit a29d465ea4
9 files changed
+53 -11

No files matched your search

@@ -33,7 +33,7 @@ def __render_string_along(idx: int, seq: bytearray,
if needcharspace:
textstate.linematrix[idx] += textstate.charspace
text = textstate.font.to_unichr(cid)
text = textstate.to_unichr(cid)
assert isinstance(text, str), str(type(text))
matrix = translate_matrix(textstate.matrix, textstate.linematrix)