diff -Naur a/configure.in b/configure.in
--- a/configure.in	2012-01-15 05:44:08.000000000 +0100
+++ b/configure.in	2020-06-28 00:13:52.853395813 +0200
@@ -64,6 +64,7 @@
 	;;
 esac
 
+PKG_PROG_PKG_CONFIG
 
 dnl Check for iconv (character conversion library; see iconv.m4)
 dnl This isn't available on many systems
@@ -94,6 +95,17 @@
 dnl
 dnl Get the cflags and libraries from the freetype-config script
 dnl
+PKG_CHECK_MODULES(
+	FREETYPE2,
+	freetype2,
+	[
+		ft_found=yes
+		CFLAGS="$CFLAGS $FREETYPE2_CFLAGS"
+		LIBS="$LIBS $FREETYPE2_LIBS"
+	],
+	ft_found=no
+)
+
 AC_ARG_WITH(freetype-prefix,[  --with-freetype-prefix=PFX   Prefix where FREETYPE is 
 installed (optional)],
             freetype_prefix="$withval", freetype_prefix="")
@@ -101,6 +113,7 @@
 where FREETYPE is installed (optional)],
             freetype_exec_prefix="$withval", freetype_exec_prefix="")
 
+if test "x$ft_found" != "xyes" ; then
 if test x$freetype_exec_prefix != x ; then
      freetype_args="$freetype_args --exec-prefix=$freetype_exec_prefix"
      if test x${FREETYPE_CONFIG+set} != xset ; then
@@ -123,6 +136,7 @@
     CFLAGS="$CFLAGS `$FREETYPE_CONFIG $freetypeconf_args --cflags`"
     LIBS="$LIBS `$FREETYPE_CONFIG $freetypeconf_args --libs`"
 fi
+fi
 
 dnl Check for SDL
 SDL_VERSION=1.2.4
diff -Naur a/SDL_ttf.c b/SDL_ttf.c
--- a/SDL_ttf.c	2012-01-15 05:44:08.000000000 +0100
+++ b/SDL_ttf.c	2020-06-28 00:31:13.893409336 +0200
@@ -1747,7 +1747,7 @@
 	/* Copy the character from the pixmap */
 	src = glyph->pixmap.buffer;
 	dst = (Uint8*) textbuf->pixels;
-	for ( row = 0; row < glyph->bitmap.rows; ++row ) {
+	for ( row = 0; row < glyph->pixmap.rows; ++row ) {
 		memcpy( dst, src, glyph->pixmap.width );
 		src += glyph->pixmap.pitch;
 		dst += textbuf->pitch;
