Commit graph

7 commits

Author SHA1 Message Date
Mirek Fidler
317f84e8cb Draw: GetTextSize UTF8 optimised (not creating WString anymore) 2025-06-22 10:46:53 +02:00
Mirek Fidler
34ff691308 sizeof(wchar) is changed to 4 (32 bits) to support non BMP unicode characters
This might bring some incompatibilities in the code that expects wchar to be 16 bit, which
  escpecially involves dealing with Win32 (and to lesser extend MacOS) APIs, so if your application
  is doing that, please check all instances of WCHAR (UniChar on MacOS) or even wchar
  especially type casts.

  To support host APIs, char16 is introduced (but there is no 16-bit String varian).

  Use ToSystemCharsetW, FromSystemCharsetW to convert texts to Win32 API.

- Support of drawing non-BMP characters in GUI
- Vastly improved character font replacement code (when drawing characters missing with requested font, replacement font is used)
- Last instances of Win32 ANSI calls (those ending with A) are removed
- UTF handling routines are refactored and their's naming is unified
- RTF is now being able to handle non-BMP characters (RTF is used as clipboard format for RichText)

Other minor changes:

- fixed TryRealloc issue
- improved MemoryCheck
- Removed MemoryAlloc48/MemoryFree48
- In theide Background parsing should less often cause delays in the main thread
2021-12-02 12:03:19 +01:00
cxl
d470090b25 ide: Fixed assist issue, Core: ReadSurrogatePair
git-svn-id: svn://ultimatepp.org/upp/trunk@14856 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-08-21 08:37:08 +00:00
cxl
bfdc0cd44e Core: JSON now treats string codepoints >0x8000 as surrogate pairs
git-svn-id: svn://ultimatepp.org/upp/trunk@11269 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2017-07-27 12:38:51 +00:00
cxl
6360c8cdc9 Core: Fixed to compile
git-svn-id: svn://ultimatepp.org/upp/trunk@11141 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2017-06-06 07:10:06 +00:00
cxl
35cf9a6f82 .cosmetics
git-svn-id: svn://ultimatepp.org/upp/trunk@11140 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2017-06-05 22:07:44 +00:00
cxl
a69fd4e112 Core: Utf (8, 16, 32) support
git-svn-id: svn://ultimatepp.org/upp/trunk@11139 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2017-06-05 15:44:51 +00:00