Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
lourinaldi committed Jan 6, 2017
1 parent 3a5379f commit edf776e
Show file tree
Hide file tree
Showing 938 changed files with 442,168 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .hg_archival.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
repo: cf26abdef6fdaddceeb4caf26bbea28ac9c7a03c
node: 184c34c673d479477d34194e3c0b1abe7ca5d828
branch: default
latesttag: release-2.0.14
latesttagdistance: 4
19 changes: 19 additions & 0 deletions .hgignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
syntax:glob
autom4te*
config.cache
config.log
config.status
Makefile
libtool
.deps
.libs
*.lo
*.o
*.la
*.lai
.DS_Store
xcuserdata
*.xcworkspace
SDL2_ttf.pc
glfont
showfont
8 changes: 8 additions & 0 deletions .hgtags
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
3933facc2a986c681ff603f03b46e8c8232f7f7a release-2.0.8
916d1d9ca2dc3b04fedf07df84975698fb41fb7d release-2.0.9
d8d6a6d3cc73ec4b3cfe58b056bd1d0c0d78c07a release-2.0.10
a6e04cc5734866571b8a1e7ddec8bcf83d499ad9 Last LGPL revision
3c9e009b928cb0122bb1b5feac14b6b999008216 release-2.0.11
df9d0e8ef4db065325b22f86f25ab58e3d733391 release-2.0.12
4892ed2e686659bf382faada2e53427a9cdea905 release-2.0.13
62fc3433538d56e48c8cd8999678e68643e6c04b release-2.0.14
66 changes: 66 additions & 0 deletions Android.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE := SDL2_ttf

FREETYPE_LIBRARY_PATH := external/freetype-2.4.12

LOCAL_C_INCLUDES := $(LOCAL_PATH)

LOCAL_SRC_FILES := SDL_ttf.c \

ifneq ($(FREETYPE_LIBRARY_PATH),)
LOCAL_C_INCLUDES += $(LOCAL_PATH)/$(FREETYPE_LIBRARY_PATH)/include
LOCAL_CFLAGS += -DFT2_BUILD_LIBRARY
LOCAL_SRC_FILES += \
$(FREETYPE_LIBRARY_PATH)/src/autofit/autofit.c \
$(FREETYPE_LIBRARY_PATH)/src/base/ftbase.c \
$(FREETYPE_LIBRARY_PATH)/src/base/ftbbox.c \
$(FREETYPE_LIBRARY_PATH)/src/base/ftbdf.c \
$(FREETYPE_LIBRARY_PATH)/src/base/ftbitmap.c \
$(FREETYPE_LIBRARY_PATH)/src/base/ftcid.c \
$(FREETYPE_LIBRARY_PATH)/src/base/ftdebug.c \
$(FREETYPE_LIBRARY_PATH)/src/base/ftfstype.c \
$(FREETYPE_LIBRARY_PATH)/src/base/ftgasp.c \
$(FREETYPE_LIBRARY_PATH)/src/base/ftglyph.c \
$(FREETYPE_LIBRARY_PATH)/src/base/ftgxval.c \
$(FREETYPE_LIBRARY_PATH)/src/base/ftinit.c \
$(FREETYPE_LIBRARY_PATH)/src/base/ftlcdfil.c \
$(FREETYPE_LIBRARY_PATH)/src/base/ftmm.c \
$(FREETYPE_LIBRARY_PATH)/src/base/ftotval.c \
$(FREETYPE_LIBRARY_PATH)/src/base/ftpatent.c \
$(FREETYPE_LIBRARY_PATH)/src/base/ftpfr.c \
$(FREETYPE_LIBRARY_PATH)/src/base/ftstroke.c \
$(FREETYPE_LIBRARY_PATH)/src/base/ftsynth.c \
$(FREETYPE_LIBRARY_PATH)/src/base/ftsystem.c \
$(FREETYPE_LIBRARY_PATH)/src/base/fttype1.c \
$(FREETYPE_LIBRARY_PATH)/src/base/ftwinfnt.c \
$(FREETYPE_LIBRARY_PATH)/src/base/ftxf86.c \
$(FREETYPE_LIBRARY_PATH)/src/bdf/bdf.c \
$(FREETYPE_LIBRARY_PATH)/src/bzip2/ftbzip2.c \
$(FREETYPE_LIBRARY_PATH)/src/cache/ftcache.c \
$(FREETYPE_LIBRARY_PATH)/src/cff/cff.c \
$(FREETYPE_LIBRARY_PATH)/src/cid/type1cid.c \
$(FREETYPE_LIBRARY_PATH)/src/gzip/ftgzip.c \
$(FREETYPE_LIBRARY_PATH)/src/lzw/ftlzw.c \
$(FREETYPE_LIBRARY_PATH)/src/pcf/pcf.c \
$(FREETYPE_LIBRARY_PATH)/src/pfr/pfr.c \
$(FREETYPE_LIBRARY_PATH)/src/psaux/psaux.c \
$(FREETYPE_LIBRARY_PATH)/src/pshinter/pshinter.c \
$(FREETYPE_LIBRARY_PATH)/src/psnames/psmodule.c \
$(FREETYPE_LIBRARY_PATH)/src/raster/raster.c \
$(FREETYPE_LIBRARY_PATH)/src/sfnt/sfnt.c \
$(FREETYPE_LIBRARY_PATH)/src/smooth/smooth.c \
$(FREETYPE_LIBRARY_PATH)/src/tools/apinames.c \
$(FREETYPE_LIBRARY_PATH)/src/truetype/truetype.c \
$(FREETYPE_LIBRARY_PATH)/src/type1/type1.c \
$(FREETYPE_LIBRARY_PATH)/src/type42/type42.c \
$(FREETYPE_LIBRARY_PATH)/src/winfonts/winfnt.c
endif

