Store combining chars as an array in the Cell

Makes it easier to increase the number of combining chars if needed,
rather than storing them as a mask.
This commit is contained in:
Kovid Goyal
2018-01-18 14:10:58 +05:30
parent 5fd4bc965f
commit 409bd37db5
5 changed files with 36 additions and 65 deletions

View File

@@ -180,7 +180,7 @@ find_substitute_face(CFStringRef str, CTFontRef old_font) {
PyObject*
create_fallback_face(PyObject *base_face, Cell* cell, bool UNUSED bold, bool UNUSED italic) {
CTFace *self = (CTFace*)base_face;
char text[128] = {0};
char text[256] = {0};
cell_as_utf8(cell, true, text, ' ');
CFStringRef str = CFStringCreateWithCString(NULL, text, kCFStringEncodingUTF8);
if (str == NULL) return PyErr_NoMemory();