Fix GetPartialTextExtents() to handle non-BMP chars under OS X

On OS X, wxString operates on UTF-32 code units, but CoreText API use UTF-16
code units. So we need to take care of surrogate pairs.

Closes https://github.com/wxWidgets/wxWidgets/pull/261
This commit is contained in:
ARATA Mizuki
2016-03-26 13:31:35 +09:00
committed by Vadim Zeitlin
parent 55d77f271e
commit cf000e7e02
2 changed files with 12 additions and 5 deletions

View File

@@ -81,6 +81,7 @@ wxMSW:
wxOSX:
- Fix handling of non-BMP characters in GetPartialTextExtents() (ARATA Mizuki).
- Remove extra borders around wxFilePickerCtrl (John Roberts).
- Set up extensions filter correctly in wxFileDialog (nick863).
- Turn off automatic quotes substitutions in wxTextCtrl (Xlord2).