From ea76b6972922d2dbac3fc7b3b7cca896577a800c Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 22 Jul 2022 19:00:39 +0200 Subject: Add min_dpsqi_for_greyscale and min_dpsqi_for_subpixel MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libfonts.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/libfonts.h b/libfonts.h index 90fc7a4..180ee31 100644 --- a/libfonts.h +++ b/libfonts.h @@ -144,6 +144,25 @@ struct libfonts_rendering_settings { */ enum libfonts_subpixel_order subpixel_order; + /** + * If the product of the applicable pixel densities + * (horizontal and vertical) is less than this + * value, the antialiasing mode shall downgrade + * to `LIBFONTS_ANTIALIASING_NONE` if it is + * `LIBFONTS_ANTIALIASING_GREYSCALE` or + * `LIBFONTS_ANTIALIASING_SUBPIXEL` + */ + double min_dpsqi_for_greyscale; + + /** + * If the product of the applicable pixel densities + * (horizontal and vertical) is less than this + * value, the antialiasing mode shall downgrade + * to `LIBFONTS_ANTIALIASING_GREYSCALE` if it is + * `LIBFONTS_ANTIALIASING_SUBPIXEL` + */ + double min_dpsqi_for_subpixel; + /** * Antialiasing mode for horizontal (on unrotated output), grey text */ -- cgit v1.2.3-70-g09d2