reaper-oss / sws

The SWS extension is a collection of features that seamlessly integrate into REAPER, the Digital Audio Workstation (DAW) software by Cockos, Inc
https://www.sws-extension.org/
MIT License
448 stars 85 forks source link

Bug: Emoji Encoding Issue with SWS Notes in Edition Mode #1725

Closed X-Raym closed 7 months ago

X-Raym commented 1 year ago

Hi,

SWS, 2.13.2.0 Windows 10 x64,

Some composed emojis are decomposed when using SWS notes in edition mode. 🧞‍♀️ in no edit mode become 🧞♀️

Here is a demo:

img

Note this is just a display bug, if I go back to the no edit mode, it displays nicely.

Thx!

cfillion commented 1 year ago

Guessing this is related to text layout & rendering in the Windows Edit control (handling of the Zero Width Joiner control char) rather than encoding... Anyway, some findings:

  1. It works in the Actions filter field and Project Settings notes
  2. It works in Windows Run (Win+R)
  3. It does not work in Windows Notepad (except in secondary fields like in Find)
  4. It does not work in ReaPack's filter (Unicode windows)
  5. It does not work in other SWS text edit fields (ANSI windows)

No idea what's different between those at the moment.

EDIT: The "♀️" symbol is rendered noticeably differently between those that work and those that doesn't:

Screenshot

EDIT2: Got it, it's because of the DS_FIXEDSYS window style. EDIT3: Apparently that flag is for compatibility with Windows earlier than 3.0. 🦖

X-Raym commented 1 year ago

Maybe not useful but there was the same issue in reaper forum, thought it was for a very different reason according to justin ( https://forum.cockos.com/showpost.php?p=2638985&postcount=14 )