From 1dcdf9534bc8161f6529b3f0a780d1b9723f1640 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 4 Nov 2017 12:43:15 +0530 Subject: [PATCH] ... --- README.asciidoc | 2 +- kitty/fonts.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.asciidoc b/README.asciidoc index b6d7d54b2..8ea66f358 100644 --- a/README.asciidoc +++ b/README.asciidoc @@ -86,7 +86,7 @@ the following dependencies are installed first. * zlib * libpng * fontconfig (not needed on macOS) -* harfbuzz >= 1.0.5 +* harfbuzz >= 1.5.0 * xsel (only on X11 systems with glfw < 3.3) * ImageMagick (optional, needed to use the `kitty icat` tool to display images in the terminal) * gcc or clang (required only for building) diff --git a/kitty/fonts.c b/kitty/fonts.c index 21e029d02..934f7e5d6 100644 --- a/kitty/fonts.c +++ b/kitty/fonts.c @@ -11,6 +11,9 @@ #if HB_VERSION_MAJOR > 0 || (HB_VERSION_MAJOR == 0 && (HB_VERSION_MINOR > 9 || (HB_VERSION_MINOR == 9 && HB_VERSION_MICRO >= 42))) #define HARBUZZ_HAS_SET_CLUSTER_LEVEL #endif +#if HB_VERSION_MAJOR < 1 || (HB_VERSION_MAJOR == 1 && (HB_VERSION_MINOR < 5)) +#define HB_GLYPH_FLAG_UNSAFE_TO_BREAK 1 +#endif #define MISSING_GLYPH 4