Commit graph

2393 commits

Author SHA1 Message Date
Behdad Esfahbod
09e1eb04ca [ROADMAP] Update. Adding 1.2.4 milestone and a few other items 2006-08-14 00:15:44 -04:00
Behdad Esfahbod
c802cd2d62 [Type1] Synch comments in the encoding table 2006-08-13 20:16:22 -04:00
Pavel Roskin
e5f36a54da [Type1] Use NULL instead of 0
Using NULL is encouraged for pointers.  While fixing that, it turned out
that the comments indicating the current index were wrong, so I'm fixing
them too.
2006-08-13 05:09:28 -04:00
Pavel Roskin
fdd7518b8b Update nil surface structs to the surface struct
Quite a few fields were missing, but all zero, so didn't matter
practically, but comments were out of synch.
2006-08-13 05:02:46 -04:00
Pavel Roskin
a06af40c35 [test] Fix warnings in tests on 64-bit systems
Cast argiments from size_t to int.  size_t is 64-bit on 64-bit systems,
which causes a warning.  The actual data should fit 32 bit comfortably.
2006-08-13 04:47:11 -04:00
Pavel Roskin
58963a2bf9 [test] Allow overriding Valgrind flags on the command line
Don't hardcode Valgrind flags in tests/Makefile.am so that
tests/Makefile doesn't need to be rebuilt to use different flags.  Not
everybody is looking for memory leaks.
2006-08-13 04:44:39 -04:00
Pavel Roskin
b29cc61fac [pixman] Don't cast pointers to integers
This causes warnings on 64-bit platforms that may indicate very serious
problems.  Fortunately, not in this case.
2006-08-13 04:44:20 -04:00
Jens Granseuer
abd16e47d6 [configure] Let env-vars override backend CFLAGS/LIBS (bug 7838)
In particular, $png_REQUIRES can be used now to set the name of the pkg-config
module that contains libpng.
2006-08-11 13:06:37 -04:00
Jens Granseuer
97524a8fdb [warnings] Only use supported compiler warning flags
Also cache the result.
2006-08-11 11:51:10 -04:00
Kjartan Maraas
22eee1db00 [warnings] Fixes for sparse. This fixes a lot of instances of 0 vs NULL 2006-08-11 11:18:24 -04:00
Behdad Esfahbod
ab3b400bda [Makefile.am] Move ChangeLog creation voodoo to ChangeLog.mk 2006-08-11 00:43:24 -04:00
Behdad Esfahbod
affc9c71ac [Makefile.am] Add $(AM_MAKEFLAGS) to recursive make invocations 2006-08-11 00:24:47 -04:00
Behdad Esfahbod
c04ccc95fa [ChangeLog] Make ChangeLog creation faster by caching partial results
The ChangeLog.pre-* files once generated, cannot be outdated and don't need
update anymore, but the main ChangeLog needs update everytime a git operation
is performed (commit, checkout, etc.)  Previously, we were forcing a ChangeLog
recreation by making it a phony target.  Now, we break it into two parts:  One
up to the latest tag (as returned by git-describe), and another from there.
The former is, again, up-to-date when it exists.  The latter, we make it
depend on .git.  And since the latter is pretty short anyway, you get a very
first regeneration of it when you change your repo (and that only happens
during 'make dist' by the way.)
2006-08-11 00:11:49 -04:00
Behdad Esfahbod
9b5c5b7570 [ChangeLog] Remove 'fmt' formatting of the ChangeLogs
We assume that people write wrapped commit messages, which is true these days
but was not back in the CVS days.
2006-08-10 20:41:05 -04:00
Behdad Esfahbod
91a5925180 Create multiple ChangeLog files segmented around major releases
For an imaginary cairo-3.6.4 version, we now will generate the following
ChangeLog files:

	ChangeLog
	ChangeLog.pre-3.4
	ChangeLog.pre-3.2
	ChangeLog.pre-3.0
	ChangeLog.pre-2.0
	ChangeLog.pre-1.0
