Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Pango wrapper for PHP

branch: master

This branch is 0 commits ahead and 0 commits behind master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 examples
Octocat-spinner-32 .cvsignore
Octocat-spinner-32 .gitignore
Octocat-spinner-32 CREDITS
Octocat-spinner-32 README
Octocat-spinner-32 TODO
Octocat-spinner-32 config.m4
Octocat-spinner-32 config.w32
Octocat-spinner-32 package.xml
Octocat-spinner-32 pango.c
Octocat-spinner-32 pango_context.c
Octocat-spinner-32 pango_error.c
Octocat-spinner-32 pango_font.c
Octocat-spinner-32 pango_layout.c
Octocat-spinner-32 pango_line.c
Octocat-spinner-32 php_pango.h
README
This is the start of a Pango binding for PHP. Current requirements are:

 * PHP 5.2+
 * Pango 1.14+ :
 * pecl/cairo. Currently the only functionality I'm wrapping are those required
   to make Cairo rendering work which will suit my own purposes - however, once 
   that works I intend to remove the hard dependency here if I can.

Once this gets up to something usable it will be proposed for PECL.

Compiling on windows
====================

1. Setup build environment

Setup your build environment as described here: 
https://wiki.php.net/internals/windows/stepbystepbuild

2. Pecl packages

Create a directory called 'pecl' in the 'x86' directory.

 * Download and extract the pecl/cairo extension in the pecl directory
 * Download and extract the pecl/pango extension in the pecl directory 

3. Dependencies

Download the following dependencies from www.gtk.org/download/win32.php and 
extract them to the 'deps' directory. Make sure you download the 'Dev'
packages.

 * Cairo
 * Freetype
 * Fontconfig

You'll also need the GLib Dev package, you can copy the files in the lib 
directory to the deps/lib directory. The files in the include directory need 
special attention. You should extract the include/glib-2.0 directory to
deps/include/glib-pango. Finally you should extract the 
lib/glib-2.0/include/glibconfig.h header file to deps/include/glib-pango. 

4. Compiling pango

 * Run: buildconf.
 * Run: configure.js  --enable-pango=shared --with-cairo=shared
 * Run: nmake

5. Done

You're pango extension is now ready in: Release_TS/php_pango.dll

Something went wrong with that request. Please try again.