From e8266b579fa29a4ca0e378a394360de609848e2b Mon Sep 17 00:00:00 2001 From: brainstream Date: Fri, 4 Oct 2024 00:07:53 +0400 Subject: [PATCH] Compilation without HarfBuzz fixed --- src/SDL_ttf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/SDL_ttf.c b/src/SDL_ttf.c index 99ffe11d..12ff7d6e 100644 --- a/src/SDL_ttf.c +++ b/src/SDL_ttf.c @@ -1919,8 +1919,10 @@ TTF_Font *TTF_OpenFontWithProperties(SDL_PropertiesID props) font->generation = 1; font->hdpi = TTF_DEFAULT_DPI; font->vdpi = TTF_DEFAULT_DPI; +#if TTF_USE_HARFBUZZ font->hb_direction = HB_DIRECTION_LTR; font->hb_script = HB_SCRIPT_UNKNOWN; +#endif font->text = SDL_CreateHashTable(NULL, 16, SDL_HashPointer, SDL_KeyMatchPointer, NULL, false); if (!font->text) {