From 57bb6572fb02a7a0490fba5d45fae40575dff39c Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 22 Jul 2022 19:10:24 +0200 Subject: Doc libfonts_antialiasing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libfonts.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/libfonts.h b/libfonts.h index e7e7c79..741c4f5 100644 --- a/libfonts.h +++ b/libfonts.h @@ -5,11 +5,35 @@ #include +/** + * 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 }; -- cgit v1.2.3-70-g09d2