diff options
author | Mattias Andrée <maandree@kth.se> | 2023-01-08 16:58:46 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2023-01-08 16:58:46 +0100 |
commit | 4d2cadb1719675dc832b9e8cfdd00a27f9189612 (patch) | |
tree | 004a4905337bc9e2bca9835e5ecb7831831c0d75 /common.h | |
parent | Add environment spoofing (diff) | |
download | libfonts-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.h | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -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) |