aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2022-07-22 19:00:39 +0200
committerMattias Andrée <maandree@kth.se>2022-07-22 19:00:39 +0200
commitea76b6972922d2dbac3fc7b3b7cca896577a800c (patch)
tree35521b3b8968ebce6fafd597ca9fd0d28f2494bc
parentImprove libfonts_rendering_settings (diff)
downloadlibfonts-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.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/libfonts.h b/libfonts.h
index 90fc7a4..180ee31 100644
--- a/libfonts.h
+++ b/libfonts.h
@@ -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;