Commit graph

199 commits

Author SHA1 Message Date
Chris Wilson
1caa341039 Fix build under distcheck
Need to play a little dance to get the sources included and paths correct
whilst building source files with objdir != srcdir under distcheck.
2009-07-15 13:26:34 +01:00
Chris Wilson
7f114b781f [doc] Workaround read-only tree during make distcheck
This looks to be an ugly necessity to work-around the nasty issue that
we currently gtkdoc expect to be run inside the source tree. I'm sure
Behdad will be able to resolve this much more elegantly than this quick
and fragile attempt.
2009-06-12 11:15:16 +01:00
Chris Wilson
088d2a6cc7 [doc] Update identifiers 2009-05-08 08:53:51 +01:00
Behdad Esfahbod
f9573d03dd Err, make gtk-doc happy again 2009-05-06 20:31:04 -04:00
Behdad Esfahbod
496bbcf582 Make CAIRO_STATUS_LAST_STATUS public 2009-03-17 19:46:25 -04:00
Behdad Esfahbod
3ec94f9b59 Support compiling without fontconfig
Adds a new, fake, fontconfig font backend.  Fontconfig can be disabled
using --disable-fc, in which case the toy text API wont find fonts and
the internal font will always be used.

Also defines the feature macro CAIRO_HAS_FC_FONT.  The two fontconfig-specific
functions in cairo-ft.h depend on that macro now.
2009-03-17 00:58:40 -04:00
M Joonas Pihlaja
e380beae53 [sdl] Remove new backend.
The SDL backend makes invalid assumptions about SDL_Surface locking
semantics and doesn't deal correctly with the unpremultiplied pixel
format supported by SDL.  Removed as per discussion on the mailing list.

http://lists.cairographics.org/archives/cairo/2009-February/016595.html
2009-02-16 14:01:43 +02:00
Behdad Esfahbod
a55655a82d [test] Fix "make dist" 2009-02-06 12:47:51 -05:00
Adrian Johnson
5ad65dc4be Document PDF restrict_to_version API 2008-12-23 15:04:10 +10:30
Adrian Johnson
1869e0240b Document cairo_surface_(set|get)_mime_data() and mime types 2008-12-23 15:04:06 +10:30
Chris Wilson
a856371bef Add CairoScript backend.
A new meta-surface backend for serialising drawing operations to a
CairoScript file. The principal use (as currently envisaged) is to provide
a round-trip testing mechanism for CairoScript - i.e. we can generate
script files for every test in the suite and check that we can replay them
with perfect fidelity. (Obviously this does not provide complete coverage
of CairoScript's syntax, but should give reasonable coverage over the
operators.)
2008-11-13 11:36:54 +00:00
Chris Wilson
e90073f7dd [test] Build test suite into single binary.
Avoid calling libtool to link every single test case, by building just one
binary from all the sources.

This binary is then given the task of choosing tests to run (based on user
selection and individual test requirement), forking each test into its own
process and accumulating the results.
2008-10-31 12:30:11 +00:00
Carl Worth
9430bf57eb Fix scrambled version number in generated documentation.
In the cairo 1.8.0 release the documentation would get generated with
the second and third version components transposed, (so it would say
1.0.8). Fix the obviously mistaken transposition.
2008-10-06 14:02:19 -07:00
Torsten Schönfeld
fade54e71a [doc] Add links to solid pattern constructors.
Add links for the solid pattern constructors to the language bindings
guidelines in line with the other pattern types.
2008-09-30 11:47:53 +01:00
Behdad Esfahbod
86e57671dd [check-*.sh] Redirect error reports to stderr 2008-09-26 11:08:22 -04:00
Carl Worth
1d896aa9d8 Actually remove cairo_has_show_text_glyphs
The release notes for 1.7.6 say that we had dropped this
function, but apparently we had only planned to do that
and didn't actually get around to it until now.

Thanks to the RELEASING insctructions which gave a diff
command that pointed out this problem.
2008-09-25 15:56:57 -07:00
Behdad Esfahbod
23b9767bb3 Rename Makefile.*.config to Makefile.*.features as they should not be modified
The .config naming was giving people the impression that they can modify it.
That's not the case.
2008-09-22 17:34:36 -04:00
Behdad Esfahbod
dc260f1c0b [doc] Remove lcd_filter API from doc listing
Carl removed the API but not the listing in the docs.
The docs tests are passing again now.
2008-09-18 15:35:03 -04:00
Behdad Esfahbod
d02fb0fd20 [doc/public/check-doc-coverage.sh] Make doc building needed for the test faster
We used to do a full doc build to just to run the coverage test.  That's
way too slow to expect people to run regularly.  Instead now we just do the
source code scanning part of the doc build system that is just enough to
know if all symbols are documented.

A full doc build can be done as always by invoking "make doc", and indeed
will be called as part of "make dist" or "make distcheck".
2008-09-18 15:33:10 -04:00
Behdad Esfahbod
c6a7971a1e [doc/public/check-doc-coverage.sh] Fix typo in checking cairo-undeclared.txt
Copy/paste error meant we were not checking cairo-undeclared.txt there.
Indeed the test was passing even though Carl forgot to remove lcd-fitlering
API from docs.  The test fails now.
2008-09-18 15:28:43 -04:00
Carl Worth
1b42bc8033 Make the lcd_filter API private
During the cairo summit it was decided that this API is to freetype-
specific to be in the general cairo interface for now. This will
likely come back again soon as a cairo_ft-specific interface.
2008-09-18 07:56:43 -07:00
Behdad Esfahbod
1fe7088a11 [show_text_glyphs] Replace the bool backward with cairo_text_cluster_flags
Chris rightfully complained that having a boolean function argument is
new in cairo_show_text_glyphs, and indeed avoiding them has been one
of the API design criteria for cairo.  Trying to come up with alternatives,
Owen suggested using a flag type which nicely solves the problem AND
future-proofs such a complex API.

