From 8eed258386c57236756211eda7377984db88b9ee Mon Sep 17 00:00:00 2001
From: Sylvain <[EMAIL REDACTED]>
Date: Fri, 4 Jun 2021 10:29:58 +0200
Subject: [PATCH] Add comment for freetype compilation Rendering with color:
Freetype may need to be compiled with FT_CONFIG_OPTION_USE_PNG Using HarfBuzz
for Complex text rendering: Freetype may need to be compiled with
FT_CONFIG_OPTION_USE_HARFBUZZ
---
SDL_ttf.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/SDL_ttf.c b/SDL_ttf.c
index a15a03a..f746fd9 100644
--- a/SDL_ttf.c
+++ b/SDL_ttf.c
@@ -33,7 +33,8 @@
#include FT_TRUETYPE_IDS_H
#include FT_IMAGE_H
-/* Enable rendering with color */
+/* Enable rendering with color
+ * Freetype may need to be compiled with FT_CONFIG_OPTION_USE_PNG */
#if defined(FT_HAS_COLOR)
# define TTF_USE_COLOR 1
#else
@@ -51,7 +52,8 @@
#include FT_MODULE_H
#endif
-/* Enable HarfBuzz for Complex text rendering */
+/* Enable HarfBuzz for Complex text rendering
+ * Freetype may need to be compiled with FT_CONFIG_OPTION_USE_HARFBUZZ */
#ifndef TTF_USE_HARFBUZZ
# define TTF_USE_HARFBUZZ 0
#endif