How enable ClearType render with subpixel antialiasing on VSCode on Windows 10? - visual-studio-code

I'm working with VsCode but i noticed that ClearType was not applied on its fonts.
My windows settings has "cleartype" turned on.
Check the comparison.
How can I enable Cleartype render with subpixel antialiasing on VS Code ?

As part of November 2019 (version 1.41) Update, Visual Studio Code now has Improved font rendering (Windows, Linux) using ClearType render with subpixel antialiasing Technology.
In this release, we improved font rendering in more parts of the workbench (for Windows and Linux). The screenshots below show a before and after comparison (zoomed in to show the difference). In particular, many tree and list elements of the workbench were rendered using greyscale antialiasing and they now render with subpixel antialiasing.

Related

Visual Studio Code transparent image preview without checkerboard

In Visual Studio Code, the default image preview renders transparency with a checkerboard pattern, where the light squares match the editor's background color (see screenshots below). I would like to visualize images without the checkerboard and have the background as the editor's background color.
A user already asked the same question in the VSCode GitHub repository, but the thread is closed due to a lack of interest. I would like to see if anyone came with a solution or if other users have the same concern to re-open the discussion and propose a toggle to remove the checkerboard if needed in the user settings.

How can I make the font rendering in VSCode for MacOS looks exactly the same like VSCode for Windows?

Somewhat the opposite of this question.
I don't like how fonts are rendered in VSCode for Mac. To me, the lack of contrast gets in the way, since I don't have good vision, the letters get a little scrambled because of the lack of contrast. I can zoom, but I lose a lot of working space (MacBook Air has a small screen).
I switched to the font used in VSCode for Windows (Consolas), but it still gets blurry.
MacOS system's General > Font smoothing doesn't make any difference.
Is there any way I can make the font rendering in VSCode for Mac looks like exactly the same from VSCode for Windows?
VS Code for Windows (very good, print took from a VM connection to a Windows machine)
VS Code for Mac with font antialising ("workbench.fontAliasing": "antialiased") (less vibrant and blurry)
VS Code for Mac without font antialising ("workbench.fontAliasing": "none") (more vibrant and contrasty, but looks really bad)
If you zoom in very far you can see the difference.
Windows uses Subpixel rendering and the color management is different. The Mac uses a monochrome rendering of the font (anti aliased)
The background color of both images is #1E1E1E (Lab 11,0,0)
Sampling colors of the I in Identifier
Windows #8FD3C7 (Lab 80,-19,-1) (Green-grey color)
Mac #78A6BE (Lab 66,-10,-15) (Blue-grey color)
The human eye is better at sensing contrast for green colors.
The lightness difference on Windows is bigger (80:11) compared to Mac (66:11)
I suggest to change the colors of the Theme or use a Theme with higher contrast in the colors, making the background black gives another extra contrast enhancement.
From the Themes I have installed only Light+ uses white background and High Contrast uses black background. All other themes have a lack of contrast because of the background color
Looking at One Dark Pro it uses quite saturated colors for the syntax highlighting. Just changing the background of the editor to black helps.
"workbench.colorCustomizations": {
"[One Dark Pro]": {
"editor.background": "#000000"
}
}
There are many other background colors you can change if needed.

How to set anti-aliasing mode for specific gtk+ application

I trying to write simple gtk+ application with pygobject that using gtk.TextView. In stock demo code I see that font sets up with Pango, but I can't find corresponding method for set up antialiasing-mode. By default font looks little ugly for me.
Does anybody know how to set anti-aliasing in gtk+ app (with python or pure C, Pango or other way)?
Well, it's not easy. Many factors interact to get the final font glyphs on your screen.
Maybe one of the easiest ways to change antialiasing globally would be to reprogram fontconfig. This article describes how to disable anti-aliasing, but it indicates where the config item is located.
Then, on a per-application basis, the actual work of drawing the characters is in the hands of Pango, but Pango may be programmed to use Xft (fontconfig) or Cairo to do the actual drawing. In case of Cairo (which seems to gather popularity), the anti-aliasing is done there. There's an article on that here on stackoverflow. Basically there's a function in the Cairo library, called 'cairo_set_aliasing'
Edit: Have a look at the XFCE window manager. In ths Settings | Appearance tool, you can change the anti aliasing 'globally', from 'none', 'slight', 'more' to 'full', and select subpixel in color or gray, horizontal/vertical and details. The code is contained in the xfce4-appearance-settings module of XFCE.
The aliasing setup is in xfce4-settings-4.12.0.tar.bz2, in dialogs/appearance-settings/main.c. I'm not sure if it actually activated there. I've quite a lot of work at the moment, but, if necessary can lend you a hand later.

Subpixel antialiasing for arbitrary paths in Cairo

Does Cairo support subpixel antialiasing on arbitrary paths?
I'm interested in subpixel antialiasing on text, but the version of Cairo that I am using is compiled without support for any underlying text rendering engine (such as Freetype). Therefore, I'm left with the User Fonts backend, which seems to use Cairo's native path rendering APIs to render the glyph contours. Is it possible to achieve LCD subpixel filtering using this codepath?
Behdad Esfahbod says this is not possible. http://lists.cairographics.org/archives/cairo/2015-February/025982.html

How to develop transparent interface?

This is not completely a programming question. Today when I load LiLi USB creator software I saw the interfaces are transparent. Is that because they are Photoshopped or is transparency a technique of IDE? I'm using both NetbBeans and Eclipse. To be clear, I'm adding a photo too.
For transparency of the entire GUI, including controls (which doesn't seem to be the case in your screenshot), .NET includes the Form.Opacity property.
Additionally, it may be possible to use LayeredWindows to change only the opacity of the top-level component to produce the desired effect.
For Java specifically, there's an official Java tutorial for that, although it seems to set the opacity of the entire window, including all child components.