Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Jaka Kranjc (d5998d5ced57b9d6feec3557f0babfb6642969a8)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Jaka Kranjc <scm AT mail.sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Jaka Kranjc (d5998d5ced57b9d6feec3557f0babfb6642969a8)
  • Date: Sun, 29 Oct 2006 06:55:19 -0600

GIT changes to master grimoire by Jaka Kranjc <lynxlynxlynx AT sourcemage.org>:

ChangeLog | 3
libs/sdl_pango/CONFIGURE | 2
libs/sdl_pango/DEPENDS | 3
libs/sdl_pango/DETAILS | 14 +++
libs/sdl_pango/HISTORY | 2
libs/sdl_pango/PRE_BUILD | 7 +
libs/sdl_pango/SDL_Pango-0.1.2-API-adds.patch | 116
++++++++++++++++++++++++++
7 files changed, 147 insertions(+)

New commits:
commit d5998d5ced57b9d6feec3557f0babfb6642969a8
Author: Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
Commit: Jaka Kranjc <lynxlynxlynx AT sourcemage.org>

libs/sdl_pango: new spell (guess what it does) #13217
thanks go to Puppet_Master

diff --git a/ChangeLog b/ChangeLog
index 4b1d321..b163f8c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2006-10-29 Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
+ * libs/sdl_pango: new spell (guess what it does) #13217
+
2006-10-27 Mathieu Lonjaret <lejatorn AT sourcemage.org>
* http/eruby: new spell

