aboutsummaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2023-01-08 16:58:46 +0100
committerMattias Andrée <maandree@kth.se>2023-01-08 16:58:46 +0100
commit4d2cadb1719675dc832b9e8cfdd00a27f9189612 (patch)
tree004a4905337bc9e2bca9835e5ecb7831831c0d75 /common.h
parentAdd environment spoofing (diff)
downloadlibfonts-4d2cadb1719675dc832b9e8cfdd00a27f9189612.tar.gz
libfonts-4d2cadb1719675dc832b9e8cfdd00a27f9189612.tar.bz2
libfonts-4d2cadb1719675dc832b9e8cfdd00a27f9189612.tar.xz
Draft implementations of libfonts_get_{default,output}_rendering_settings
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'common.h')
-rw-r--r--common.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/common.h b/common.h
index 2451cb7..99298f1 100644
--- a/common.h
+++ b/common.h
@@ -13,6 +13,21 @@
#define DOUBLE_TOLERANCE 0.000001
+#define LIST_RENDERING_SETTINGS(X, _)\
+ X("dpi-x", dpi_x, 96) _\
+ X("dpi-y", dpi_y, 96) _\
+ X("ref-width", reference_width, 0) _\
+ X("ref-height", reference_height, 0) _\
+ X("subpixel-order", subpixel_order, LIBFONTS_SUBPIXEL_ORDER_UNKNOWN) _\
+ X("greyscale-min", min_dpsqi_for_greyscale, 0) _\
+ X("subpixel-min", min_dpsqi_for_subpixel, 0) _\
+ X("h-grey-text-aa", horizontal_grey_text_antialiasing, LIBFONTS_ANTIALIASING_GREYSCALE) _\
+ X("v-grey-text-aa", vertical_grey_text_antialiasing, LIBFONTS_ANTIALIASING_GREYSCALE) _\
+ X("d-grey-text-aa", diagonal_grey_text_antialiasing, LIBFONTS_ANTIALIASING_GREYSCALE) _\
+ X("h-coloured-text-aa", horizontal_colour_text_antialiasing, LIBFONTS_ANTIALIASING_GREYSCALE) _\
+ X("v-coloured-text-aa", vertical_colour_text_antialiasing, LIBFONTS_ANTIALIASING_GREYSCALE) _\
+ X("d-coloured-text-aa", diagonal_colour_text_antialiasing, LIBFONTS_ANTIALIASING_GREYSCALE)
+
static inline void
transform(double *x_out, double *y_out, double x, double y, const struct libfonts_transformation *transformation)