-
-
Notifications
You must be signed in to change notification settings - Fork 342
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Font rendering issue with version 3.17.1124.693 #191
Comments
Well this is indeed a problem, hence I have it disabled for now. There is actually another issue: Please notice how the characters '外置'(external) are rendered differently. Those in the first screenshot, illustrating the default behavior, with Reference: https://en.wikipedia.org/wiki/Xin_Zixing |
From Scintilla's documentation: |
No you need not revert this setting, as ASCII characters will look fuzzy in small font sizes. The screenshots above were made using a font size of 24 - you do not set it to such a huge number for daily use, do you? 😂 Other than that, I agree with you about that this is a minor bug in Scintilla and should be reported. |
@RaiKoHoff I tried different settings, as per your quoting from Scintilla's Doc., but only (0) disables the color fringe. To mention that color fringe is more visible as fonts are smaller. |
I did some tests with different settings (technology, Win's clear-type adjustments, fonts, etc.) and i got the impression, that the old (default) technology produces a clearer reading "feeling" on most circumstances. Even, if I keep in mind, that the "DirectWrite" technology should produce " |
@dereius : Notepad2-mod still relies on Scintilla's old (default) technology and has no option to switch it. |
I have no opinion on it, basically. |
From a developer's point of view, the quality of the font does not matter as long as it reads "correctly". However, having the latest technology and not being able to utilize it gives me an uneasy feeling. Maybe it should be disabled by default and we need to report the bug and enable it again by default when it gets resolved. But as @RaiKoHoff said. It is in the hands of the community. |
Switching to Direct Write technology maybe a nice switch to be displayed for "Update and Administration Tool" ;-) |
@RaiKoHoff I will have the Administration tool ready within about 2 weeks. I'm also planning (busy creating) a documentation section on Rizonesoft.com to start documenting Notepad3. I wanted to ad a help file, but want to keep Notepad3 as small as possible. |
@rizonesoft a web documentation I believe would be enough then. Many apps have it like this. |
Thanks @dereius I will let you guys know when I'm finished. |
Please test the new release and let us know if this issue can be closed. |
I installed the last version (Notepad3 3.17.1202.715) and cleared the settings in the ini file
Still, the font rendering had color fringe, so I had to set it back as @RaiKoHoff suggested:
This way, the font rendering is okay. Less antialiased, but clean. I know it can be a bit frustrating to not be able to use a newer feature, but I consider there are other aspects that would benefit more to focus on, if this cannot have a permanent fix until Scintilla gets patched properly. |
@dereius : I cannot reproduce Your finding with (Notepad3 3.17.1202.715). |
@dereius Please confirm fixed and close this issue. New release available on the Notepad3 download page. 😸 Find the change log on the Notepad3 update page. 😺 Thanks for testing! |
Before installation of the last version (3.17.1223.778) I deleted all content of the .ini file, then I closed Notepad3 (just to make sure it won't keep any custom settings). I installed choosing to reset Notepad3 settings (again, another precaution). What I could NOT find in the new ini file were the style schemes. I backed up the original ini file, before clearing its contents, to have a comparison. And now I can say there is nothing in the new file after [Window] label. Are the missing parameters now stored in a different location? The font rendering issue can be considered closed, I guess. |
@dereius : please close if satisfied |
@RaiKoHoff I'd be happy to do so, if I knew how. I see no option on this page to close the issue. |
@RaiKoHoff I apologize for the confusion. Indeed derei and dereius both belong to me, but dereius is obsolete and eventually will be parked/deleted. I will no use it anymore. |
A ticket is created at https://sourceforge.net/p/scintilla/bugs/2027/ |
Add a menu item like Menu -> Settings ->Rendering Technology in zufuliu/notepad4@b7ad639 would make switch between GDI and Direct2D more easy. |
Suggestion implemented by development beta _X_MUI_4.18.808.1047. |
@RaiKoHoff A new bug could be introduced, if support switching rendering technology on the fly: You previous implementation (edit ini file, restart) should not has this bug. |
@zufuliu : Thank you for the hint. Indeed, my implementation disables the Bidirectional support before switching back to Default GDI Rendering Tech. - so probably never encountered this bug. Do you have some experiences setting double buffering (SCI_SETBUFFEREDDRAW) to false while switching to new Rendering Tech. as mentioned in Scintilla Doc ? |
@RaiKoHoff the above bug is fixed by zufuliu/notepad4@9c475c7, through it's maybe not the final fix in Scintilla. I have never touch |
Cite from Scintillas Doc: "Since Direct2D buffers drawing, Scintilla's buffering can be turned off". |
I think, at least it can not happened on Notepad3, sine Notepad3 requires Win7. |
Another document from the doc: Current platforms perform window buffering so it is almost always better for this option to be turned off. For Win32 and GTK+, client code should turn off buffering at initialisation. There are some older platforms and unusual modes where buffering may still be useful. So it is almost always better for this option to be turned off? I will try it. |
I have seen some "flickering" for good old |
I added a "Buffered Draw" option and menu, don't known who need to turn it off, though the default in SciTE is off. By the way, when changing to GDI, set bidirectional to 0 is no longer required, above bug was fixed. This can avoid draw the window twice. Just a suggestion, I suggest replace |
@zufuliu : Yes, the clamp() refactoring I committed yesterday. Making "Buffered Draw" switchable is a good idea. From Scintilla documentation, on Windows platforms |
@RaiKoHoff thank you for the suggestion about Bidirectional.
"Buffered Draw" only applied to GDI, zufuliu/notepad4@8a11415. |
The bug @lhmouse found has a temporary fix at https://sourceforge.net/p/scintilla/bugs/2027/. |
Please check the following image to see in detail what happens:

also stored here: https://imgur.com/a/ulYZb
Problem can be fixed for now by setting
SciDirectWriteTech=0
in Settings File.The text was updated successfully, but these errors were encountered: