If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
How can I make fonts in wxStyledTextCtrl as smooth as other editors (Like Sublime Text or VSCode)? Here are the two screenshots one of my app and another for VSCode. Obviously mine isn't as smooth as VSCode (both opening same file, font size being 14). Checking wxFontInfo I see:
doublemax wrote:The font weight of the VS version just looks a tiny bit higher
I saw that and though may be its bold. But then I found in settings its regular.
doublemax wrote:But VS is Chrome based, maybe Chrome has its own font rendering engine.
It might be. but even sublime text looks the same (see the screenshot).
So I believe somemthing is missing in wxWidgets. The problem is I don't know what it is
Chief Justice: We have trouble dear citizens! Citizens: What it is his honor? Chief Justice:Our president is an atheist, who will he swear to?
I think it is wxWidgets limitations. I will apply your suggestions on Windows and see what I get.
Meanwhile if anyone knows anything helpful for Mac/Gtk, I would appreciate that!
Chief Justice: We have trouble dear citizens! Citizens: What it is his honor? Chief Justice:Our president is an atheist, who will he swear to?
evstevemd wrote:but even sublime text looks the same (see the screenshot).
So I believe somemthing is missing in wxWidgets.
Is sublimetext using Scintilla? I think one would need to compare scintilla-based editors to make sure the issue is with wxWidgets (Scintilla wrapper)...
evstevemd wrote:Here is a screenshot of the same font and size in CodeLite (One of the best Scintilla based app)
So CodeLite looks OK?
CodeLite uses wxWidgets for its UI and I believe it also uses its wxSTC as I remember eranif commenting on its issues including the one resulting in the commit referenced in my first post in this thread...