2006-08-10 20:36:16 -04:00
Behdad Esfahbod
ee885c76af [test] Update EXTRA_DIST after beos_bitmap -> beos-bitmap change 2006-08-10 18:54:18 -04:00
Behdad Esfahbod
915448e50f [test] Add target check-ref-dups that lists reference images having duplicate sha1sum hash
This is useful to review every once in a while to drop duplicate images that
can be dropped.  For example, if there are two identical images one named
some-test-svg-rgb24-ref.png and other some-test-svg-argb32-ref.png, those two
can be replaced with some-test-svg-ref.png.
2006-08-10 15:35:36 -04:00
Behdad Esfahbod
cecf396f6f [test] Point out to the test log file on failures 2006-08-10 15:11:46 -04:00
Behdad Esfahbod
15074cbb04 [test] Behave better if no ref image was found for a test 2006-08-10 14:58:33 -04:00
Behdad Esfahbod
67ff765e30 [test] Rename beos_bitmap target to beos-bitmap. Same for directfb-bitmap. 2006-08-10 13:53:24 -04:00
Behdad Esfahbod
c6869b7415 [ROADMAP] Add generating EPS. 2006-08-10 13:21:57 -04:00
Behdad Esfahbod
1af80b70c0 Test for libz only once and reuse result for PS and PDF
This causes configure to check for libz even if PS/PDF are disabled
or their results is already cached.  But that's not much of a problem
as if the cache is enabled, libz results are cached too.
2006-08-10 13:10:24 -04:00
Behdad Esfahbod
d1520a99d4 Remove the ft_load_sfnt_table check from PS/PDF/SVG backends
and make sure that _cairo_ft_load_truetype_table returns UNSUPPORTED
if the version of FreeType used doesn't support FT_Load_Sfnt_Table.
2006-08-10 13:05:26 -04:00
Behdad Esfahbod
aea83b908d Fix typos in configure.in for PS/PDF/SVG backends 2006-08-10 12:47:47 -04:00
Behdad Esfahbod
dc8da1ca06 Save configure cache after checking all backends
This makes sure that backend enabling results are cached even
if a later test in configure fails.
2006-08-10 12:47:11 -04:00
Behdad Esfahbod
6d0e326044 Don't link to -lm unconditionally in cairo.pc
Reuse $LIBM results.
2006-08-10 12:45:35 -04:00
Behdad Esfahbod
24374ad613 Implement configure cache versioning for backend enabling results
such that removing config.cache is not needed as frequently as it
is currently.  We just detect and stale the cache results for our
own backends.  If the user installs missing libraries, they still
need to remove the cache manually.

