diff options
author | Mattias Andrée <maandree@kth.se> | 2022-07-22 19:00:39 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2022-07-22 19:00:39 +0200 |
commit | ea76b6972922d2dbac3fc7b3b7cca896577a800c (patch) | |
tree | 35521b3b8968ebce6fafd597ca9fd0d28f2494bc | |
parent | Improve libfonts_rendering_settings (diff) | |
download | libfonts-ea76b6972922d2dbac3fc7b3b7cca896577a800c.tar.gz libfonts-ea76b6972922d2dbac3fc7b3b7cca896577a800c.tar.bz2 libfonts-ea76b6972922d2dbac3fc7b3b7cca896577a800c.tar.xz |
Add min_dpsqi_for_greyscale and min_dpsqi_for_subpixel
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r-- | libfonts.h | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -145,6 +145,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 */ enum libfonts_antialiasing horizontal_grey_text_antialiasing; |