oopango.git
13 months agoMake this work with lua 5.2 master
Uli Schlachter [Thu, 29 Mar 2012 16:15:46 +0000 (18:15 +0200)]
Make this work with lua 5.2

Big thanks to Evan McClain <aeroevan@gmail.com> for a preliminary patch on which
I based this! (Sorry, but I like my version more :-P)

Signed-off-by: Uli Schlachter <psychon@znc.in>

13 months agoCache the result of the lua version check
Uli Schlachter [Thu, 29 Mar 2012 15:10:49 +0000 (17:10 +0200)]
Cache the result of the lua version check

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoBump version to 1.1 v1.1
Uli Schlachter [Wed, 18 May 2011 18:20:52 +0000 (20:20 +0200)]
Bump version to 1.1

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoUse -no-undefined for libtool
Uli Schlachter [Sun, 15 May 2011 12:24:51 +0000 (14:24 +0200)]
Use -no-undefined for libtool

This causes libtool to use -Wl,-no-undefined so that make will fail if there are
any undefined symbols. Additionally, this might (in theory) make all this work
on windows with shared libs.

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoUnset layout attributes when set_text() is called
Uli Schlachter [Sun, 27 Feb 2011 14:32:08 +0000 (15:32 +0100)]
Unset layout attributes when set_text() is called

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoFix some warnings from the test suite's double_gc
Uli Schlachter [Sun, 27 Feb 2011 13:20:48 +0000 (14:20 +0100)]
Fix some warnings from the test suite's double_gc

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoUpdate all copyright headers
Uli Schlachter [Sun, 27 Feb 2011 11:00:10 +0000 (12:00 +0100)]
Update all copyright headers

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoFix a copy&paste error
Uli Schlachter [Sat, 26 Feb 2011 22:24:21 +0000 (23:24 +0100)]
Fix a copy&paste error

This line was copied over from oocairo, but oopango doesn't have a file called
test-setup.lua. This caused "make distcheck" to fail.

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoAdd a test suite
Uli Schlachter [Sat, 26 Feb 2011 22:18:34 +0000 (23:18 +0100)]
Add a test suite

This test suite is closely modeled after oocairo's. It calls all offered
functions at least once.

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoRevert "Add type() functions to all classes"
Uli Schlachter [Fri, 21 Jan 2011 18:51:10 +0000 (19:51 +0100)]
Revert "Add type() functions to all classes"

This reverts commit c589ca06a9e2fe36a96b493a71712efb375ea7f6.

Instead of adding a type() function, we already have ._NAME which should be used
instead. Whooops.

2 years agoError out when we can't find the lua CMOD path
Uli Schlachter [Sat, 8 Jan 2011 10:59:26 +0000 (11:59 +0100)]
Error out when we can't find the lua CMOD path

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoFix URL in pkg-config files
Uli Schlachter [Fri, 17 Dec 2010 19:43:37 +0000 (20:43 +0100)]
Fix URL in pkg-config files

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoLayout: Whoops, turn the boolean into a boolean
Uli Schlachter [Thu, 7 Oct 2010 16:53:31 +0000 (18:53 +0200)]
Layout: Whoops, turn the boolean into a boolean

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agolayout: Add cursor bindings
Uli Schlachter [Thu, 7 Oct 2010 16:39:53 +0000 (18:39 +0200)]
layout: Add cursor bindings

This adds the bindings for functions that can be used for cursor handling. This
also adds get_unknown_glyphs_count() which can be used to find out if some fonts
are missing.

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agolayout: Add single_paragraph_mode property
Uli Schlachter [Thu, 7 Oct 2010 16:20:11 +0000 (18:20 +0200)]
layout: Add single_paragraph_mode property

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoBugfix for finding the lua path
Uli Schlachter [Fri, 1 Oct 2010 23:16:39 +0000 (01:16 +0200)]
Bugfix for finding the lua path

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoAdd an autogen.sh script
Uli Schlachter [Fri, 1 Oct 2010 16:48:35 +0000 (18:48 +0200)]
Add an autogen.sh script

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoMove list_families into fontmaps
Uli Schlachter [Sat, 18 Sep 2010 12:28:33 +0000 (14:28 +0200)]
Move list_families into fontmaps

This also slightly changes the returned table. It now uses integers as keys
instead of the name of the font.

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoMove all cairo-specific stuff to pango_cairo.c
Uli Schlachter [Sat, 18 Sep 2010 12:23:48 +0000 (14:23 +0200)]
Move all cairo-specific stuff to pango_cairo.c

