Cleartype font / text rendering in Firemonkey

Here is an example VCL application that contains only a TEdit control.

Vcl

If you compile a similar Firemonkey (FMX) application, you will notice the following:

Fmx

(The small letter L jumps around like crazy)

In my research, I found this G + post, the result of which:

enter image description here

As you can see, the result is better.

Jumping is gone. However, TCircle does not display very well.

After several studies, I found out that using initialization GlobalUseDX := False; has a better result:

enter image description here

Sometimes "retelling of letters" still occurs, but this is the best result. However, it seems that behind a small L (yellowish) there is some background color.

Does anyone know a better way to achieve rendering of ClearType fonts using the latest version of Firemonkey?

+6
source share

Source: https://habr.com/ru/post/988331/


All Articles