Skip to content

WIP: Add support for subpixel font antialiasing to ngl renderer

This pull request adds support for subpixel font antialiasing to the ngl renderer. For GLES Systems, this feature is disabled since I am unsure about hardware support for the required OpenGL extensions. Tagged as WIP due to uncertainty regarding the performance impact of using dual source blending on non GLES-Systems.

Using this patch, gtk4-demo renders as follows:

  1. With font antialiasing set to greyscale

Bildschirmfoto_von_2021-04-08_08-26-37

  1. With font antialiasing set to subpixel (rgb)

Bildschirmfoto_vom_2021-04-08_08-43-56

Direct comparison:

Bildschirmfoto_von_2021-04-08_08-26-37-extract Bildschirmfoto_von_2021-04-08_08-26-50-extract

Edited by Marcus Gursch

Merge request reports