This also changes the API. The cairo-specific functions are now under
oopango.cairo.

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoAdd font map objects
Uli Schlachter [Sat, 18 Sep 2010 12:16:02 +0000 (14:16 +0200)]
Add font map objects

Instead of hardcoding pango_cairo_font_map_get_default(), this now adds font map
objects that can be passed to the "list_families" function.

Because this function is no longer cairo-specific, it is renamed to
font_map_list_families.

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agopkg-config: Check for lua vs lua5.1
Uli Schlachter [Tue, 14 Sep 2010 15:23:38 +0000 (17:23 +0200)]
pkg-config: Check for lua vs lua5.1

Apparently, debian is the only distro that uses lua5.1 for lua's pkg-config
file. Fix this by checking for both "lua" and "lua5.1".

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoMove the check for lua's libdir into a seperate file
Uli Schlachter [Wed, 1 Sep 2010 09:43:53 +0000 (11:43 +0200)]
Move the check for lua's libdir into a seperate file

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoFix some compiler warnings and use C99
Uli Schlachter [Wed, 1 Sep 2010 09:17:25 +0000 (11:17 +0200)]
Fix some compiler warnings and use C99

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoEnable some compiler warnings in configure
Uli Schlachter [Wed, 1 Sep 2010 09:15:07 +0000 (11:15 +0200)]
Enable some compiler warnings in configure

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoAdd type() functions to all classes
Uli Schlachter [Tue, 31 Aug 2010 17:56:05 +0000 (19:56 +0200)]
Add type() functions to all classes

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoAlso generate bzip2 files for "make dist"
Uli Schlachter [Tue, 31 Aug 2010 16:41:06 +0000 (18:41 +0200)]
Also generate bzip2 files for "make dist"

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoBump the version number v1.0
Uli Schlachter [Tue, 31 Aug 2010 16:11:48 +0000 (18:11 +0200)]
Bump the version number

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoBump the dependency on oocairo to version 1.3
Uli Schlachter [Tue, 31 Aug 2010 16:11:36 +0000 (18:11 +0200)]
Bump the dependency on oocairo to version 1.3

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoAdd copyright headers
Uli Schlachter [Tue, 31 Aug 2010 16:11:16 +0000 (18:11 +0200)]
Add copyright headers

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoAdd a .gitignore file
Uli Schlachter [Tue, 31 Aug 2010 14:27:36 +0000 (16:27 +0200)]
Add a .gitignore file

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoAlso list the available faces for a family
Uli Schlachter [Tue, 31 Aug 2010 14:06:09 +0000 (16:06 +0200)]
Also list the available faces for a family

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoAdd some font stuff
Uli Schlachter [Tue, 31 Aug 2010 13:55:00 +0000 (15:55 +0200)]
Add some font stuff

One can now even enumerate the available fonts!

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoAdd "justify" layout option
Uli Schlachter [Tue, 31 Aug 2010 13:25:09 +0000 (15:25 +0200)]
Add "justify" layout option

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoCleanup the layout API definition
Uli Schlachter [Tue, 31 Aug 2010 13:19:09 +0000 (15:19 +0200)]
Cleanup the layout API definition

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoImprove the font property support
Uli Schlachter [Tue, 31 Aug 2010 12:42:35 +0000 (14:42 +0200)]
Improve the font property support

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoAdd two functions for creating font descs
Uli Schlachter [Tue, 31 Aug 2010 12:25:40 +0000 (14:25 +0200)]
Add two functions for creating font descs

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoWhoops, bugfix
Uli Schlachter [Tue, 31 Aug 2010 12:23:06 +0000 (14:23 +0200)]
Whoops, bugfix

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoFollow name change in oocairo
Uli Schlachter [Tue, 31 Aug 2010 12:22:55 +0000 (14:22 +0200)]
Follow name change in oocairo

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoAdd pkg-config files
Uli Schlachter [Tue, 24 Aug 2010 17:13:35 +0000 (19:13 +0200)]
Add pkg-config files

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoImport first version of oopango
Uli Schlachter [Tue, 24 Aug 2010 16:42:08 +0000 (18:42 +0200)]
Import first version of oopango

Based on oocairo, this adds pango support. The code is largely based on oocairo
and copied some functions for managing lua objects literally.

Signed-off-by: Uli Schlachter <psychon@znc.in>