aboutsummaryrefslogtreecommitdiffstats
path: root/libfonts.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-11-10 23:35:27 +0100
committerMattias Andrée <maandree@kth.se>2021-11-10 23:35:27 +0100
commitd160d20b28b396f16fe81b4cb00d5fd4d183d9fd (patch)
tree57e12518776194ad5235accab7574001f82a9de3 /libfonts.h
parentAdd function prototype: libfonts_do_font_descriptions_match (diff)
downloadlibfonts-d160d20b28b396f16fe81b4cb00d5fd4d183d9fd.tar.gz
libfonts-d160d20b28b396f16fe81b4cb00d5fd4d183d9fd.tar.bz2
libfonts-d160d20b28b396f16fe81b4cb00d5fd4d183d9fd.tar.xz
Store DPI in floating point instead of deci-integer + implement libfonts_get_output_dpi
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--libfonts.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/libfonts.h b/libfonts.h
index 7f14a48..a31a5e9 100644
--- a/libfonts.h
+++ b/libfonts.h
@@ -87,8 +87,8 @@ enum libfonts_orientation {
};
struct libfonts_rendering_settings {
- uint16_t deci_dpi_x;
- uint16_t deci_dpi_y;
+ double dpi_x; /* actually pixels rather than dots */
+ double dpi_y;
enum libfonts_antialiasing horizontal_grey_text_antialiasing;
enum libfonts_antialiasing vertical_grey_text_antialiasing;
enum libfonts_antialiasing diagonal_grey_text_antialiasing;
@@ -107,8 +107,8 @@ struct libfonts_output {
int output_screen;
enum libfonts_orientation physical_screen_orientation;
enum libfonts_subpixel_order unrotated_subpixel_order;
- uint16_t deci_dpi_x;
- uint16_t deci_dpi_y;
+ double dpi_x;
+ double dpi_y;
struct libfonts_rendering_settings *rendering_settings;
};