Please welcome _flags_t APIs to cairo.h
2008-09-18 00:26:07 -04:00
Behdad Esfahbod
a8cd426a4c [doc] Fix glob for doc sources 2008-09-18 00:25:02 -04:00
Behdad Esfahbod
856fedd235 [doc] Make "make check" build without gtk-doc 2008-09-15 16:19:12 -04:00
Behdad Esfahbod
fe31c35d86 [doc] Don't rebuild after every configure run
The version.xml file was rebuilt all the time and forcing a full
doc rebuild.  Not anymore unless cairo-version.h was changed.
2008-09-11 17:31:07 -04:00
Behdad Esfahbod
694fee9e7c Update gtk-doc makefile fragment
Also move it to build/.

We still do not call gtkdocize from autogen.sh.
2008-09-11 16:38:12 -04:00
Behdad Esfahbod
de5b8bce37 Makefile.am cleanup
Use a common build/Makefile.am.common file.
2008-09-11 15:49:09 -04:00
Behdad Esfahbod
b7a838261b Move m4 macros into build/aclocal.*.m4 files 2008-09-11 04:17:43 -04:00
Behdad Esfahbod
391bef58fc Add support for always-builtin features in the build system
Like image surface and user fonts.
2008-09-11 00:38:30 -04:00
Behdad Esfahbod
c73f58e3a7 [doc] Don't include *.h as sources
No idea why this was done initially but other projects I checked did not
do it.
2008-09-11 00:38:29 -04:00
Behdad Esfahbod
87dfceb9ec [Makefile.am] Rename INCLUDES to AM_CPPFLAGS
Fixes automake warnings
2008-09-08 15:13:07 -04:00
Benjamin Otte
c2062dc8b7 [doc] get rid of various markers that aren't interpreted by gtk-doc 2008-09-06 22:29:47 +02:00
Behdad Esfahbod
7ad076442d Rename src/*.mk to src/Makefile.*
Namely:

	src/Sources.mk      -> src/Makefile.sources
	src/Config.mk       -> src/Makefile.am.config
	src/Config.mk.win32 -> src/Makefile.win32.config
2008-09-04 22:23:42 -04:00
Behdad Esfahbod
308a2ca928 [doc/public/check-doc-coverage.sh] Also test cairo-undeclared 2008-09-03 20:52:17 -04:00
Behdad Esfahbod
5926257770 Revamp the build system.
Quick summary of changes:

  - Move list of cairo source files out of src/Makefile.am and into
    src/Sources.mk,

  - Generate files src/Config.mk and src/Config.mk.win32 that choose
    the right set of source files and headers based on configured
    backends and features.  This drastically simplifies building
    using other build systems.  The src/Makefile.win32 file needs
    to be updated to reflect these changes.

  - Add README files to various directories,

  - Add toplevel HACKING file.
2008-09-02 20:24:08 -04:00
Behdad Esfahbod
2553579cc8 [doc] Clean up doc file names 2008-09-02 20:24:00 -04:00
Behdad Esfahbod
a5a896aae8 Update header glob 2008-09-02 20:23:59 -04:00
Behdad Esfahbod
89900525fb Move version number to src/cairo-version.h 2008-08-28 17:28:08 -04:00
Behdad Esfahbod
00bc650455 Add new public API cairo_surface_has_show_text_glyphs()
We added cairo_has_show_text_glyphs() before.  Since this is really a
surface property, should have the surface method too.  Like we added
cairo_surface_show_page()...
2008-08-18 14:54:21 -04:00
Behdad Esfahbod
5d307b58b9 [doc] More template changes. Donno why they keep changing. 2008-08-11 13:54:39 -04:00
Behdad Esfahbod
8f6e52b068 [doc] Add short user-font section docs 2008-08-08 17:13:27 -04:00
Behdad Esfahbod
eabe572981 Document all new API
Also validate clusters generated by font backends.
2008-08-08 03:04:38 -04:00
Behdad Esfahbod
7e57892983 Add toy font constructor and getters
New public API:

	cairo_toy_font_face_create()
	cairo_toy_font_face_get_family()
	cairo_toy_font_face_get_slant()
	cairo_toy_font_face_get_weight()
2008-08-08 03:01:14 -04:00
Behdad Esfahbod
bca9a21e98 [docs] Update private header list 2008-08-08 03:01:14 -04:00
Behdad Esfahbod
221599ab0f Finish off lcd-filter merge 2008-08-05 16:36:05 -04:00
Sylvain Pasche
45ec5e77bb Add symbols for setting the LCD filter type on font options 2008-08-05 16:30:37 -04:00
Behdad Esfahbod
047566fd52 Add cairo_show_text_glyphs API
New public API:

	cairo_text_cluster_t
	cairo_has_show_text_glyphs()
	cairo_show_text_glyphs()

Add accompanying gstate and surface functions, and surface backend methods.
No backends implement them just yet.
2008-06-26 16:20:59 -04:00
Behdad Esfahbod
ba62d2d30a Update .gitignore files 2008-06-26 16:20:58 -04:00
Behdad Esfahbod
498f3ddf2e Add status CAIRO_STATUS_NEGATIVE_COUNT
To be used for things like passing a negative number of glyphs
to cairo_show_glyphs().
2008-06-23 17:53:25 -04:00
Behdad Esfahbod
ce24588d1c [doc] Update doc/public/Headers.mk 2008-06-23 17:51:32 -04:00