aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2022-07-22 19:10:24 +0200
committerMattias Andrée <maandree@kth.se>2022-07-22 19:10:24 +0200
commit57bb6572fb02a7a0490fba5d45fae40575dff39c (patch)
tree047aac7711e8d2d6d10f065b5f93e3aa2ca32e11
parentAdd LIBFONTS_ANTIALIASING_UNSPECIFIED (diff)
downloadlibfonts-57bb6572fb02a7a0490fba5d45fae40575dff39c.tar.gz
libfonts-57bb6572fb02a7a0490fba5d45fae40575dff39c.tar.bz2
libfonts-57bb6572fb02a7a0490fba5d45fae40575dff39c.tar.xz
Doc libfonts_antialiasing
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r--libfonts.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/libfonts.h b/libfonts.h
index e7e7c79..741c4f5 100644
--- a/libfonts.h
+++ b/libfonts.h
@@ -5,11 +5,35 @@
#include <stdint.h>
+/**
+ * Antialiasing algorithm
+ */
enum libfonts_antialiasing {
+ /**
+ * No antialiasing rule specified, use default or if default
+ * is also unspecified: `LIBFONTS_ANTIALIASING_GREYSCALE`
+ */
LIBFONTS_ANTIALIASING_UNSPECIFIED,
+
+ /**
+ * Do not antialias
+ */
LIBFONTS_ANTIALIASING_NONE,
+
+ /**
+ * Use greyscale-antialiasing
+ */
LIBFONTS_ANTIALIASING_GREYSCALE,
+
+ /**
+ * Use subpixel rendering
+ */
LIBFONTS_ANTIALIASING_SUBPIXEL,
+
+ /**
+ * Use subpixel rendering regardless of
+ * other settings
+ */
LIBFONTS_ANTIALIASING_SUBPIXEL_FORCED
};