Commit graph

19 commits

Author SHA1 Message Date
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
52403f0ff7 CtrlCore/CtrlLib: MacOS conditionals fixed to support Turtle
git-svn-id: svn://ultimatepp.org/upp/trunk@15996 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2021-06-15 10:34:04 +00:00
cxl
6122e3d070 CtrlCore, Draw: Cocoa font handling moved to Draw
git-svn-id: svn://ultimatepp.org/upp/trunk@15471 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-11-20 13:19:54 +00:00
cxl
9a0309a477 CtrlCore: MacOS: all font are now scaleable
git-svn-id: svn://ultimatepp.org/upp/trunk@14157 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-03-12 14:47:41 +00:00
cxl
476c9e8692 CtrlCore: Coco refactored to use flipped view
git-svn-id: svn://ultimatepp.org/upp/trunk@12298 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2018-09-23 12:17:43 +00:00
cxl
85ef74e429 CtrlLib: Coco MultiButton
git-svn-id: svn://ultimatepp.org/upp/trunk@12281 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2018-09-17 10:01:04 +00:00
cxl
36c43aced0 CtrlCore: Cocoa font metrics improved
git-svn-id: svn://ultimatepp.org/upp/trunk@12215 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2018-08-31 15:20:02 +00:00
cxl
d7423f981e Draw: Font::IsSerif, IsScript
git-svn-id: svn://ultimatepp.org/upp/trunk@12206 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2018-08-31 05:52:29 +00:00
cxl
b962ef83c2 CtrlCore: Cocoa: Fonts are now sorted by name
git-svn-id: svn://ultimatepp.org/upp/trunk@12192 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2018-08-26 12:53:25 +00:00
cxl
4309ab5daf CtrlCore: Cocoa: Now synthetising missing font styles
git-svn-id: svn://ultimatepp.org/upp/trunk@12189 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2018-08-26 12:23:38 +00:00
cxl
c17038f51c CtrCore: Cocoa: Rotated text
git-svn-id: svn://ultimatepp.org/upp/trunk@12187 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2018-08-26 11:24:22 +00:00
cxl
5a44eeb5a7 CtrlCore: Cocoa font features (RenderCharSys, GetData), Draw: Font caching optimized, Core: FoldHash function
git-svn-id: svn://ultimatepp.org/upp/trunk@12177 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2018-08-21 12:42:55 +00:00
cxl
b7e7c4aaf0 CtrlCore, ide: Cocoa Ctrl+Space issue, CT_Font caching
git-svn-id: svn://ultimatepp.org/upp/trunk@12142 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2018-08-03 16:44:39 +00:00
cxl
2fcdc61154 CtrlCore, CtrlLib, ide: Developing cocoa support
git-svn-id: svn://ultimatepp.org/upp/trunk@12135 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2018-08-02 13:03:12 +00:00
cxl
46bea9f02c CtrlCore: Cocoa support
git-svn-id: svn://ultimatepp.org/upp/trunk@12112 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2018-07-28 16:00:29 +00:00
cxl
c69801def3 CtrlCore: Developing Cocoa support
git-svn-id: svn://ultimatepp.org/upp/trunk@12106 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2018-07-27 17:37:42 +00:00
cxl
42f716ebe5 CtrlCore: Developing Cocoa support
git-svn-id: svn://ultimatepp.org/upp/trunk@12101 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2018-07-25 18:31:12 +00:00
cxl
fce079d34b CtrlCore: Developing Cocoa
git-svn-id: svn://ultimatepp.org/upp/trunk@12100 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2018-07-25 13:22:27 +00:00
cxl
0f165c8214 CtrlCore: Developing Cocoa
git-svn-id: svn://ultimatepp.org/upp/trunk@12076 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2018-07-16 13:07:47 +00:00