debian/0000755000000000000000000000000012204002374007160 5ustar debian/libsdl-sge-dev.docs0000644000000000000000000000002511753572034012645 0ustar README Todo WhatsNew debian/source/0000755000000000000000000000000011753572034010475 5ustar debian/source/format0000644000000000000000000000001411753572034011703 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000001632412204002374011040 0ustar libsdl-sge (030809dfsg-4) unstable; urgency=low * debian/rules: - Override dh_compress to not compress files under examples/ (they are tiny and cause issues with Multi-arch) (Closes: #720028) - Enable more parts of build hardening by passing default LDFLAGS as well as CFLAGS (the basic build system did not account for this). Also had to modify patch 001_makefile_fixes.diff in the process. * debian/control: - Bump Policy Standars-Version to 3.9.4 (no changes needed) - Change maintainer address to @debian.org - Remove obsolete "DM-Upload-Allowed: yes" - Remove now unneeded Build-Depends on "dpkg-dev (>= 1.16.1~)" -- Manuel A. Fernandez Montecelo Sat, 17 Aug 2013 23:43:32 +0100 libsdl-sge (030809dfsg-3) unstable; urgency=low * Complete overhaul of the package: - debian/source/format to '3.0 (quilt)' - Extensive modifications for debhelper compat v9, including Multi-Arch, build-hardening and all goodies - Bump Policy Standars-Version to 3.9.3 - debian/copyright rewritten with appropriate standard format - Revisit all patches - Remove all previous maintainers, inactive/unresponsive for years - Add lintian override for SONAME/package name mismatch - watch: updated to take dfsg suffix into account -- Manuel A. Fernandez Montecelo Sun, 13 May 2012 14:34:48 +0200 libsdl-sge (030809dfsg-2) unstable; urgency=low * debian/patches/100_font.diff: + use ttf-dejavu-core instead of ttf-bitstream-vera. * debian/control: + Suggest ttf-dejavu-core instead of ttf-bitstream-vera (Closes: #461268). + bumped Standards-Version to 3.7.3 (no changes). * debian/copyright: + Recode into UTF-8. * debian/rules: + don't ignore make clean error. -- Aurelien Jarno Thu, 24 Jan 2008 00:15:46 +0100 libsdl-sge (030809dfsg-1) unstable; urgency=high * Remove non-free font from the original tarball (Closes: #393747). * debian/control: + Suggest ttf-bitstream-vera as a replacement for the font. * debian/patches/100_font.diff: + New patch to use ttf-bitstream-vera instead of the old non-free font. -- Sam Hocevar (Debian packages) Mon, 23 Oct 2006 16:33:23 +0200 libsdl-sge (030809-3) unstable; urgency=low * 006_freetype2_fixes.diff: + Fix from freetype2 upstream that removes usage of internal structures (Closes: #370685). -- Sam Hocevar (Debian packages) Tue, 13 Jun 2006 22:51:55 +0200 libsdl-sge (030809-2) unstable; urgency=low [ Aurelien Jarno ] * debian/patches/015_overflow.diff: fix and overflow in sge_collision.cpp. * debian/control: bumped Standards-Version to 3.7.2 (no changes). -- Aurelien Jarno Sat, 13 May 2006 23:01:51 +0200 libsdl-sge (030809-1) unstable; urgency=low [ Sam Hocevar ] * Included changes from an NMU prepared by Nathanael Nerode. Thanks. * Moved development to the pkg-sdl Alioth project. * debian/rules: + Use quilt for patch management. + This version adds new symbols to the lib. Use dh_makeshlibs -V '...'. + Do not compress examples. * debian/control: + Build-depend on quilt. + Set the SDL team as the maintainer and added its members to the uploaders field. + Build-depend on debhelper (>= 4.0). * debian/compat: + Set compatibility level to 4. * debian/copyright: + Updated the FSF address. * debian/patches/001_makefile_fixes.diff: * debian/patches/005_freetype_support.diff: + Moved old diff to the quilt patch system. * debian/patches/004_legacy_functions.diff: + Added empty legacy functions to maintain backwards binary compatibility with C programs. These functions were not supposed to be used. * debian/patches/010_examples.diff: + Fixed the examples makefile so that they can also be compiled outside the SGE build tree (Closes: #318973). [ Nathanael Nerode ] * New upstream release (Closes: #336497). The new upstream doesn't change very much, but it does integrate a lot of the Debian diffs, and it is over two years old already. * We export the C++ interface for the first time, since it is no longer incompatible with exporting the C interface. Because we *previously* exported only the C interface, we don't need to change library names etc. * Rebuild with new toolchain (Closes: #332833) * Added watch file. * Standards-Version 3.6.2.0 (no changes necessary). -- Sam Hocevar (Debian packages) Fri, 3 Mar 2006 17:41:16 +0100 libsdl-sge (020904-5) unstable; urgency=low * Makefile: + #define _SGE_C in sge_config.h if C_ONLY is defined (Closes: #230954). * debian/control: + libsdl-sge-dev now only depends on libsdl-sge (>= 020904-4). + Set the source section to "devel". -- Sam Hocevar (Debian packages) Mon, 16 Feb 2004 10:33:16 +0100 libsdl-sge (020904-4) unstable; urgency=low * sge_tt_text.cpp: + Use freetype macros to include freetype headers (Closes: #230591). * debian/control: + Set libfreetype6-dev build dependency to (>= 2.0.1.20010317-1). -- Sam Hocevar (Debian packages) Sun, 1 Feb 2004 15:13:37 +0100 libsdl-sge (020904-3) unstable; urgency=low * New maintainer (Closes: #215097). * debian/rules: + Use debian/compat instead of DH_COMPAT. + Install examples and documentation with the -dev package. + Don't build the static library with -fPIC. + Fixed DEB_BUILD_OPTIONS handling. * debian/control: + Enhanced long descriptions. -- Sam Hocevar (Debian packages) Sun, 1 Jun 2003 13:46:28 +0200 libsdl-sge (020904-2) unstable; urgency=low * Acknowledging NMU, thanks to Sam. This closes #190293, #190294, #190290 * Set policy to 3.6.1.0 -- Julien Danjou Wed, 20 Aug 2003 13:15:36 +0200 libsdl-sge (020904-1.1) unstable; urgency=low * NMU. * Set the library's soname to libSGE.so.0 (Closes: #190293). Upstream agreed to do a release with this soname. * Rebuilt with gcc-3.x (Closes: #190290). * Moved the .so symlink to the -dev package (Closes: #190294). * Various minor packaging changes: + Set policy to 3.5.10. + Replaced "Author(s):" with "Author:" in the copyright file. + Set the -dev package's section to libdevel. + Made /usr/share/doc/libsdl-sge-dev a symlink to libsdl-sge. + Updated the package descriptions. * Added libsdl1.2-dev, libsdl-image1.2-dev, libfreetype6-dev to the -dev package's dependencies. -- Sam Hocevar (Debian packages) Sun, 1 Jun 2003 13:46:28 +0200 libsdl-sge (020904-1) unstable; urgency=low * New upstream version (Closes: #162805) -- Julien Danjou Sat, 19 Oct 2002 17:43:59 +0200 libsdl-sge (020104-3) unstable; urgency=low * Add -fPIC for compilation on hppa/ia64 -- Julien Danjou Mon, 2 Sep 2002 19:30:50 +0200 libsdl-sge (020104-2) unstable; urgency=low * Makefile: no -fpic * Typo in description * Now include static lib -- Julien Danjou Wed, 28 Aug 2002 14:40:31 +0200 libsdl-sge (020104-1) unstable; urgency=low * Initial Release. (Closes: #157400) -- Julien Danjou Tue, 20 Aug 2002 21:08:44 +0200 debian/watch0000644000000000000000000000021411753752355010231 0ustar version=3 opts=dversionmangle=s/dfsg$// \ http://www.digitalfanatics.org/cal/sge/download.html \ (?:.*/)?sge(.*)\.tar\.(?:gz|bz2|lzma|xz) debian/control0000644000000000000000000000335012203776452010602 0ustar Source: libsdl-sge Maintainer: Debian SDL packages maintainers Uploaders: Manuel A. Fernandez Montecelo Section: libs Priority: optional Build-Depends: debhelper (>= 9~), libfreetype6-dev (>= 2.4.2), libsdl1.2-dev (>= 1.2.14~), libsdl-image1.2-dev (>= 1.2.12~) Standards-Version: 3.9.4 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-sdl/packages/libsdl-sge.git Vcs-Git: git://anonscm.debian.org/pkg-sdl/packages/libsdl-sge.git Homepage: http://www.digitalfanatics.org/cal/sge/ Package: libsdl-sge Architecture: any Multi-Arch: same Depends: ${shlibs:Depends}, ${misc:Depends} Pre-Depends: ${misc:Pre-Depends} Description: extension of graphic functions for SDL multimedia libraries SGE is a layer over the SDL multimedia library which provides common graphics operations such as clipping, block copies, drawing of lines, circles and primitives, rotation and scaling of surfaces, pixel operations, palette functions and many more. . This package contains the runtime library. Package: libsdl-sge-dev Architecture: any Multi-Arch: same Section: libdevel Depends: ${misc:Depends}, libsdl-sge (= ${binary:Version}), libsdl1.2-dev (>= 1.2.14~) Suggests: ttf-dejavu-core Description: extension of graphic functions for the SDL multimedia, development files SGE is a layer over the SDL multimedia library which provides common graphics operations such as clipping, block copies, drawing of lines, circles and primitives, rotation and scaling of surfaces, pixel operations, palette functions and many more. . This package contains the header files and static library needed to compile applications that use libsdl-sge. debian/libsdl-sge.install0000644000000000000000000000002611753572034012610 0ustar usr/lib/*/libSGE*.so.*debian/libsdl-sge.lintian-overrides0000644000000000000000000000006611753572034014604 0ustar libsdl-sge: package-name-doesnt-match-sonames libSGE0 debian/libsdl-sge-dev.install0000644000000000000000000000017711753572034013373 0ustar usr/lib/*/libSGE.so usr/include examples/* usr/share/doc/libsdl-sge-dev/examples docs/*.html usr/share/doc/libsdl-sge-dev/html debian/rules0000755000000000000000000000306012204002206010231 0ustar #!/usr/bin/make -f #export DH_VERBOSE=1 DEB_CFLAGS_MAINT_APPEND := $(shell dpkg-buildflags --get CPPFLAGS) DEB_CFLAGS_MAINT_APPEND += $(shell dpkg-buildflags --get CFLAGS) DEB_CFLAGS_MAINT_APPEND += -pipe -Wall export DEB_CFLAGS_MAINT_APPEND export DEB_LDFLAGS_MAINT_APPEND := -Wl,--no-undefined -Wl,--as-needed $(shell dpkg-buildflags --get LDFLAGS) DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) LIB_MULTIARCH_DIR = /usr/lib/$(DEB_HOST_MULTIARCH) ALL_CUSTOM_CFLAGS := $(DEB_CFLAGS_MAINT) $(DEB_CFLAGS_MAINT_APPEND) ALL_CUSTOM_LDFLAGS := $(DEB_LDFLAGS_MAINT) $(DEB_LDFLAGS_MAINT_APPEND) %: # dh $@ --parallel dh $@ override_dh_auto_build: # Build the static library and make a backup rm -f libSGE.a $(MAKE) all CUSTOM_CFLAGS="$(ALL_CUSTOM_CFLAGS)" CUSTOM_LDFLAGS="$(ALL_CUSTOM_LDFLAGS)" rm -f libSGE.bak mv libSGE.a libSGE.bak # Build the shared library and restore the static backup $(MAKE) clean $(MAKE) shared CUSTOM_CFLAGS="$(ALL_CUSTOM_CFLAGS)" CUSTOM_LDFLAGS="$(ALL_CUSTOM_LDFLAGS)" rm -f libSGE.a mv libSGE.bak libSGE.a override_dh_auto_install: echo $(CURDIR) $(MAKE) install PREFIX=$(CURDIR)/debian/tmp/usr PREFIX_H=$(CURDIR)/debian/tmp/usr/include/SDL # multi-arch support mkdir -p $(CURDIR)/debian/tmp/$(LIB_MULTIARCH_DIR) mv ./debian/tmp/usr/lib/libSGE*.a $(CURDIR)/debian/tmp/$(LIB_MULTIARCH_DIR) mv ./debian/tmp/usr/lib/libSGE*.so* $(CURDIR)/debian/tmp/$(LIB_MULTIARCH_DIR) override_dh_compress: dh_compress -Xexamples/ override_dh_makeshlibs: dh_makeshlibs -V 'libsdl-sge (>= 030809-1)' debian/compat0000644000000000000000000000000211753572034010373 0ustar 9 debian/copyright0000644000000000000000000000166511753752355011146 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: SGE - SDL Graphics Extension Upstream-Contact: Anders Lindström Source: http://www.digitalfanatics.org/cal/sge/ Files: * Copyright: 1999-2003, Anders Lindström License: LGPL-2.1+ Files: sge_blib.* Copyright: 2000-2003, Anders Lindström & Johan E. Thelin License: LGPL-2.1+ Files: debian/* Copyright: 2012, Manuel A. Fernandez Montecelo License: LGPL-2.1+ License: LGPL-2.1+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. . On Debian systems, the complete text of version 2.1 of the GNU Lesser Public License can be found in '/usr/share/common-licenses/LGPL-2.1'. debian/patches/0000755000000000000000000000000012204004627010612 5ustar debian/patches/015_overflow.diff0000644000000000000000000000066611753572034013716 0ustar --- a/sge_collision.cpp +++ b/sge_collision.cpp @@ -336,7 +336,7 @@ void sge_unset_cdata(sge_cdata *cd, Sint16 x, Sint16 y, Sint16 w, Sint16 h) { Uint8 *map=cd->map; - Sint16 offs,len; + Sint32 offs,len; int i,n=0; offs=y*cd->w + x; @@ -365,7 +365,7 @@ void sge_set_cdata(sge_cdata *cd, Sint16 x, Sint16 y, Sint16 w, Sint16 h) { Uint8 *map=cd->map; - Sint16 offs,len; + Sint32 offs,len; int i,n=0; offs=y*cd->w + x; debian/patches/010_examples.diff0000644000000000000000000000142311753572034013654 0ustar --- a/examples/Makefile +++ b/examples/Makefile @@ -1,24 +1,10 @@ # Makefile for the SGE library examples -include ../Makefile.conf - -CFLAGS += $(SGE_CFLAGS) -I./../ -LIBS =-L./../ -lSGE $(SGE_LIBS) - -TARGETS = fire bitmapfont collision blib rotate speedtest sprite sprite2 poly -C_TARGETS = - -ifneq ($(USE_FT),n) - TARGETS += basics blitting input alpha inputdeluxe - ifeq ($(C_COMP),y) - C_TARGETS = basics_c - endif -endif - -ifeq ($(USE_IMG),y) - TARGETS += sfont -endif +CFLAGS = `sdl-config --cflags` +LIBS = `sdl-config --libs` -lSGE +TARGETS = fire bitmapfont collision blib rotate speedtest sprite sprite2 poly basics blitting input alpha inputdeluxe sfont +C_TARGETS = basics_c OBJECTS = $(addsuffix .o, $(TARGETS)) C_OBJECTS = $(addsuffix .o, $(C_TARGETS)) debian/patches/005_freetype_support.diff0000644000000000000000000000070611753572034015464 0ustar --- a/sge_tt_text.cpp +++ b/sge_tt_text.cpp @@ -36,10 +36,11 @@ #include "sge_textpp.h" #ifndef _SGE_NOTTF -#include -#include -#include -#include +#include +#include FT_FREETYPE_H +#include FT_OUTLINE_H +#include FT_TRUETYPE_IDS_H +#include FT_INTERNAL_OBJECTS_H /* The structure used to hold glyph information (cached) */ struct glyph { debian/patches/004_legacy_functions.diff0000644000000000000000000000361511753572034015402 0ustar --- a/sge_tt_text.cpp +++ b/sge_tt_text.cpp @@ -1454,3 +1454,16 @@ } #endif /* _SGE_NOTTF */ + +/**********************************************************************************/ +/** Legacy functions for backwards compatibility **/ +/**********************************************************************************/ + +void insert_char(Uint16 *string, Uint16 ch, int pos, int max) { ; } +void delete_char(Uint16 *string, int pos, int max) { ; } + +SDL_Rect fast_update(SDL_Surface *Surface,SDL_Surface *buffer,SDL_Rect ret, int type,sge_TTFont *font,Uint16 *string, Sint16 x,Sint16 y, Uint32 fcol, Uint32 bcol,int Alpha) { return ret; } +SDL_Rect nice_update(SDL_Surface *Surface,SDL_Surface *buffer,SDL_Rect ret, int type,sge_TTFont *font,Uint16 *string, Sint16 x,Sint16 y, Uint32 fcol, Uint32 bcol, int Alpha) { return ret; } + +int keyrepeat(SDL_Event *event, int wait) { return 0; } + --- a/sge_tt_text.h +++ b/sge_tt_text.h @@ -93,9 +93,16 @@ DECLSPEC SDL_Surface *sge_TTF_Render(sge_TTFont *font,const Uint16 *text, SDL_Color fg, SDL_Color bg, int alpha_level); DECLSPEC SDL_Surface *sge_TTF_RenderUNICODE(sge_TTFont *font,const Uint16 *text, SDL_Color fg, SDL_Color bg); +/* Legacy functions */ +DECLSPEC SDL_Rect fast_update(SDL_Surface *Surface,SDL_Surface *buffer,SDL_Rect ret, int type,sge_TTFont *font,Uint16 *string, Sint16 x,Sint16 y, Uint32 fcol, Uint32 bcol,int Alpha); +DECLSPEC SDL_Rect nice_update(SDL_Surface *Surface,SDL_Surface *buffer,SDL_Rect ret, int type,sge_TTFont *font,Uint16 *string, Sint16 x,Sint16 y, Uint32 fcol, Uint32 bcol, int Alpha); #endif /* _SGE_NOTTF */ DECLSPEC Uint16 *sge_Latin1_Uni(const char *text); +/* Legacy functions */ +DECLSPEC int keyrepeat(SDL_Event *event, int wait); +DECLSPEC void insert_char(Uint16 *string, Uint16 ch, int pos, int max); +DECLSPEC void delete_char(Uint16 *string, int pos, int max); #ifdef _SGE_C } #endif debian/patches/series0000644000000000000000000000022711753572034012042 0ustar 001_makefile_fixes.diff 004_legacy_functions.diff 005_freetype_support.diff 006_freetype2_fixes.diff 010_examples.diff 015_overflow.diff 100_font.diff debian/patches/001_makefile_fixes.diff0000644000000000000000000000270212204004627015000 0ustar --- a/Makefile +++ b/Makefile @@ -4,6 +4,7 @@ CFLAGS += $(SGE_CFLAGS) -fPIC $(FT_CFLAGS) LIBS =$(SGE_LIBS) +LDFLAGS += $(CUSTOM_LDFLAGS) SGE_VER = 030809 API_VER = 0 @@ -11,13 +12,13 @@ OBJECTS=sge_surface.o sge_primitives.o sge_tt_text.o sge_bm_text.o sge_misc.o sge_textpp.o sge_blib.o sge_rotation.o sge_collision.o sge_shape.o all: config $(OBJECTS) - @ar rsc libSGE.a $(OBJECTS) + ar rsc libSGE.a $(OBJECTS) $(OBJECTS): %.o:%.cpp %.h #Each object depends on thier .cpp and .h file $(CXX) $(CFLAGS) -c $< shared: all - $(CXX) $(CFLAGS) -Wl,-soname,libSGE.so.$(API_VER) -fpic -fPIC -shared -o libSGE.so $(OBJECTS) $(LIBS) + $(CXX) $(CFLAGS) $(LDFLAGS) -Wl,-soname,libSGE.so.$(API_VER) -fpic -fPIC -shared -o libSGE.so $(OBJECTS) $(LIBS) shared-strip: shared @strip libSGE.so @@ -31,7 +32,7 @@ @strip SGE.dll clean: - @rm -f *.o *.so *.a *.dll *.def + rm -f *.o *.so *.so.* *.a *.dll *.def config: @echo "/* SGE Config header (generated automatically) */" >sge_config.h --- a/Makefile.conf +++ b/Makefile.conf @@ -4,7 +4,7 @@ # (See README for more info) C_COMP = y #USE_FT = n -#USE_IMG = n +USE_IMG = y #QUIET = y @@ -25,7 +25,7 @@ PREFIX_H =$(shell sdl-config --prefix)/include/SDL # Flags passed to the compiler -CFLAGS =-Wall -O3 -ffast-math +CFLAGS =-Wall -ffast-math $(CUSTOM_CFLAGS) SGE_CFLAGS =$(shell sdl-config --cflags) # Uncomment to make some more optimizations #CFLAGS =-Wall -O9 -ffast-math -march=i686 debian/patches/006_freetype2_fixes.diff0000644000000000000000000000074011753572034015147 0ustar --- a/sge_tt_text.cpp +++ b/sge_tt_text.cpp @@ -40,7 +40,6 @@ #include FT_FREETYPE_H #include FT_OUTLINE_H #include FT_TRUETYPE_IDS_H -#include FT_INTERNAL_OBJECTS_H /* The structure used to hold glyph information (cached) */ struct glyph { @@ -295,7 +294,7 @@ } memset(stream, 0, sizeof(*stream)); - stream->memory = _sge_library->memory; + stream->memory = NULL; stream->read = RWread; stream->descriptor.pointer = src; stream->pos = (unsigned long)position; debian/patches/100_font.diff0000644000000000000000000000507511753572034013013 0ustar --- a/examples/alpha.cpp +++ b/examples/alpha.cpp @@ -32,7 +32,7 @@ /* Open TT font file */ if(sge_TTF_Init()!=0){fprintf(stderr,"TT error: %s\n",SDL_GetError());exit(1);} sge_TTFont *font; - font=sge_TTF_OpenFont("font.ttf", 55); + font=sge_TTF_OpenFont("/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf", 55); if(font==NULL){fprintf(stderr,"TT error: %s\n",SDL_GetError());exit(1);} /* Ugly font rendering */ --- a/examples/basics.cpp +++ b/examples/basics.cpp @@ -40,7 +40,7 @@ /* Open TT font file */ if(sge_TTF_Init()!=0){fprintf(stderr,"TT error: %s\n",SDL_GetError());exit(1);} sge_TTFont *font; - font=sge_TTF_OpenFont("font.ttf", 50); + font=sge_TTF_OpenFont("/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf", 50); if(font==NULL){fprintf(stderr,"TT error: %s\n",SDL_GetError());exit(1);} /* Draws TT text on screen */ --- a/examples/basics_c.c +++ b/examples/basics_c.c @@ -42,7 +42,7 @@ /* Draws TT text on screen */ if(sge_TTF_Init()!=0){fprintf(stderr,"TT error: %s\n",SDL_GetError());exit(1);} - font=sge_TTF_OpenFont("font.ttf", 50); + font=sge_TTF_OpenFont("/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf", 50); if(font==NULL){fprintf(stderr,"TT error: %s\n",SDL_GetError());exit(1);} /* Draws TT text on screen */ --- a/examples/blitting.cpp +++ b/examples/blitting.cpp @@ -28,7 +28,7 @@ /* Open TT font file */ if(sge_TTF_Init()!=0){fprintf(stderr,"TT error: %s\n", SDL_GetError());exit(1);} sge_TTFont *font; - font=sge_TTF_OpenFont("font.ttf", 50); + font=sge_TTF_OpenFont("/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf", 50); if(font==NULL){fprintf(stderr,"TT error: %s\n", SDL_GetError());exit(1);} /* Make a nice background */ --- a/examples/input.cpp +++ b/examples/input.cpp @@ -29,7 +29,7 @@ /* Init TTF */ if(sge_TTF_Init()!=0){fprintf(stderr,"TT error: %s\n", SDL_GetError());exit(1);} sge_TTFont *font; - font=sge_TTF_OpenFont("font.ttf", 25); + font=sge_TTF_OpenFont("/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf", 25); if(font==NULL){fprintf(stderr,"TT error: %s\n", SDL_GetError());exit(1);} //sge_TTF_SetFontStyle(font, SGE_TTF_ITALIC); --- a/examples/inputdeluxe.cpp +++ b/examples/inputdeluxe.cpp @@ -42,7 +42,7 @@ //Open a TT font if(sge_TTF_Init()!=0){fprintf(stderr,"TT error: %s\n",SDL_GetError());exit(1);} sge_TTFont *font; - font=sge_TTF_OpenFont("font.ttf", 25); + font=sge_TTF_OpenFont("/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf", 25); if(font==NULL){fprintf(stderr,"TT error: %s\n",SDL_GetError());exit(1);} text.set_ttFont(font,0,255,0); //Use our font