diff options
author | Mattias Andrée <maandree@kth.se> | 2021-11-10 23:35:27 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-11-10 23:35:27 +0100 |
commit | d160d20b28b396f16fe81b4cb00d5fd4d183d9fd (patch) | |
tree | 57e12518776194ad5235accab7574001f82a9de3 /libfonts.h | |
parent | Add function prototype: libfonts_do_font_descriptions_match (diff) | |
download | libfonts-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.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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; }; |