Commit graph

5801 commits

Author SHA1 Message Date
Chris Wilson
eb39151fdc [scaled-fonts] Correct the order of scaled/user arguments. 2008-09-17 21:19:13 +01:00
Chris Wilson
85a4f0dcee Workaround undefined functions required by rsvg & poppler.
If the native windowing system is disable (e.g. --disable-xlib) then the
test suite fails to build since the vector converters typically depend
upon gdk-pixbuf-2.0, which in turn depends upon a native gdk which
requires cairo to be built with support for the native windowing system. A
mess that should be resolved by separating rsvg and poppler into core and
higher-level libraries, but which we can workaround by simply ignoring
errors from undefined functions at link time.
2008-09-17 15:25:18 -04:00
Søren Sandmann Pedersen
e6f66ef65b Require pixman 0.12.0 2008-09-17 15:18:55 -04:00
Søren Sandmann Pedersen
86485e76b7 [xlib] Use _cairo_matrix_to_pixman_matrix() to compute the XTransform
The adjustments done to the pixman matrix also need to be done for
XTransform. Since an XTransform is just a pixman_transform_t with
another name, we can reuse the conversion function.
2008-09-17 15:18:55 -04:00
Chris Wilson
dbb692325b [ps] Consume dictionary after where.
where either pushes 'dict true' or 'false' so the true procedure needs to
consume the dictionary as well - for our purposes we just pop it off the
operand stack.
2008-09-17 19:09:16 +01:00
Chris Wilson
7761a106ce [test] Check set_operator()
Draw a pair of rectangles with each operator in turn - seems to trigger an
issue with the PDF/PS backends.
2008-09-17 11:59:29 +01:00
Behdad Esfahbod
1de35c04e0 Revert "[Makefile.am] Add CAIRO_LIBS to check-link."
This reverts commit a341cb5a98.
The change introduced in that commit should not be needed and libtool
should just do the right thing.  I cannot reproduce the problem
Chris was having no matter how hard I tried.
2008-09-17 02:11:38 -04:00
Behdad Esfahbod
511db7b9a8 [util/Makefile.am] Cleanup 2008-09-16 23:19:09 -04:00
Behdad Esfahbod
d857c4d765 [autogen.sh] Remove --enable-gtk-doc from configure options
Cause cworth doesn't like it.
2008-09-16 19:56:47 -04:00
Behdad Esfahbod
a5a18dbf61 [INSTALL] Update 2008-09-16 19:45:03 -04:00
Behdad Esfahbod
ff9a2af19e [test] Make test programs depend on check programs
Since they use them when being run.
2008-09-16 19:45:03 -04:00
Behdad Esfahbod
9e2ef481aa [configure.ac] Clean up report syntax 2008-09-16 19:45:02 -04:00
Behdad Esfahbod
2161cb5baf [configure.ac] Warn if no native surface backend is enabled, err if no native font 2008-09-16 19:45:02 -04:00
Chris Wilson
a341cb5a98 [Makefile.am] Add CAIRO_LIBS to check-link.
With --enable-gcov, make check aborts with gcov errors on check-link - it
appears that -lgcov is magic and requires explicit invovation on the
command-line.
2008-09-16 23:06:53 +01:00
Adrian Johnson
e880d0f956 Change user-font-rescale test to use opaque colors
The combination of the initial cairo_paint() and the translucent text
colors were causing image fallbacks that prevented the PS type 3 font
embedding from being tested.
2008-09-16 19:13:50 +09:30
Behdad Esfahbod
840218e0a0 [src/Makefile.am.analysis] Fix typos and improve scripts 2008-09-16 03:58:22 -04:00
Behdad Esfahbod
49c8c62040 [src/Makefile.am.analysis] Split off from src/Makefile.am 2008-09-16 03:58:21 -04:00
Behdad Esfahbod
eb749d7563 [.gitignore] Update 2008-09-16 03:58:21 -04:00
Behdad Esfahbod
a908fc04a7 [boilerplate/Makefile.am] Distribute Makefile.win32.config 2008-09-16 03:58:21 -04:00
Behdad Esfahbod
88a3998a1d [aclocal] Fix pkgconfig file collection 2008-09-16 03:58:21 -04:00
Behdad Esfahbod
8151c50670 [*/Makefile.win32] Use Makefile.win32.config 2008-09-16 03:58:21 -04:00
Behdad Esfahbod
310908ce2d [Makefile.win32] Don't declare CAIRO_NO_MUTEX 2008-09-16 03:58:20 -04:00
Behdad Esfahbod
6892daf77c Create cairo-features-win32.h 2008-09-16 03:58:20 -04:00
Behdad Esfahbod
20daa425d8 [configure.ac] Generate boilerplate/Makefile.am.config
Same scheme as in src/
2008-09-16 03:58:19 -04:00
Chris Wilson
1a3863688c [test/user-font-rescale] Tidy
Behdad warned that the static UNICODE_TO_GLYPH converter was not portable,
and needed to be replaced. And do a quick coding-style blitz.
2008-09-16 03:06:39 +01:00
Chris Wilson
be9df58b5d [test/user-font-rescale] Fixup use of NAN
Kill the use of the C99 feature, and replace with strtod("NaN").
2008-09-16 02:52:30 +01:00
Behdad Esfahbod
b4b65a7890 Revert "[configure] Append -lz to LIBS"
This reverts commit 9c207b2454.

