From 099c377b4ca3dacfd15ef3632108378a9d9081c6 Mon Sep 17 00:00:00 2001 From: Mattias Andrée <maandree@kth.se> Date: Sun, 26 Apr 2020 16:46:56 +0200 Subject: Add grid_fineness option MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée <maandree@kth.se> --- libskrift.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libskrift.h') diff --git a/libskrift.h b/libskrift.h index 5c2e937..bc09255 100644 --- a/libskrift.h +++ b/libskrift.h @@ -55,7 +55,8 @@ enum libskrift_rendering_flags { LIBSKRIFT_NO_LIGATURES = 0x0100, LIBSKRIFT_ADVANCE_TO_GRID = 0x0200, LIBSKRIFT_REGRESS_TO_GRID = 0x0400, /* Combine with LIBSKRIFT_ADVANCE_TO_GRID for closest alternative */ - LIBSKRIFT_USE_SUBPIXEL_GRID = 0x0800 + LIBSKRIFT_USE_SUBPIXEL_GRID = 0x0800, + LIBSKRIFT_VERTICAL_TEXT = 0x1000 }; struct libskrift_rendering { @@ -64,6 +65,7 @@ struct libskrift_rendering { enum libskrift_smoothing smoothing; enum libskrift_hinting hinting; enum libskrift_rendering_flags flags; + int grid_fineness; double horizontal_dpi; double vertical_dpi; double kerning; @@ -100,6 +102,7 @@ struct libskrift_saved_grapheme { .smoothing = LIBSKRIFT_GREYSCALE,\ .hinting = LIBSKRIFT_FULL,\ .flags = 0,\ + .grid_fineness = 1,\ .horizontal_dpi = (double)1920 * 254 / 5180,\ .vertical_dpi = (double)1200 * 254 / 3240,\ .kerning = 1,\ -- cgit v1.2.3-70-g09d2