REBOL3 tracker
  0.9.12 beta
Ticket #0001814 User: anonymous

Project:



rss
TypeIssue Statusproblem Date3-Jan-2011 01:26
Versionalpha 111 CategoryGraphics Submitted byoldes
PlatformAll Severityminor Prioritynormal

Summary ANSI to UNICODE conversion is needed on each text redraw
Description Can we somehow get rid of code like this one:
https://github.com/rebolsource/r3-hostkit/blob/f331c6a46947e6e5afedc90f3d375bcd3f7ad8a1/src/os/win32/host-graphics.c#L714

It means that each ANSI string must be converted to UNICODE, which is required for AGG renderer. As this code is evaluated on each redraw (mouse move event as well), it can lower a performance if we would like to display longer text in graphic GUI.
Example code

			

Assigned ton/a Fixed in- Last Update31-Jan-2011 01:17


Comments
(0002997)
oldes
3-Jan-2011 01:38

Would it be possible to be able to force REBCHR to be UNICODE even if it has only ANSI content if needed?
And to provide a macro to obtain if it's unicode or not?
(0003063)
Carl
31-Jan-2011 01:17

The correct solution is to detect the string type (BYTE or WIDE) at the level where the characters are begin interpreted and prepared for rendering. By doing that, no conversion should be needed.

Date User Field Action Change
31-Jan-2011 01:17 carl Status Modified reviewed => problem
31-Jan-2011 01:17 carl Comment : 0003063 Added -
17-Jan-2011 04:26 carl Description Modified -
17-Jan-2011 04:26 carl Status Modified submitted => reviewed
3-Jan-2011 01:38 oldes Comment : 0002997 Added -
3-Jan-2011 01:26 oldes Ticket Added -