Slate UI - How can I disable anti-aliasing on fonts?
Myself and a small handfull of people find anti-aliased font to look blury, strain our eyes and are hard to read for long periods of time. It is very frustrating.
The unreal editor (Slate UI) renders fonts anti-aliased and i have found no option to disable it.
I have spent several days playing with the source code but im a java programmer and there are a lot of classes here. Im really tired of it now. It could be something to do with slate font atlas generation. If anyone has a c++ fix or knows the exact class I need to look at, please let me know.
asked Feb 28 '15 at 05:03 PM in C++ Programming
Our font glyphs are generated by FreeType in the
You can disable the anti-aliasing that FreeType applies by forcing a monochrome output when calling
Please note that this will also affect games shipped with this source code, so you may want to limit the change to editor builds:
Here is one solution, its not perfect but at least its not blurry anymore, and hey if your desperate its better than nothing.
In the file Engine\Shaders\SlateElementPixelShader.usf there is a method:
Insert an if statement so that it looks like:
Now run the editor and the relevant shaders will be rebuilt and cached.
Here is the result (see the attached file, the web page is scaleing the image down):
You can tweak the float constant to your preference, for now im going with this value.
Hopefully someone has a better solution that prevents the anti-aliasing in the first place instead of trying to fix it after the fact like this one. Please let me know if you find this usefull.
Follow this question
Once you sign in you will be able to subscribe for any updates here