I pushed a proper fix in last commit.
2008-09-15 21:50:27 -04:00
Behdad Esfahbod
eb092eadbb [configure] Add non-pkgconfig cflags/libs before substitution 2008-09-15 21:45:25 -04:00
Behdad Esfahbod
09d7eb6c35 [configure.ac.version] Quote m4_define arguments 2008-09-15 21:31:37 -04:00
Chris Wilson
60ab0f79f8 [pdf] Kill a compiler warning.
Older versions of gcc complain about the use of a guard variable, and warn
that solid_color may be used uninitialized. As it happens the guard
variable is redundant and we can just use solid_color directly.
2008-09-16 02:08:47 +01:00
Jeff Muizelaar
e53fe3ec24 [test] Add a test case for drawing glyphs with different metrics.
The ability to draw glyphs with different metrics is useful when doing
font substitution with fixed layout like in pdf and I eventually plan on
adding code to poppler to do something similar.
2008-09-16 01:59:28 +01:00
Chris Wilson
9c207b2454 [configure] Append -lz to LIBS
After going to the effort of detecting zlib for cairo-deflate-stream.c, it
rather defects the purpose of the exercise (and the mingw32 build) if we
forget to add the library to LIBS.
2008-09-16 01:50:30 +01:00
Chris Wilson
87094e8c78 [Makefile] Amend checks for horrible msys environment.
automake-1.8 requires $(EXEEXT) for TESTS and feeds lt-check-*.c to
check-cairoint.h. Workaround both misfeatures.
2008-09-16 01:50:29 +01:00
Adrian Johnson
7880ddd101 Fix scaling of glyphs in type3 subset glyphs 2008-09-16 10:04:34 +09:30
Jeff Muizelaar
e31462d399 Check for poppler_page_render instead of poppler_page_render_to_pixbuf
We now use poppler_page_render for testing. Further, poppler can be built
without poppler_page_render_to_pixbuf to avoid a dependency on gdk.
2008-09-15 19:31:28 -04:00
Behdad Esfahbod
fb0bf16595 [aclocal] Don't use m4_defn
Apparently autoconf 2.59 on msys is not quite happy it
2008-09-15 19:21:03 -04:00
Behdad Esfahbod
879b5c7057 [aclocal] Move CAIRO_PARSE_VERSION to acinclude.m4
It belongs there as it includes other files.  It was breaking build
on older autoconf it seems.
2008-09-15 19:18:06 -04:00
Behdad Esfahbod
656b0e3ea7 [configure.ac] Avoid sed -i (#17563) 2008-09-15 19:17:27 -04:00
Behdad Esfahbod
4619c76d2f [scaled_font] Improve readability 2008-09-15 18:51:50 -04:00
Behdad Esfahbod
e079ec03cb [scaled-font] Fix bug unlocking the wrong mutex (#16819) 2008-09-15 18:51:24 -04:00
Behdad Esfahbod
096408d80e [scaled-font] Improve comment 2008-09-15 18:51:04 -04:00
Behdad Esfahbod
bdb6f609d8 [configure.ac] Build -uninstalled.pc files 2008-09-15 18:03:50 -04:00
Behdad Esfahbod
856fedd235 [doc] Make "make check" build without gtk-doc 2008-09-15 16:19:12 -04:00
Behdad Esfahbod
2ab77236f8 [Makefile.am] Add util to SUBDIRS
We do nothing by default there right now, but it's correct to include it
anyway.  And we will be installing utilities from there soon (cairo-trace for
example.)
2008-09-15 15:50:14 -04:00
Behdad Esfahbod
b4bbcda1c3 [Makefile.am] Add doc back to SUBDIRS
This reverts cac2ea0fcd
We need doc in SUBDIRS to install docs even if gtk-doc is not available.
The real fix for the build issue without gtk-doc should go under doc/
and is coming in a followup commit.
2008-09-15 15:47:53 -04:00
Behdad Esfahbod
e4753c82ff [src/README] s/Source.mk/Makefile.sources/ 2008-09-15 14:50:29 -04:00
Behdad Esfahbod
50f45d7768 [src/Makefile.am] Add comment referring to Makefile.sources 2008-09-15 14:50:07 -04:00
Chris Wilson
b24d2e4214 [autogen] Delete Makefile.am.config
Cause the Makefile.am.config to be regenerated every time as its contents
may be invalid for the current run - e.g. if a developer is switching
between branches with experimental surfaces.
2008-09-15 17:18:51 +01:00
Chris Wilson
5c7c2b5187 [test] Test handling of fractional device offsets. 2008-09-15 17:11:42 +01:00
Chris Wilson
2617d68a7b [boilerplate] Restrict number of retries to create an error surface.
Sometimes we just cannot get what we want, so give up - it's only an error
surface after all!
2008-09-15 17:11:36 +01:00