LOCAL_SHARED_LIBRARIES := SDL2

LOCAL_EXPORT_C_INCLUDES += $(LOCAL_C_INCLUDES)

include $(BUILD_SHARED_LIBRARY)
31 changes: 31 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
2.0.14:
Ryan Gordon - Fri Jan 29 12:53:29 PST 2016
* Deprecated TTF_GetFontKerningSize() which takes font glyph indices and added TTF_GetFontKerningSizeGlyphs() which takes characters

2.0.13:
Sylvain - Sat Jun 28 11:42:42 2014
* Fixed bug rendering text starting with a glyph with negative starting offset
beuc - Sun Jun 15 18:27:28 2014
* Fixed regression loading non-scalable fonts
Sam Lantinga - Sun Jun 15 18:21:04 PDT 2014
* TTF_GetFontKerningSize() gets kerning between two characters, not two glyph indices
David Ludwig - Sun Apr 13 22:28:26 2014
* Added support for building for Windows RT and Windows Phone

2.0.12:
Sam Lantinga - Sat Jun 1 19:11:26 PDT 2013
* Updated for SDL 2.0 release

2.0.11:
Sam Lantinga - Sat Dec 31 10:49:42 EST 2011
* SDL_ttf is now under the zlib license
Peter Kosyh - Mon Feb 28 14:57:03 PST 2011
* Improved font glyph caching for non-latin languages
Erik Snoek - Wed Jan 12 09:10:15 PST 2011
* Added API to get kerning info: TTF_GetFontKerningSize()
Sam Lantinga - Mon Jan 10 10:58:34 2011 -0800
* Added Android.mk to build on the Android platform

2.0.10:
Adam Strzelecki - Wed Oct 21 21:02:37 PDT 2009
* Find the Unicode or symbol character map if it's available in the font
20 changes: 20 additions & 0 deletions COPYING.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
SDL_ttf: A companion library to SDL for working with TrueType (tm) fonts
Copyright (C) 1997-2017 Sam Lantinga <[email protected]>

This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.

Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:

1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
57 changes: 57 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Makefile.am for the SDL truetype font loading library and viewer

lib_LTLIBRARIES = libSDL2_ttf.la

libSDL2_ttfincludedir = $(includedir)/SDL2
libSDL2_ttfinclude_HEADERS = \
SDL_ttf.h

libSDL2_ttf_la_SOURCES = \
SDL_ttf.c

EXTRA_DIST = \
Android.mk \
debian \
external \
version.rc \
VisualC \
Xcode \
Xcode-iOS \
SDL2_ttf.spec \
SDL2_ttf.spec.in \
gcc-fat.sh \
autogen.sh \
$(srcdir)/*.txt

if USE_VERSION_RC
libSDL2_ttf_la_LDFLAGS = \
-no-undefined \
-release $(LT_RELEASE) \
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -Wl,version.o
libSDL2_ttf_la_DEPENDENCIES = version.o
else
libSDL2_ttf_la_LDFLAGS = \
-no-undefined \
-release $(LT_RELEASE) \
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
endif
libSDL2_ttf_la_LIBADD = @MATHLIB@

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = SDL2_ttf.pc

%.o : %.rc
$(WINDRES) $< $@

noinst_PROGRAMS = showfont glfont

showfont_LDADD = libSDL2_ttf.la
glfont_LDADD = libSDL2_ttf.la @GL_LIBS@ @MATHLIB@

# Rule to build tar-gzipped distribution package
$(PACKAGE)-$(VERSION).tar.gz: distcheck

# Rule to build RPM distribution package
rpm: $(PACKAGE)-$(VERSION).tar.gz
rpmbuild -ta $(PACKAGE)-$(VERSION).tar.gz

Loading

0 comments on commit edf776e

Please sign in to comment.