Cleartype font / text rendering in Firemonkey

2019-02-17 10:38发布

问题:

Here is a sample VCL application containing just a TEdit control.

If you compile a similar Firemonkey (FMX) application you will notice this:

(The small L letter is jumping around like crazy)

On my research i found this G+ post which results in:

As you can see the result is better.

The jumping is gone. However the TCircle isn't rendered very nicely.

After some more research i found out that using initialization GlobalUseDX := False; has a better output:

Occasionally there is still some "letter hopping" going on but it's a better result. However it seems there is some background color behind the small L's (yellowish).

Does anyone know a better way to achieve ClearType-like font rendering using the latest Firemonkey?