Note that everytime a change is made to configure.in and may change
the results of at least one CAIRO_BACKEND_ENABLE call, the
cairo_cache_version number should be increased.
2006-08-10 12:44:35 -04:00
Carl Worth
c3c706873e ROADMAP: Remove 1.2.2 stuff now that that release is out the door 2006-08-08 16:56:20 -07:00
Carl Worth
27842ff06f NEWS: Fix some misspellings 2006-08-08 16:51:48 -07:00
Carl Worth
c96e1b6d8f README: Update backend list.
PDF, PS, and SVG are no longer experimental. And DirectFB and BeOS now exist as well.
2006-08-08 16:32:26 -07:00
Carl Worth
38b42c5025 Increment CAIRO_VERSION to 1.2.3 after making the 1.2.2 release 2006-08-08 16:23:07 -07:00
Carl Worth
ac1c748868 Update version to 1.2.2 and libtool version to 11:1:9. 2006-08-08 16:06:57 -07:00
Carl Worth
6b3e674211 NEWS: Add notes for cairo 1.2.2 2006-08-08 16:04:54 -07:00
Carl Worth
5b2c84549f RELEASING: Add --stat option to recommended git-log command 2006-08-08 14:30:20 -07:00
Carl Worth
e3c7840d22 Fix EXTRA_DIST so that 'make distcheck' works again 2006-08-08 14:29:29 -07:00
Carl Worth
d5d529c0f3 gtk-doc template file churn 2006-08-08 14:28:48 -07:00
Carl Worth
ca99478d43 Fix some memory leaks in a few of the tests. 2006-08-08 12:48:56 -07:00
Carl Worth
d6e204b9d5 Add a variation of an existing valgrind suppression 2006-08-08 12:48:20 -07:00
Behdad Esfahbod
16c18aea52 [PDF] Fix leak: free glyphs 2006-08-08 15:30:56 -04:00
Behdad Esfahbod
ac4922bd07 [TrueType] Zero out padding memory in generated TrueType subset
to make the output deterministic and fix valgrind errors.
2006-08-08 15:27:21 -04:00
Behdad Esfahbod
356e646dc6 [FreeType] Unset and set to FC_RGBA_NONE the FC_RGBA attribute on pattern
if we don't want it.  This stuff is tricky, but I hope to explain:  In your
fontconfig configuration, you may match on "font", or on "pattern".  Turning
subpixel on typically looks like:

        <match target="font">
		<test qual="all" name="rgba">
			<const>unknown</const>
		</test>
		<edit name="rgba" mode="assign"><const>rgb</const></edit>
	</match>

This works good enough, and if you set to ANTIALIAS_GRAY, this will not
override that.  Now one may forget to match on "font" target, or intentionally
match on the pattern.  That happens before cairo font options are substituted
in the pattern.  So, to give a hint of subpixel in your config file, you can
write:

        <match target="pattern">
		<edit name="rgba" mode="assign"><const>rgb</const></edit>
	</match>

You don't really need to check for current values, as FcConfigSubstitute is
run before merging cairo_font_options_t in.  What this patch does, is to reset
pattern's rgba property if the font options explicitly ask for ANTIALIAS_GRAY.
This is the only place in cairo-ft-font.c that we use FcPatternDel, so I
thought some explanation is needed.
2006-08-08 14:04:51 -04:00
Alfred Peng
db06681b48 Fix leaks in failure paths in pixman gradient creation 2006-08-08 10:58:42 -07:00
Behdad Esfahbod
6ff531c182 [TrueType] Add comment block describing why we only use int16_t 2006-08-08 13:13:18 -04:00
Behdad Esfahbod
23f3888618 [TrueType] More leak fixes 2006-08-08 07:39:31 -04:00
Behdad Esfahbod
519bd3d3e9 [TrueType] Fix leaks. 2006-08-08 07:30:46 -04:00
Behdad Esfahbod
501e5cc883 Restructure subpixel_order handling such that the code doesn't look suspicious!
Shouldn't make /any/ difference at all in any case.
2006-08-08 06:12:13 -04:00
Behdad Esfahbod
89fc22de87 [fontconfig] Set FC_RGBA_NONE on the pattern if we don't want subpixel.
otherwise, it looks like "I don't care" and fontconfig configuration is
allowed to decide to turn subpixel on.  This fixes the bug that subpixel
colors where showing up in fallback images in PS/PDF/SVG backends, observed
in the test fallback-resolution.
2006-08-08 06:09:23 -04:00
Behdad Esfahbod
1f854fcf32 Set antialiasing to gray in default font options for PS/PDF/SVG
This only affects the image fallback in those backends, and avoids getting
colored pixels there if user's fontconfig configuration turns subpixel on.
This doesn't quite fix that problem though, more changes are needed/coming.
2006-08-08 06:09:23 -04:00
Carl Worth
2d483e0785 test-paginated: Fix memory leak within _test_paginated_surface_create_for_data 2006-08-08 02:24:48 -07:00
Carl Worth
cb5edb6c35 Eliminate warning due to the test suite's private 'FLATTENEND' format value 2006-08-08 01:39:12 -07:00