Skip to content

Commit 215340b

Browse files
Update SDL2_ttf port to 2.20.2 (#18804)
Fixes #18639.
1 parent 7916d60 commit 215340b

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ See docs/process.md for more on how version tagging works.
2020

2121
3.1.33 (in development)
2222
-----------------------
23+
- Update SDL2_ttf port to 2.20.2 (#18804)
2324

2425
3.1.32 - 02/17/23
2526
-----------------

test/browser/test_sdl2_ttf_rtl.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
#include <stdio.h>
99
#include <SDL.h>
1010
#include <SDL_ttf.h>
11-
#include <hb.h>
1211

1312
SDL_Window *window;
1413
SDL_Renderer *renderer;
@@ -21,8 +20,8 @@ void render()
2120
static SDL_Rect upperRect = {0, 0, 640, 240};
2221
static SDL_Rect lowerRect = {0, 240, 640, 240};
2322

24-
TTF_SetDirection(HB_DIRECTION_RTL);
25-
TTF_SetScript(HB_SCRIPT_ARABIC);
23+
TTF_SetFontDirection(font, TTF_DIRECTION_RTL);
24+
TTF_SetFontScriptName(font, "Arab");
2625

2726
SDL_Surface *helloSurface = TTF_RenderUTF8_Shaded(font, "سلام", colorA, colorB);
2827
SDL_Surface *worldSurface = TTF_RenderUTF8_Shaded(font, "جهان", colorB, colorA);

tools/ports/sdl2_ttf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
import os
77

8-
TAG = '38fcb695276ed794f879d5d9c5ef4e5286a5200d' # Latest as of 24 November 2020
9-
HASH = '4c1ac5d27439d28c6d84593dd15dd80c825d68c6bf1020ab4317f2bce1efe16401b5b3280a181047c8317c38a19bbeeae8d52862e6b2c9776d5809758ee7aaa6'
8+
TAG = 'release-2.20.2' # Latest as of 21 February 2023
9+
HASH = '8a625d29bef2ab7cbfe2143136a303c0fdb066ecd802d6c725de1b73ad8b056908cb524fe58f38eaee9f105471d2af50bbcb17911d46506dbcf573db218b3685'
1010

1111
deps = ['freetype', 'sdl2', 'harfbuzz']
1212

0 commit comments

Comments
 (0)