Skip to content

Commit

Permalink
Compilation without HarfBuzz fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
brainstream authored and slouken committed Oct 3, 2024
1 parent 1830807 commit e8266b5
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 e8266b5

Please sign in to comment.