Skip to content

markuskimius/SDL2_Pango

Repository files navigation

SDL2_Pango

SDL2_Pango is a library for graphically rendering internationalized and tagged text in SDL2 using TrueType fonts.

SDL2_Pango is a port of SDL_Pango to SDL2. SDL_Pango was originally written by NAKAMURA Ken'ichi. It has been ported to SDL2 by Pere Pujal i Carabantes. Additional contributions have been made by many authors (see AUTHORS).

Example

Build & Installation

Prerequisites

SDL2_Pango requires Pango, FreeType2, and SDL2.

Unix, Linux

On most Unix-based platforms including Linux, build and install using the following command:

$ ./configure && make && sudo make install

Windows

On Windows, SDL2_Pango can be built and installed in MinGW/MSYS2 as though it were a Unix platform. Visual C++ 2003 and WiX files are also provided, but they are legacy files from SDL_Pango and have not been updated for SDL2.

macOS

On macOS, SDL2_Pango can be built and installed using MacPorts as though it were a Unix platform. Be sure to install them into the same directory as the rest of MacPorts files (typically /opt/local):

$ ./configure --prefix=/opt/local && make && sudo make install

SDL2_Pango should also build fine using Homebrew and Fink but they have not been tested.

Android

On Android, build using Android.mk.

Usage

See the documentation from SDL_Pango which has the same API as SDL2_Pango.

License

Licensed under LGPL 2.1. See COPYING for more information.