diff --git a/libs/sdl_pango/CONFIGURE b/libs/sdl_pango/CONFIGURE
new file mode 100755
index 0000000..59f138d
--- /dev/null
+++ b/libs/sdl_pango/CONFIGURE
@@ -0,0 +1,2 @@
+config_query FB_PATCH "Do you want to patch $SPELL for Frozen Bubble 2.0.0?"
n
+
diff --git a/libs/sdl_pango/DEPENDS b/libs/sdl_pango/DEPENDS
new file mode 100755
index 0000000..73a7f16
--- /dev/null
+++ b/libs/sdl_pango/DEPENDS
@@ -0,0 +1,3 @@
+depends sdl &&
+depends glib2 &&
+depends pango
diff --git a/libs/sdl_pango/DETAILS b/libs/sdl_pango/DETAILS
new file mode 100755
index 0000000..5f18ad7
--- /dev/null
+++ b/libs/sdl_pango/DETAILS
@@ -0,0 +1,14 @@
+ SPELL=sdl_pango
+ VERSION=0.1.2
+ SOURCE=SDL_Pango-${VERSION}.tar.gz
+SOURCE_DIRECTORY=${BUILD_DIRECTORY}/SDL_Pango-${VERSION}
+ SOURCE_URL[0]=${SOURCEFORGE_URL}/sdlpango/${SOURCE}
+
SOURCE_HASH=sha512:081ec57e0f55ce541c35393d6db7ea48b662a5008760781076d70c0a645d47f7e994f695c459ed51f8cb71494911a04cd416733fb57934321b806a1ac9878440
+ LICENSE[0]=GPL
+ WEB_SITE=http://sdlpango.sourceforge.net
+ ENTERED=20061028
+ SHORT="SDL_Pango connects pango to SDL"
+cat << EOF
+Pango is the text rendering engine of GNOME 2. SDL_Pango connects that engine
+to SDL, the Simple DirectMedia Layer.
+EOF
diff --git a/libs/sdl_pango/HISTORY b/libs/sdl_pango/HISTORY
new file mode 100644
index 0000000..0e440f1
--- /dev/null
+++ b/libs/sdl_pango/HISTORY
@@ -0,0 +1,2 @@
+2006-10-27 Philippe "Puppet_Master" Caseiro <caseiro.philippe AT gmail.com>
+ * Initial spell
diff --git a/libs/sdl_pango/PRE_BUILD b/libs/sdl_pango/PRE_BUILD
new file mode 100755
index 0000000..8a0a433
--- /dev/null
+++ b/libs/sdl_pango/PRE_BUILD
@@ -0,0 +1,7 @@
+default_pre_build &&
+if [[ "$FB_PATCH" == "y" ]]; then
+ cd $SOURCE_DIRECTORY
+ patch -p0 src/SDL_Pango.c $SPELL_DIRECTORY/SDL_Pango-0.1.2-API-adds.patch
+fi
+
+
diff --git a/libs/sdl_pango/SDL_Pango-0.1.2-API-adds.patch
b/libs/sdl_pango/SDL_Pango-0.1.2-API-adds.patch
new file mode 100644
index 0000000..1535a56
--- /dev/null
+++ b/libs/sdl_pango/SDL_Pango-0.1.2-API-adds.patch
@@ -0,0 +1,116 @@
+--- src/SDL_Pango.c 2004-12-10 10:06:33.000000000 +0100
++++ src/SDL_Pango.c 2006-09-24 22:46:24.000000000 +0200
+@@ -723,13 +723,8 @@
+ SDL_UnlockSurface(surface);
+ }
+
+-/*!
+- Create a context which contains Pango objects.
+-
+- @return A pointer to the context as a SDLPango_Context*.
+-*/
+ SDLPango_Context*
+-SDLPango_CreateContext()
++SDLPango_CreateContext_GivenFontDesc(const char* font_desc)
+ {
+ SDLPango_Context *context = g_malloc(sizeof(SDLPango_Context));
+ G_CONST_RETURN char *charset;
+@@ -743,8 +738,7 @@
+ pango_context_set_language (context->context,
pango_language_from_string (charset));
+ pango_context_set_base_dir (context->context, PANGO_DIRECTION_LTR);
+
+- context->font_desc = pango_font_description_from_string(
+- MAKE_FONT_NAME (DEFAULT_FONT_FAMILY, DEFAULT_FONT_SIZE));
++ context->font_desc = pango_font_description_from_string(font_desc);
+
+ context->layout = pango_layout_new (context->context);
+
+@@ -762,6 +756,17 @@
+ }
+
+ /*!
++ Create a context which contains Pango objects.
++
++ @return A pointer to the context as a SDLPango_Context*.
++*/
++SDLPango_Context*
++SDLPango_CreateContext()
++{
++
SDLPango_CreateContext_GivenFontDesc(MAKE_FONT_NAME(DEFAULT_FONT_FAMILY,
DEFAULT_FONT_SIZE));
++}
++
++/*!
+ Free a context.
+
+ @param *context [i/o] Context to be free
+@@ -1053,6 +1058,20 @@
+ pango_layout_set_font_description (context->layout, context->font_desc);
+ }
+
++void
++SDLPango_SetText_GivenAlignment(
++ SDLPango_Context *context,
++ const char *text,
++ int length,
++ SDLPango_Alignment alignment)
++{
++ pango_layout_set_attributes(context->layout, NULL);
++ pango_layout_set_text (context->layout, text, length);
++ pango_layout_set_auto_dir (context->layout, TRUE);
++ pango_layout_set_alignment (context->layout, alignment);
++ pango_layout_set_font_description (context->layout, context->font_desc);
++}
++
+ /*!
+ Set plain text to context.
+ Text must be utf-8.
+@@ -1067,11 +1086,7 @@
+ const char *text,
+ int length)
+ {
+- pango_layout_set_attributes(context->layout, NULL);
+- pango_layout_set_text (context->layout, text, length);
+- pango_layout_set_auto_dir (context->layout, TRUE);
+- pango_layout_set_alignment (context->layout, PANGO_ALIGN_LEFT);
+- pango_layout_set_font_description (context->layout, context->font_desc);
++ SDLPango_SetText_GivenAlignment(context, text, length,
SDLPANGO_ALIGN_LEFT);
+ }
+
+ /*!
+--- src/SDL_Pango.h 2004-12-10 10:06:33.000000000 +0100
++++ src/SDL_Pango.h 2006-09-24 22:46:01.000000000 +0200
+@@ -109,12 +109,20 @@
+ SDLPANGO_DIRECTION_NEUTRAL /*! Neutral */
+ } SDLPango_Direction;
+
+-
++/*!
++ Specifies alignment of text. See Pango reference for detail
++*/
++typedef enum {
++ SDLPANGO_ALIGN_LEFT,
++ SDLPANGO_ALIGN_CENTER,
++ SDLPANGO_ALIGN_RIGHT
++} SDLPango_Alignment;
+
+ extern DECLSPEC int SDLCALL SDLPango_Init();
+
+ extern DECLSPEC int SDLCALL SDLPango_WasInit();
+
++extern DECLSPEC SDLPango_Context* SDLCALL
SDLPango_CreateContext_GivenFontDesc(const char* font_desc);
+ extern DECLSPEC SDLPango_Context* SDLCALL SDLPango_CreateContext();
+
+ extern DECLSPEC void SDLCALL SDLPango_FreeContext(
+@@ -157,6 +165,12 @@
+ const char *markup,
+ int length);
+
++extern DECLSPEC void SDLCALL SDLPango_SetText_GivenAlignment(
++ SDLPango_Context *context,
++ const char *text,
++ int length,
++ SDLPango_Alignment alignment);
++
+ extern DECLSPEC void SDLCALL SDLPango_SetText(
+ SDLPango_Context *context,
+ const char *markup,



  • [SM-Commit] GIT changes to master grimoire by Jaka Kranjc (d5998d5ced57b9d6feec3557f0babfb6642969a8), Jaka Kranjc, 10/29/2006

Archive powered by MHonArc 2.6.24.

Top of Page