aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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
};