User forums > Help

Font is thin and blurry

<< < (3/4) > >>

BlueHazzard:
i investigated future..
To enable ligatures on windows the renderer has to be set to SC_TECHNOLOGY_DIRECTWRITE [1][2]. This is done via the SCI_SETTECHNOLOGY message, but wxScintilla does not implement this functionality [3]. I don't know how the whole system works with the implementation of wxSintilla so i can not give any answer if it is possible to implement this with codeblocks. Probably obfuscated can give more information on this...


[1] http://www.scintilla.org/ScintillaDoc.html#SCI_SETTECHNOLOGY
[2] https://github.com/notepad-plus-plus/notepad-plus-plus/issues/2287
[3] http://trac.wxwidgets.org/ticket/17804

SomeGuy:

--- Quote from: BlueHazzard on August 26, 2017, 03:11:59 pm ---Codeblocks compiled fine after building wxWidgets.

I googled a bit and found out, that this seems to be some mingw bug, so where do you get your compiler from?

--- End quote ---

From the original project site http://www.mingw.org/ and Hooray! I finally managed to compile it and it works properly.  There should be a note in wiki saying what compilers are supported to avoid this kind of situation again. Sadly just like for you, nothing changed and font ligatures still don't work. Weird since from what I gathered a newer scintilla version should support them. Maybe it's not recent enough?


--- Quote from: BlueHazzard on August 26, 2017, 03:11:59 pm ---Anyway: i tried the font, and it is "light" as in your image. You may have to select the same font as in Notepad++. If i select Haskling-Black codeblocks looks like notepad++
For the Ligatures (<- -> => >> <<): They don't work (if i understand it correctly they should get replaced with one single glyph? )

--- End quote ---

You're right, that's the basic idea. It's to make code to look nicer and easier to read. I've also tried selecting other Haskling variants, but even with the n++ modification only original font works.


--- Quote from: BlueHazzard on August 26, 2017, 03:25:39 pm ---i investigated future..
To enable ligatures on windows the renderer has to be set to SC_TECHNOLOGY_DIRECTWRITE [1][2]. This is done via the SCI_SETTECHNOLOGY message, but wxScintilla does not implement this functionality [3]. I don't know how the whole system works with the implementation of wxSintilla so i can not give any answer if it is possible to implement this with codeblocks. Probably obfuscated can give more information on this...


[1] http://www.scintilla.org/ScintillaDoc.html#SCI_SETTECHNOLOGY
[2] https://github.com/notepad-plus-plus/notepad-plus-plus/issues/2287
[3] http://trac.wxwidgets.org/ticket/17804


--- End quote ---

That's a shame. Thanks for your research though. I figured that setting SCI_SETTECHNOLOGY 1/2 would be the ultimate solution but since the functionality doesn't exist in codeblocks I am stumped. Also obfuscated hasn't been online in a while but I'll try to submit this as bug in SF, maybe someone will find another solution or a way to implement directwrite.

BlueHazzard:

--- Quote ---I've also tried selecting other Haskling variants, but even with the n++ modification only original font works.
--- End quote ---
here is a screenshot of my config. This does not seem to be to light, blur

SomeGuy:
Ahh, I meant ligatures don't work. You can get it to look clear enough but it's not very pleasing to the eye. I'd rather just use it on arch where it works properly.

ollydbg:
I have to manually edit the embed manifest file inside the codeblocks.exe to make it not blur. You may try it yourself.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version