Skip to content

Commit

Permalink
Fixed build when harfbuzz is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Oct 3, 2024
1 parent 426cd5e commit 498247c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/SDL_ttf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 498247c

Please sign in to comment.