https://bugs.winehq.org/show_bug.cgi?id=47690
Bug ID: 47690 Summary: When DirectWrite rendering is enabled in Notepad++ there are still no ligatures. Product: Wine Version: unspecified Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: kolan_n@mail.ru Distribution: ---
[Notepad++](https://github.com/notepad-plus-plus/notepad-plus-plus) is an application based on Scintilla. Scintilla is a library for creating textareas.
[DirectWrite](https://docs.microsoft.com/en-us/windows/win32/directwrite/direct-write-port...) is an API for text rendering with subpixel antialiasing which can be hardware-accelerated using Direct2D.
[SCI_SETTECHNOLOGY](https://www.scintilla.org/ScintillaDox.html#SCI_SETTECHNOLOGY) is a enum value identifying a call to Scintilla (in fact it is done using Windows messages). When it is set to values > 0 (SC_TECHNOLOGY_DIRECTWRITE, SC_TECHNOLOGY_DIRECTWRITERETAIN, or SC_TECHNOLOGY_DIRECTWRITEDC), Scintilla uses DirectDraw accelerated via Direct2D for rendering instead of an own surrogate.
A byproduct of enebling DirectWrite rendering is ligatures support on fonts having them, like Fira Code. In fact it is the main reason to enable DirectWrite in NPP.
In Windows >7 everything works fine.
In Wine there are no ligatures (and some other issues).
https://bugs.winehq.org/show_bug.cgi?id=47690
--- Comment #1 from Nikolay Sivov bunglehead@gmail.com --- It's been reported already, see bug 44826. It's not limited to ligatures.
https://bugs.winehq.org/show_bug.cgi?id=47690
KOLANICH kolan_n@mail.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |dwrite
https://bugs.winehq.org/show_bug.cgi?id=47690
--- Comment #2 from KOLANICH kolan_n@mail.ru --- Thank you for the info.
https://bugs.winehq.org/show_bug.cgi?id=47690
--- Comment #3 from Ken Sharp imwellcushtymelike@gmail.com --- (In reply to Nikolay Sivov from comment #1)
It's been reported already, see bug 44826. It's not limited to ligatures.
Dupe then?
https://bugs.winehq.org/show_bug.cgi?id=47690
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever confirmed|0 |1
--- Comment #4 from Nikolay Sivov bunglehead@gmail.com --- Maybe, still let's keep this one open as it has small and free application + font to reproduce the issue.
https://bugs.winehq.org/show_bug.cgi?id=47690
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|When DirectWrite rendering |Notepad++ shows no |is enabled in Notepad++ |ligatures for Fira Code |there are still no |font, when used with |ligatures. |DirectWrite backend
https://bugs.winehq.org/show_bug.cgi?id=47690
--- Comment #5 from Nikolay Sivov bunglehead@gmail.com --- Exact startup script I used for this, goes to Plugins -> LuaScript -> Edit Startup Script:
--- editor1.Technology = SC_TECHNOLOGY_DIRECTWRITERETAIN editor2.Technology = SC_TECHNOLOGY_DIRECTWRITERETAIN ---
Font is set with Settings -> Style Configurator (Global Styles/Global override -> Font Name).
https://bugs.winehq.org/show_bug.cgi?id=47690
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |075f5b73feb8609957dd6d00adc | |083825c1a5cd0 Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #6 from Nikolay Sivov bunglehead@gmail.com --- Mentioned test case of NPP + Fira Code seems to work fine for me now, commits:
b8f1aed6d91d174d29094a7e184d57e713041982 7208bc40dcbea8638c4679b451f88ce06f8ab981 bd6a500ab095944a234cc93398d005569c5035a3 5eb742687defb83d7a792f1e5088c4a0e91f3ab4 a6be9579196f8c625017a73c536e73f426b0f93b 075f5b73feb8609957dd6d00adc083825c1a5cd0
Please open another report if some ligatures don't work, or if you have troubles with some fonts. Note that language specific processing is not implemented.
https://bugs.winehq.org/show_bug.cgi?id=47690
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|unspecified |5.7
https://bugs.winehq.org/show_bug.cgi?id=47690
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #7 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 5.8.