diff options
author | Mattias Andrée <maandree@kth.se> | 2022-07-22 19:10:24 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2022-07-22 19:10:24 +0200 |
commit | 57bb6572fb02a7a0490fba5d45fae40575dff39c (patch) | |
tree | 047aac7711e8d2d6d10f065b5f93e3aa2ca32e11 | |
parent | Add LIBFONTS_ANTIALIASING_UNSPECIFIED (diff) | |
download | libfonts-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.h | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -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 }; |