racket/draw Cocoa: fix surroate-pair patch for Pango
This commit is contained in:
parent
004957bcd6
commit
d212fc7eba
|
@ -1 +1 @@
|
||||||
Subproject commit ac6f3873bb45b88c965881c07057b431ccf6eb75
|
Subproject commit d81690026213e2a1c5c08235e3bf22d4511e987a
|
|
@ -64,7 +64,7 @@ diff -r -u old/pango-1.36.3/modules/basic/basic-coretext.c new/pango-1.36.3/modu
|
||||||
+ gunichar c;
|
+ gunichar c;
|
||||||
+
|
+
|
||||||
+ c = CFStringGetCharacterAtIndex (iter->cstr, iter->current_indices[iter->ct_i]);
|
+ c = CFStringGetCharacterAtIndex (iter->cstr, iter->current_indices[iter->ct_i]);
|
||||||
+ if (c & 0xD800) {
|
+ if ((c & 0xD800) == 0xD800) {
|
||||||
+ /* surrogate pair */
|
+ /* surrogate pair */
|
||||||
+ gunichar c2;
|
+ gunichar c2;
|
||||||
+ c2 = CFStringGetCharacterAtIndex (iter->cstr, iter->current_indices[iter->ct_i]+1);
|
+ c2 = CFStringGetCharacterAtIndex (iter->cstr, iter->current_indices[iter->ct_i]+1);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user